05b09baeeb85d981539f29c6981bbf21b76bc79f
[gnulib.git] / ChangeLog
1 2010-03-13  Bruno Haible  <bruno@clisp.org>
2
3         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
4         cases.
5
6 2010-03-13  Bruno Haible  <bruno@clisp.org>
7
8         Test that gnulib does not break the standard C++ headers.
9         * tests/test-locale-c++2.cc: New file.
10         * modules/locale-tests (Files): Add it.
11         (Makefile.am): Compile it for test-locale-c++.
12         * tests/test-math-c++2.cc: New file.
13         * modules/math-tests (Files): Add it.
14         (Makefile.am): Compile it for test-math-c++.
15         * tests/test-signal-c++2.cc: New file.
16         * modules/signal-tests (Files): Add it.
17         (Makefile.am): Compile it for test-signal-c++.
18         * tests/test-stdio-c++2.cc: New file.
19         * modules/stdio-tests (Files): Add it.
20         (Makefile.am): Compile it for test-stdio-c++.
21         * tests/test-stdlib-c++2.cc: New file.
22         * modules/stdlib-tests (Files): Add it.
23         (Makefile.am): Compile it for test-stdlib-c++.
24         * tests/test-string-c++2.cc: New file.
25         * modules/string-tests (Files): Add it.
26         (Makefile.am): Compile it for test-string-c++.
27         * tests/test-time-c++2.cc: New file.
28         * modules/time-tests (Files): Add it.
29         (Makefile.am): Compile it for test-time-c++.
30         Reported by John W. Eaton <jwe@gnu.org>.
31
32 2010-03-13  Bruno Haible  <bruno@clisp.org>
33
34         * gnulib-tool (func_usage): Clarify which options are available for
35         --create-testdir and --create-megatestdir.
36
37 2010-03-13  Bruno Haible  <bruno@clisp.org>
38
39         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
40         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
41         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
42         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
43         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
44         when appropriate.
45         Reported by Jim Meyering.
46
47 2010-03-12  Simon Josefsson  <simon@josefsson.org>
48
49         * gnulib-tool (func_import): Explain origin of code.
50
51 2010-03-12  Bruno Haible  <bruno@clisp.org>
52
53         Fix problem with automake's definition of CXXLINK.
54         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55         Reported by Simon Josefsson and Ludovic Courtès.
56
57 2010-03-12  Bruno Haible  <bruno@clisp.org>
58
59         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
60         stable releases.
61
62 2010-03-11  Bruno Haible  <bruno@clisp.org>
63
64         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
65         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
66         whether the system provides one variant or multiple variants of the
67         function.
68         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
69         C++ compilers.
70         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
71         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
72         Reported by Jim Meyering.
73
74 2010-03-09  Simon Josefsson  <simon@josefsson.org>
75
76         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
77
78 2010-03-08  Bruno Haible  <bruno@clisp.org>
79
80         gnulib-tool: Add support for --libtool in --create-testdir.
81         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
82         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
83
84 2010-03-08  Eric Blake  <eblake@redhat.com>
85
86         gnulib-tool.texi: mention possibility of git submodule
87         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
88         submodules.
89         * doc/.gitignore: Ignore another generated file.
90
91 2010-03-08  Karl Berry  <karl@gnu.org>
92
93         * doc/gnulib-tool.texi (VCS Issues): Mention third option
94         of committing gnulib files while skipping others.
95
96 2010-03-07  Bruno Haible  <bruno@clisp.org>
97
98         Tests of module 'wctype' in C++ mode.
99         * tests/test-wctype-c++.cc: New file.
100         * modules/wctype-tests (Files): Add it and tests/signature.h.
101         (Depends-on): Add ansi-c++-opt.
102         (Makefile.am): Arrange to compile and run test-wctype-c++.
103
104         Tests of module 'wchar' in C++ mode.
105         * tests/test-wchar-c++.cc: New file.
106         * modules/wchar-tests (Files): Add it and tests/signature.h.
107         (Depends-on): Add ansi-c++-opt.
108         (Makefile.am): Arrange to compile and run test-wchar-c++.
109         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
110         gl_MODULE_INDICATOR.
111
112         Tests of module 'unistd' in C++ mode.
113         * tests/test-unistd-c++.cc: New file.
114         * modules/unistd-tests (Files): Add it and tests/signature.h.
115         (Depends-on): Add ansi-c++-opt.
116         (Makefile.am): Arrange to compile and run test-unistd-c++.
117         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
118         gl_MODULE_INDICATOR.
119
120         Tests of module 'time' in C++ mode.
121         * tests/test-time-c++.cc: New file.
122         * modules/time-tests (Files): Add it and tests/signature.h.
123         (Depends-on): Add ansi-c++-opt.
124         (Makefile.am): Arrange to compile and run test-time-c++.
125         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
126
127         Tests of module 'sys_time' in C++ mode.
128         * tests/test-sys_time-c++.cc: New file.
129         * modules/sys_time-tests (Files): Add it and tests/signature.h.
130         (Depends-on): Add ansi-c++-opt.
131         (Makefile.am): Arrange to compile and run test-sys_time-c++.
132         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
133         gl_MODULE_INDICATOR.
134
135         Tests of module 'sys_stat' in C++ mode.
136         * tests/test-sys_stat-c++.cc: New file.
137         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
138         (Depends-on): Add ansi-c++-opt.
139         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
140         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
141         gl_MODULE_INDICATOR.
142
143         Tests of module 'sys_socket' in C++ mode.
144         * tests/test-sys_socket-c++.cc: New file.
145         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
146         (Depends-on): Add ansi-c++-opt.
147         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
148         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
149         gl_MODULE_INDICATOR.
150
151         Tests of module 'sys_select' in C++ mode.
152         * tests/test-sys_select-c++.cc: New file.
153         * modules/sys_select-tests (Files): Add it and tests/signature.h.
154         (Depends-on): Add ansi-c++-opt.
155         (Makefile.am): Arrange to compile and run test-sys_select-c++.
156         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
157         gl_MODULE_INDICATOR.
158
159         Tests of module 'sys_ioctl' in C++ mode.
160         * tests/test-sys_ioctl-c++.cc: New file.
161         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
162         (Depends-on): Add ansi-c++-opt.
163         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
164         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
165         gl_MODULE_INDICATOR.
166
167         Tests of module 'string' in C++ mode.
168         * tests/test-string-c++.cc: New file.
169         * modules/string-tests (Files): Add it and tests/signature.h.
170         (Depends-on): Add ansi-c++-opt.
171         (Makefile.am): Arrange to compile and run test-string-c++.
172         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
173         gl_MODULE_INDICATOR.
174
175         Tests of module 'stdlib' in C++ mode.
176         * tests/test-stdlib-c++.cc: New file.
177         * modules/stdlib-tests (Files): Add it and tests/signature.h.
178         (Depends-on): Add ansi-c++-opt.
179         (Makefile.am): Arrange to compile and run test-stdlib-c++.
180         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
181         gl_MODULE_INDICATOR.
182
183         Tests of module 'stdio' in C++ mode.
184         * tests/test-stdio-c++.cc: New file.
185         * modules/stdio-tests (Files): Add it and tests/signature.h.
186         (Depends-on): Add ansi-c++-opt.
187         (Makefile.am): Arrange to compile and run test-stdio-c++.
188         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
189         gl_MODULE_INDICATOR.
190
191         Tests of module 'spawn' in C++ mode.
192         * tests/test-spawn-c++.cc: New file.
193         * modules/spawn-tests (Files): Add it and tests/signature.h.
194         (Depends-on): Add ansi-c++-opt.
195         (Makefile.am): Arrange to compile and run test-spawn-c++.
196         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
197         gl_MODULE_INDICATOR.
198
199         Tests of module 'signal' in C++ mode.
200         * tests/test-signal-c++.cc: New file.
201         * modules/signal-tests (Files): Add it and tests/signature.h.
202         (Depends-on): Add ansi-c++-opt.
203         (Makefile.am): Arrange to compile and run test-signal-c++.
204         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
205         gl_MODULE_INDICATOR.
206
207         Tests of module 'search' in C++ mode.
208         * tests/test-search-c++.cc: New file.
209         * modules/search-tests (Files): Add it and tests/signature.h.
210         (Depends-on): Add ansi-c++-opt.
211         (Makefile.am): Arrange to compile and run test-search-c++.
212         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
213         gl_MODULE_INDICATOR.
214
215         Tests of module 'math' in C++ mode.
216         * tests/test-math-c++.cc: New file.
217         * modules/math-tests (Files): Add it and tests/signature.h.
218         (Depends-on): Add ansi-c++-opt.
219         (Makefile.am): Arrange to compile and run test-math-c++.
220         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
221
222         Tests of module 'locale' in C++ mode.
223         * tests/test-locale-c++.cc: New file.
224         * modules/locale-tests (Files): Add it and tests/signature.h.
225         (Depends-on): Add ansi-c++-opt.
226         (Makefile.am): Arrange to compile and run test-locale-c++.
227         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
228         gl_MODULE_INDICATOR.
229
230         Tests of module 'langinfo' in C++ mode.
231         * tests/test-langinfo-c++.cc: New file.
232         * modules/langinfo-tests (Files): Add it and tests/signature.h.
233         (Depends-on): Add ansi-c++-opt.
234         (Makefile.am): Arrange to compile and run test-langinfo-c++.
235         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
236         gl_MODULE_INDICATOR.
237
238         Tests of module 'iconv-h' in C++ mode.
239         * tests/test-iconv-h-c++.cc: New file.
240         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
241         (Depends-on): Add ansi-c++-opt.
242         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
243
244         Tests of module 'glob' in C++ mode.
245         * tests/test-glob-c++.cc: New file.
246         * modules/glob-tests (Files): Add it.
247         (Depends-on): Add ansi-c++-opt.
248         (Makefile.am): Arrange to compile and run test-glob-c++.
249
250         Tests of module 'fcntl-h' in C++ mode.
251         * tests/test-fcntl-h-c++.cc: New file.
252         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
253         (Depends-on): Add ansi-c++-opt.
254         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
255         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
256         gl_MODULE_INDICATOR.
257
258         Tests of module 'dirent' in C++ mode.
259         * tests/test-dirent-c++.cc: New file.
260         * modules/dirent-tests (Files): Add it and tests/signature.h.
261         (Depends-on): Add ansi-c++-opt.
262         (Makefile.am): Arrange to compile and run test-dirent-c++.
263         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
264         gl_MODULE_INDICATOR.
265
266         New module 'ansi-c++-opt'.
267         * modules/ansi-c++-opt: New file.
268         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
269
270         Document C++ namespace mode.
271         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
272
273         wctype: Avoid #define replacements in C++ mode.
274         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
275         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
276         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
277         In C++, define a namespaced alias symbol.
278         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
279         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
280         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
281         rule.
282
283         wchar: Avoid #define replacements in C++ mode.
284         * lib/wchar.in.h: Include c++defs.h.
285         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
286         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
287         symbol.
288         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
289         * modules/wchar (Depends-on): Add c++defs.
290         (Makefile.am): Update wchar.h rule.
291
292         unistd: Avoid #define replacements in C++ mode.
293         * lib/unistd.in.h: Include c++defs.h.
294         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
295         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
296         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
297         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
298         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
299         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
300         symbol.
301         (environ): Update.
302         * modules/unistd (Depends-on): Add c++defs.
303         (Makefile.am): Update unistd.h rule.
304
305         time: Avoid #define replacements in C++ mode.
306         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
307         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
308         define a namespaced alias symbol.
309         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
310         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
311         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
312         * modules/time (Depends-on): Add c++defs, warn-on-use.
313         (Makefile.am): Update time.h rule.
314         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
315         * modules/nanosleep (configure.ac): Likewise.
316         * modules/strptime (configure.ac): Likewise.
317         * modules/timegm (configure.ac): Likewise.
318
319         sys_time: Avoid #define replacements in C++ mode.
320         * lib/sys_time.in.h: Include c++defs.h.
321         (gettimeofday): In C++, define a namespaced alias symbol.
322         * modules/sys_time (Depends-on): Add c++defs.
323         (Makefile.am): Update sys/time.h rule.
324
325         sys_stat: Avoid #define replacements in C++ mode.
326         * lib/sys_stat.in.h: Include c++defs.h.
327         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
328         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
329         namespaced alias symbol.
330         In C++, define a namespaced alias symbol.
331         * modules/sys_stat (Depends-on): Add c++defs.
332         (Makefile.am): Update sys/stat.h rule.
333
334         sys_socket: Avoid #define replacements in C++ mode.
335         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
336         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
337         definitions also when the system has a <sys/socket.h>.
338         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
339         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
340         In C++, define a namespaced alias symbol.
341         * modules/sys_socket (Depends-on): Add c++defs.
342         (Makefile.am): Update sys/socket.h rule.
343
344         sys_select: Avoid #define replacements in C++ mode.
345         * lib/sys_select.in.h: Include c++defs.h. Enable the function
346         definitions also when the system has a <sys/select.h>.
347         (select): In C++, define a namespaced alias symbol.
348         * modules/sys_select (Depends-on): Add c++defs.
349         (Makefile.am): Update sys/select.h rule.
350
351         sys_ioctl: Avoid #define replacements in C++ mode.
352         * lib/sys_ioctl.in.h: Include c++defs.h.
353         (ioctl): In C++, define a namespaced alias symbol.
354         * modules/sys_ioctl (Depends-on): Add c++defs.
355         (Makefile.am): Update sys/ioctl.h rule.
356
357         string: Avoid #define replacements in C++ mode.
358         * lib/string.in.h: Include c++defs.h.
359         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
360         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
361         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
362         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
363         strsignal, strverscmp): In C++, define a namespaced alias symbol.
364         * modules/string (Depends-on): Add c++defs.
365         (Makefile.am): Update string.h rule.
366
367         stdlib: Avoid #define replacements in C++ mode.
368         * lib/stdlib.in.h: Include c++defs.h.
369         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
370         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
371         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
372         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
373         symbol.
374         * modules/stdlib (Depends-on): Add c++defs.
375         (Makefile.am): Update stdlib.h rule.
376
377         stdio: Avoid #define replacements in C++ mode.
378         * lib/stdio.in.h: Include c++defs.h.
379         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
380         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
381         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
382         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
383         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
384         namespaced alias symbol.
385         * modules/stdio (Depends-on): Add c++defs.
386         (Makefile.am): Update stdio.h rule.
387
388         spawn: Avoid #define replacements in C++ mode.
389         * lib/spawn.in.h: Include c++defs.h.
390         (posix_spawn, posix_spawnp, posix_spawnattr_init,
391         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
392         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
393         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
394         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
395         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
396         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
397         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
398         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
399         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
400         In C++, define a namespaced alias symbol.
401         * modules/spawn (Depends-on): Add c++defs.
402         (Makefile.am): Update spawn.h rule.
403
404         signal: Avoid #define replacements in C++ mode.
405         * lib/signal.in.h: Include c++defs.h.
406         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
407         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
408         namespaced alias symbol.
409         * modules/signal (Depends-on): Add c++defs.
410         (Makefile.am): Update signal.h rule.
411
412         search: Avoid #define replacements in C++ mode.
413         * lib/search.in.h: Include c++defs.h.
414         (_gl_search_compar_fn, _gl_search_action_fn): New types.
415         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
416         symbol.
417         * modules/search (Depends-on): Add c++defs.
418         (Makefile.am): Update search.h rule.
419
420         math: Avoid #define replacements in C++ mode.
421         * lib/math.in.h: Include c++defs.h.
422         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
423         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
424         trunc, truncl): In C++, define a namespaced alias symbol.
425         * modules/math (Depends-on): Add c++defs.
426         (Makefile.am): Update math.h rule.
427
428         locale: Avoid #define replacements in C++ mode.
429         * lib/locale.in.h: Include c++defs.h.
430         (duplocale): In C++, define a namespaced alias symbol.
431         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
432         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
433         * modules/locale (Depends-on): Add c++defs.
434         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
435
436         langinfo: Avoid #define replacements in C++ mode.
437         * lib/langinfo.in.h: Include c++defs.h.
438         (nl_langinfo): In C++, define a namespaced alias symbol.
439         * modules/langinfo (Depends-on): Add c++defs.
440         (Makefile.am): Update langinfo.h rule.
441
442         iconv-h: Avoid #define replacements in C++ mode.
443         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
444         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
445         symbol.
446         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
447         whenever iconv is present.
448         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
449         (Makefile.am): Update iconv.h rule.
450
451         glob: Avoid #define replacements in C++ mode.
452         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
453         (_gl_glob_errfunc_fn): New type.
454         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
455         symbol.
456         * modules/glob (Depends-on): Add c++defs, warn-on-use.
457         (Makefile.am): Update glob.h rule.
458
459         fcntl-h: Avoid #define replacements in C++ mode.
460         * lib/fcntl.in.h: Include c++defs.h.
461         (fcntl, open, openat): In C++, define a namespaced alias symbol.
462         * modules/fcntl-h (Depends-on): Add c++defs.
463         (Makefile.am): Update fcntl.h rule.
464
465         dirent: Avoid #define replacements in C++ mode.
466         * lib/dirent.in.h: Include c++defs.h.
467         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
468         namespaced alias symbol.
469         (dirfd): Update declaration.
470         * modules/dirent (Depends-on): Add c++defs.
471         (Makefile.am): Update dirent.h rule.
472
473         ctype: Make it usable in C++ code.
474         * lib/ctype.in.h: Include c++defs.h.
475         (isblank): Declare as extern "C".
476         * modules/ctype (Depends-on): Add c++defs.
477         (Makefile.am): Update ctype.h rule.
478
479         New module 'c++defs'.
480         * modules/c++defs: New file.
481         * build-aux/c++defs.h: New file.
482         Reported by John W. Eaton <jwe@gnu.org>.
483
484 2010-03-07  Bruno Haible  <bruno@clisp.org>
485
486         logb: Provide missing declaration for Cygwin.
487         * lib/math.in.h (logb): New declaration.
488         * m4/logb.m4: New file.
489         * modules/logb (Files): Add m4/logb.m4.
490         (Depends-on): Add math.
491         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
492         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
494         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
495         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
496
497 2010-03-07  Bruno Haible  <bruno@clisp.org>
498
499         Fix test-cond link error.
500         * tests/test-cond.c: Include <stdio.h>.
501
502 2010-03-07  Bruno Haible  <bruno@clisp.org>
503
504         Fix test-dirent-safer link error.
505         * modules/dirent-safer-tests (Makefile.am): Define
506         test_dirent_safer_LDADD.
507
508 2010-03-07  Bruno Haible  <bruno@clisp.org>
509
510         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
511         among default module list.
512
513 2010-03-07  Bruno Haible  <bruno@clisp.org>
514
515         Fix link error on platforms with GNU libiconv.
516         * modules/unistr/u8-strcoll-tests (Makefile): Define
517         test_u8_strcoll_LDADD.
518         * modules/unistr/u16-strcoll-tests (Makefile): Define
519         test_u16_strcoll_LDADD.
520         * modules/unistr/u32-strcoll-tests (Makefile): Define
521         test_u32_strcoll_LDADD.
522
523 2010-03-07  Bruno Haible  <bruno@clisp.org>
524
525         Use POSIX declarations for socket functions.
526         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
527         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
528         rpl_sendto): Change declaration to match POSIX.
529         * lib/connect.c (rpl_connect): Likewise.
530         * lib/accept.c (rpl_accept): Likewise.
531         * lib/bind.c (rpl_bind): Likewise.
532         * lib/getpeername.c (rpl_getpeername): Likewise.
533         * lib/getsockname.c (rpl_getsockname): Likewise.
534         * lib/recv.c (rpl_recv): Likewise.
535         * lib/send.c (rpl_send): Likewise.
536         * lib/recvfrom.c (rpl_recvfrom): Likewise.
537         * lib/sendto.c (rpl_sendto): Likewise.
538
539 2010-03-06  Bruno Haible  <bruno@clisp.org>
540
541         Clarify access, euidaccess, faccessat.
542         * doc/posix-functions/faccessat.texi: Mention security problem under
543         "Other problems", not "Portability problems".
544         * doc/posix-functions/access.texi: Likewise. Mention a related security
545         problem.
546         * doc/glibc-functions/euidaccess.texi: Mention security problems.
547         * lib/euidaccess.c: Add comments about platforms.
548         * lib/unistd.in.h (access, euidaccess): Add warnings.
549
550 2010-03-07  Bruno Haible  <bruno@clisp.org>
551
552         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
553         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
554         (POSIX_SPAWN_SETSCHEDULER): Likewise.
555         (POSIX_SPAWN_USEVFORK): Define in a way that works when
556         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
557         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
558         declare when POSIX_SPAWN_SETSCHEDULER is zero.
559         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
560         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
561         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
562         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
563         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
564         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
565         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
566         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
567         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
568         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
569         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
570         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
571         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
572         Likewise.
573         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
574         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
575         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
576         Likewise.
577         * tests/test-spawn.c (main): Make it work when
578         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
579
580 2010-03-07  Bruno Haible  <bruno@clisp.org>
581
582         Fix incorrect Makefile.am generation in German locale.
583         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
584         Execute sed command with character range in C locale.
585
586 2010-03-06  Bruno Haible  <bruno@clisp.org>
587
588         Tests for module 'iconv-h'.
589         * modules/iconv-h-tests: New file.
590         * tests/test-iconv-h.c: New file.
591
592         New module 'iconv-h'.
593         * modules/iconv-h: New file.
594         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
595         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
596         (configure.ac): Remove gl_ICONV_H.
597         (Makefile.am): Remove rule for iconv.h.
598
599 2010-03-06  Bruno Haible  <bruno@clisp.org>
600
601         More consistent naming of *.m4 files.
602         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
603         * modules/wctype (Files): Update.
604
605         More consistent naming of *.m4 files.
606         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
607         * modules/wchar (Files): Update.
608
609 2010-03-06  Jim Meyering  <meyering@redhat.com>
610
611         euidaccess: relax license to LGPLv2+
612         * modules/euidaccess (License): Relax to LGPLv2+.
613
614 2010-03-06  Bruno Haible  <bruno@clisp.org>
615
616         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
617         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
618         (Makefile.am): Augment lib_SOURCES instead.
619
620 2010-03-04  Jim Meyering  <meyering@redhat.com>
621
622         utime: remove obsolete module
623         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
624         unnecessary for years, and has been marked as obsolete for 10 months.
625         * modules/utime: Remove file.
626         * lib/utime.c: Remove file.
627         * m4/utime.m4: Remove file.
628         * m4/utimes-null.m4: Remove file.
629         * doc/posix-functions/utime.texi (utime): Remove reference to
630         the module.  Move the sole "fixed by gnulib" item into the
631         "problems not fixed by Gnulib" list.
632         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
633
634 2010-03-05  Simon Josefsson  <simon@josefsson.org>
635
636         * modules/exit (License): Relax license to LGPLv2+.
637         (Status): Mark as obsolete.
638         * NEWS: Mention deprecated 'exit' module.
639         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
640         of now obsolete 'exit'.
641
642 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
643
644         fts-lgpl: remove unused module
645         * modules/fts-lgpl: Remove.
646         * MODULES.html.sh (func_all_modules): Adjust.
647         * check-module (find_included_lib_files): Adjust.
648         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
649
650 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
651
652         copy-acl: enhance Solaris ACL error handling
653         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
654         * lib/set-mode-acl.c (qset_acl): Likewise.
655
656 2010-03-02  Bruno Haible  <bruno@clisp.org>
657
658         spawn: Don't override the system defined values on FreeBSD 8.
659         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
660         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
661         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
662         if HAVE_POSIX_SPAWN is 1.
663         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
664
665 2010-03-01  Bruno Haible  <bruno@clisp.org>
666
667         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
668         regarding Automake.
669
670 2010-02-25  Bruno Haible  <bruno@clisp.org>
671
672         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
673         * gnulib-tool: Define 'echo' as a function only before the ksh alias
674         setting, not afterwards.
675         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
676
677 2010-02-24  Eric Blake  <eblake@redhat.com>
678
679         bootstrap, git-version-gen: use timestamp
680         * build-aux/git-version-gen (scriptversion): Force UTC.
681         * build-aux/bootstrap (scriptversion): New variable.
682
683         bootstrap: allow older git
684         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
685         older than 1.6.4.  Requested by the libvirt project.
686
687 2010-02-23  Eric Blake  <eblake@redhat.com>
688
689         warn-on-use: work with old autoconf
690         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
691         AS_VAR semantics of autoconf 2.60.
692         Reported by Bruno Haible.
693
694         bootstrap: improve some comments
695         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
696         clarification comments.
697
698         gettimeofday: provide correct function
699         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
700         when replacement is declared, otherwise provide gettimeofday.
701         Reported by Michael Goffioul.
702
703 2010-02-23  Jim Meyering  <meyering@redhat.com>
704
705         lib-ignore: relax license to "unlimited", not LGPLv2+
706         * modules/lib-ignore (License): Relax to "unlimited".
707
708 2010-02-23  Jim Meyering  <meyering@redhat.com>
709
710         lib-ignore: relax license to LGPLv2+
711         * modules/lib-ignore (License): Relax to LGPLv2+.
712
713 2010-02-22  Eric Blake  <eblake@redhat.com>
714
715         lseek: avoid bash 3.2 broken pipe bug
716         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
717         warning from bash 3.2.
718         Reported by Ben Pfaff, with analysis from Bruno Haible.
719
720         bootstrap: support non-FSF copyright holder
721         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
722         bootstrap.conf override of COPYRIGHT_HOLDER.
723         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
724
725         bootstrap: interoperate with gettext 0.14.1
726         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
727
728         bootstrap: allow for alternate submodule location
729         * build-aux/bootstrap (gnulib_path): New variable; use instead of
730         hardcoding submodule location.
731         (gnulib_mk): Allow direct use of Makefile.am.
732
733         bootstrap: use GNULIB_SRCDIR to reduce disk usage
734         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
735         rather than reconfiguring where the submodule points.
736
737         gettimeofday: restore support for platforms that lack function
738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
739         replacement if function is missing.
740         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
741         * modules/sys_time (Makefile.am): Substitute it.
742         * lib/sys_time.in.h (gettimeofday): Check it.
743         Reported by Michael Goffioul.
744
745 2010-02-21  Bruno Haible  <bruno@clisp.org>
746
747         * lib/stdio.in.h (obstack_printf): Fix typo.
748
749 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
750
751         vc-list-files: use bzr ls's -R option
752         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
753         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
754
755 2010-02-21  Jim Meyering  <meyering@redhat.com>
756
757         init.sh: fix EXEEXT shims to work also for names like test-prog
758         * tests/init.sh: Re-exec a better shell, when needed.
759         If the current shell lacks support for posix $(...), an init.sh-using
760         test will now try to find a shell that supports that.  If EXEEXT is
761         nonempty, we also require support for hyphen-in-alias-name and shell
762         substitutions like ${var#glob}.  Failure to find such a shell results
763         in a skipped test.
764
765 2010-02-21  Bruno Haible  <bruno@clisp.org>
766
767         Really work around around "broken pipe" error message from bash 3.2.
768         * gnulib-tool (func_reset_sigpipe): Remove function.
769         (echo): In bash 3.2, define to a function that uses printf.
770         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
771
772 2010-02-20  Bruno Haible  <bruno@clisp.org>
773
774         Restore support for automake 1.9.6 with autoconf 2.61.
775         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
776         Reported by James Youngman <jay@gnu.org>.
777
778 2010-02-20  Bruno Haible  <bruno@clisp.org>
779
780         Improve *printf warning condition.
781         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
782         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
783         and the function is overridden due to SIGPIPE emulation.
784
785 2010-02-20  Bruno Haible  <bruno@clisp.org>
786
787         * lib/stdio.in.h: Tweak comments.
788
789 2010-02-19  Bruno Haible  <bruno@clisp.org>
790
791         Make it easier to find modules. New gnulib-tool option '--find'.
792         * gnulib-tool: New option --find.
793         (func_usage): Document it.
794         (func_sanitize_modulelist): New function, extracted from
795         func_all_modules.
796         (func_all_modules): Invoke it.
797         * doc/gnulib-tool.texi (Which modules?): New node.
798
799 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
800
801         * lib/sys_select.in.h: Provide select replacement even if
802         sys/select.h exists on a system, for Interix.
803
804 2010-02-18  Jim Meyering  <meyering@redhat.com>
805
806         init.sh: don't use $(...) just yet
807         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
808         to accommodate e.g., Solaris' /bin/sh.
809
810 2010-02-17  Bruno Haible  <bruno@clisp.org>
811
812         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
813         Reported by Ludovic Courtès <ludo@gnu.org>.
814
815 2010-02-16  Simon Josefsson  <simon@josefsson.org>
816
817         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
818         linking with -lintl.
819
820 2010-02-17  Simon Josefsson  <simon@josefsson.org>
821
822         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
823         if not provided by the system's netdb.h.  Reported by
824         ludo@gnu.org (Ludovic Courtès).
825
826 2010-02-15  Jim Meyering  <meyering@redhat.com>
827
828         init.sh: improve portability and efficiency
829         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
830         "dummy" in a for loop.
831         Use '!', not '^' to select the complement of a character set used
832         in a "case" statement.
833         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
834         Suggestions from Eric Blake.
835
836         init.sh: automatically accommodate programs with the .exe suffix
837         Automatically arrange for an invocation of "prog" to execute the
838         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
839         may use the simpler "prog", yet still work when built on a system
840         that requires specifying the added suffix.
841         Do this by constructing a function named "prog" that invokes
842         "prog.exe" for each .exe file in selected directories.
843         * tests/init.sh (find_exe_basenames_): New function.
844         (create_exe_shim_functions_): New function.
845         (path_prepend_): Use it.
846
847         maint.mk: mark syntax-check sc_*.m rules as .PHONY
848         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
849         "make -t syntax-check" doesn't create a ton of sc_*.m files.
850
851 2010-02-14  Jim Meyering  <meyering@redhat.com>
852
853         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
854         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
855         (sc_prohibit_hash_pjw_without_use): New rule.
856
857         maint.mk: allow the default upload destination dir to be overridden
858         * top/maint.mk (upload_dest_dir_): Define with a default that
859         preserves the status quo.
860         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
861         Reported by Peter Simons.
862
863         maint.mk: prohibit inclusion of "hash.h" without_use
864         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
865
866 2010-02-10  Jim Meyering  <meyering@redhat.com>
867
868         maint.mk: prohibit inclusion of "ignore-value.h" without_use
869         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
870
871 2010-02-09  Eric Blake  <ebb9@byu.net>
872         and Bruno Haible  <bruno@clisp.org>
873
874         obstack-printf-posix: ensure declaration
875         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
876         extracted from gl_FUNC_OBSTACK_PRINTF.
877         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
878         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
879         Likewise.
880         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
881         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
882         0.
883
884 2010-02-08  Bruno Haible  <bruno@clisp.org>
885
886         gnulib-tool: Fix typo in 2010-02-07 commit.
887         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
888         Reported by Eric Blake.
889
890 2010-02-07  Bruno Haible  <bruno@clisp.org>
891
892         gnulib-tool: Fix up caching patches.
893         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
894         option --no-cache. Use associative arrays when supported by the shell.
895         (sed_comments): New variable.
896         (modcache): Renamed from do_cache.
897         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
898         abbreviate unnecessarily.
899         (have_associative): New variable.
900         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
901         way also for ksh and zsh.
902         (func_init_sed_convert_to_cache_statements): New function, extracted
903         from func_cache_lookup_module. Add support for associative arrays.
904         Don't set the c_MODULE_cached variable here. Ignore all lines before
905         the first field header. Remove only the final newline, not all trailing
906         newlines. Support empty fields correctly. Limit the use of 'eval' to
907         assignments.
908         (func_get_description, func_get_status, func_get_notice,
909         func_get_applicability, func_get_filelist, func_get_dependencies,
910         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
911         func_get_automake_snippet, func_get_include_directive,
912         func_get_link_directive, func_get_license, func_get_maintainer):
913         Update documentation. List the unoptimized code first. Add support for
914         associative arrays. Limit the use of 'eval' to assignments.
915         (func_get_applicability): Undo stylistic pessimisations.
916         (func_get_automake_snippet, func_get_include_directive): Reduce code
917         duplication.
918         (func_modules_transitive_closure, func_modules_add_dummy,
919         func_modules_notice, func_modules_to_filelist, func_add_file,
920         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
921         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
922         func_create_testdir, func_create_megatestdir): Update documentation.
923
924 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
925
926         * gnulib-tool (func_cache_lookup_module): Store the module name
927         belonging to the cache variable; error out if two different
928         module names map to the same cache variable name.
929
930 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
931
932         gnulib-tool: Make caching optional.
933         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
934         Update matching short versions of --no-changelog.
935         (func_usage): Update.
936         (sed_extract_cache_prog): Renamed from ...
937         (sed_extract_prog): ... this; revert to old extraction script.
938         (func_get_description, func_get_status)
939         (func_get_notice, func_get_applicability, func_get_filelist)
940         (func_get_dependencies, func_get_autoconf_early_snippet)
941         (func_get_autoconf_snippet, func_get_automake_snippet)
942         (func_get_include_directive, func_get_link_directive)
943         (func_get_license, func_get_maintainer): If $do_cache is false,
944         use old, non-caching extraction scripts.
945         Suggestion by Bruno Haible.
946
947 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
948
949         gnulib-tool: cache module metainformation.
950         * gnulib-tool (sed_extract_prog): Match newline before each
951         header, and rewrite header to a shell variable suffix.
952         (func_cache_var, func_cache_lookup_module): New functions,
953         to turn a module name into a cache variable prefix, and to
954         look up and cache module metainformation.
955         (func_get_description, func_get_status)
956         (func_get_notice, func_get_applicability, func_get_filelist)
957         (func_get_dependencies, func_get_autoconf_early_snippet)
958         (func_get_autoconf_snippet, func_get_automake_snippet)
959         (func_get_include_directive, func_get_link_directive)
960         (func_get_license, func_get_maintainer): Use
961         func_cache_lookup_module.
962
963 2010-02-07  Bruno Haible  <bruno@clisp.org>
964
965         fnctl: Fix missing dependency.
966         * modules/fcntl (Depends-on): Add getdtablesize.
967         Reported by John W. Eaton <jwe@gnu.org>.
968
969 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
970
971         Argp: fix recognition of short alias options.
972
973         * lib/argp-parse.c (convert_options): Fix improper use of
974         `|' between character values.
975         * tests/test-argp.c (group1_option): New alias option
976         --read (-r).
977         (group1_parser): Special handling for 'r'.
978         (test15): New test case.
979         (test_fun): Add test15.
980         * tests/test-argp-2.sh: Update expected --help and --usage
981         outputs.
982
983 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
984
985         * tests/test-argp.c: Fix indentation.
986
987 2010-02-04  Eric Blake  <ebb9@byu.net>
988
989         gettimeofday: expose type of second argument
990         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
991         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
992         * tests/test-gettimeofday.c: Use it to silence warning.
993         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
994         the issue.
995
996 2010-02-03  Jim Meyering  <meyering@redhat.com>
997
998         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
999         * lib/regcomp.c (TYPE_SIGNED): Define.
1000         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
1001
1002         regcomp.c: avoid a new -Wshadow warning
1003         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
1004
1005 2010-02-01  Jim Meyering  <meyering@redhat.com>
1006
1007         removing useless parentheses in cpp #define directives
1008         For motivation, see commit c0221df4, "define STREQ(a,b)
1009         consistently, removing useless parentheses"
1010         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
1011         * lib/mountlist.c (MNT_IGNORE): Likewise.
1012         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
1013
1014 2010-02-01  Eric Blake  <ebb9@byu.net>
1015
1016         sys_time: use link-warning
1017         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
1018         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
1019         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
1020         * modules/sys_time (Depends-on): Add warn-on-use.
1021         (Makefile.am): Always build replacement.
1022         (configure.ac): Update substitutions.
1023         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
1024         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
1025         bother with SYS_TIME_H.
1026         * modules/gettimeofday (configure.ac): Declare indicator.
1027         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
1028         in use.
1029
1030         closein-tests: silence compiler warning
1031         * tests/test-closein.c (main): Ignore fread result.
1032         * modules/closein-tests (Depends-on): Add ignore-value.
1033
1034         tests: silence warning about system return
1035         * tests/test-areadlink-with-size.c (main): Ignore system result.
1036         * tests/test-areadlink.c (main): Likewise.
1037         * tests/test-areadlinkat-with-size.c (main): Likewise.
1038         * tests/test-areadlinkat.c (main): Likewise.
1039         * tests/test-canonicalize-lgpl.c (main): Likewise.
1040         * tests/test-canonicalize.c (main): Likewise.
1041         * tests/test-chown.c (main): Likewise.
1042         * tests/test-fchownat.c (main): Likewise.
1043         * tests/test-fdutimensat.c (main): Likewise.
1044         * tests/test-fstatat.c (main): Likewise.
1045         * tests/test-futimens.c (main): Likewise.
1046         * tests/test-lchown.c (main): Likewise.
1047         * tests/test-link.c (main): Likewise.
1048         * tests/test-linkat.c (main): Likewise.
1049         * tests/test-lstat.c (main): Likewise.
1050         * tests/test-mkdir.c (main): Likewise.
1051         * tests/test-mkdirat.c (main): Likewise.
1052         * tests/test-mkfifo.c (main): Likewise.
1053         * tests/test-mkfifoat.c (main): Likewise.
1054         * tests/test-mknod.c (main): Likewise.
1055         * tests/test-readlink.c (main): Likewise.
1056         * tests/test-remove.c (main): Likewise.
1057         * tests/test-rename.c (main): Likewise.
1058         * tests/test-renameat.c (main): Likewise.
1059         * tests/test-rmdir.c (main): Likewise.
1060         * tests/test-symlink.c (main): Likewise.
1061         * tests/test-symlinkat.c (main): Likewise.
1062         * tests/test-unlink.c (main): Likewise.
1063         * tests/test-unlinkat.c (main): Likewise.
1064         * tests/test-utimens.c (main): Likewise.
1065         * tests/test-utimensat.c (main): Likewise.
1066         * modules/areadlink-tests (Depends-on): Add ignore-value.
1067         * modules/areadlink-with-size-tests (Depends-on): Likewise.
1068         * modules/areadlinkat-tests (Depends-on): Likewise.
1069         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
1070         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1071         * modules/canonicalize-tests (Depends-on): Likewise.
1072         * modules/chown-tests (Depends-on): Likewise.
1073         * modules/fdutimensat-tests (Depends-on): Likewise.
1074         * modules/futimens-tests (Depends-on): Likewise.
1075         * modules/lchown-tests (Depends-on): Likewise.
1076         * modules/link-tests (Depends-on): Likewise.
1077         * modules/linkat-tests (Depends-on): Likewise.
1078         * modules/lstat-tests (Depends-on): Likewise.
1079         * modules/mkdir-tests (Depends-on): Likewise.
1080         * modules/mkfifo-tests (Depends-on): Likewise.
1081         * modules/mkfifoat-tests (Depends-on): Likewise.
1082         * modules/mknod-tests (Depends-on): Likewise.
1083         * modules/openat-tests (Depends-on): Likewise.
1084         * modules/readlink-tests (Depends-on): Likewise.
1085         * modules/remove-tests (Depends-on): Likewise.
1086         * modules/rename-tests (Depends-on): Likewise.
1087         * modules/renameat-tests (Depends-on): Likewise.
1088         * modules/rmdir-tests (Depends-on): Likewise.
1089         * modules/symlink-tests (Depends-on): Likewise.
1090         * modules/symlinkat-tests (Depends-on): Likewise.
1091         * modules/unlink-tests (Depends-on): Likewise.
1092         * modules/utimens-tests (Depends-on): Likewise.
1093         * modules/utimensat-tests (Depends-on): Likewise.
1094
1095 2010-01-31  Bruno Haible  <bruno@clisp.org>
1096
1097         Perform the same test for many <math.h> functions.
1098         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
1099         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
1100         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
1101         of gl_MATHFUNC.
1102         * modules/acos (configure.ac): Likewise.
1103         * modules/asin (configure.ac): Likewise.
1104         * modules/atan (configure.ac): Likewise.
1105         * modules/atan2 (configure.ac): Likewise.
1106         * modules/cbrt (configure.ac): Likewise.
1107         * modules/copysign (configure.ac): Likewise.
1108         * modules/cos (configure.ac): Likewise.
1109         * modules/cosh (configure.ac): Likewise.
1110         * modules/erf (configure.ac): Likewise.
1111         * modules/erfc (configure.ac): Likewise.
1112         * modules/exp (configure.ac): Likewise.
1113         * modules/fmod (configure.ac): Likewise.
1114         * modules/hypot (configure.ac): Likewise.
1115         * modules/j0 (configure.ac): Likewise.
1116         * modules/j1 (configure.ac): Likewise.
1117         * modules/jn (configure.ac): Likewise.
1118         * modules/lgamma (configure.ac): Likewise.
1119         * modules/log (configure.ac): Likewise.
1120         * modules/log10 (configure.ac): Likewise.
1121         * modules/log1p (configure.ac): Likewise.
1122         * modules/pow (configure.ac): Likewise.
1123         * modules/remainder (configure.ac): Likewise.
1124         * modules/sin (configure.ac): Likewise.
1125         * modules/sinh (configure.ac): Likewise.
1126         * modules/tan (configure.ac): Likewise.
1127         * modules/tanh (configure.ac): Likewise.
1128         * modules/y0 (configure.ac): Likewise.
1129         * modules/y1 (configure.ac): Likewise.
1130         * modules/yn (configure.ac): Likewise.
1131         Suggested by Paolo Bonzini.
1132
1133 2010-01-31  Bruno Haible  <bruno@clisp.org>
1134
1135         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
1136
1137 2010-01-31  Bruno Haible  <bruno@clisp.org>
1138
1139         Work around getdelim() bug on FreeBSD 8.0.
1140         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
1141         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
1142         not work.
1143         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
1144         is 1.
1145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
1146         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
1147         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
1148         a non-zero size.
1149         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
1150
1151 2010-01-31  Bruno Haible  <bruno@clisp.org>
1152
1153         Work around getline() bug on FreeBSD 8.0.
1154         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
1155         and a non-zero size.
1156         * tests/test-getline.c (main): Likewise.
1157         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
1158         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
1159
1160 2010-01-28  Eric Blake  <ebb9@byu.net>
1161
1162         regex: fix build failure
1163         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
1164         platforms.
1165
1166 2010-01-28  Jim Meyering  <meyering@redhat.com>
1167
1168         regex: do not ignore memory allocation failure
1169         * lib/regex_internal.c (create_cd_newstate): Detect
1170         re_node_set_init_copy failure.   Extracted from glibc commit
1171         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1172
1173         regex: sync more white-space changes from libc
1174         * lib/regex_internal.c: White-space only changes.
1175         * lib/regexec.c: Likewise.
1176
1177         regex: add many uses of __attribute_warn_unused_result__
1178         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
1179         * lib/regexec.c: Likewise.
1180         Extracted from a messy glibc commit.
1181
1182         regcomp.c: spelling and merge-artifact from glibc
1183         * lib/regcomp.c: Merge remainder of glibc's
1184         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1185
1186         regcomp.c: sync white-space changes from glibc
1187         * lib/regcomp.c: Merge to accommodate white space
1188         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
1189
1190         regcomp.c: do not ignore internal return values
1191         * lib/regcomp.c: Do not ignore internal return values.
1192         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
1193         but without its white-space changes and spelling fixes.
1194
1195         regex_internal.h: define __attribute_warn_unused_result__
1196         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
1197
1198         maint: add a syntax-check rule to check for vulnerable Makefile.in
1199         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
1200
1201 2010-01-27  Jim Meyering  <meyering@redhat.com>
1202
1203         ncftpput-ftp: clean up spaces
1204         * build-aux/ncftpput-ftp: Make Copyright line consistent.
1205         Remove trailing blanks.
1206
1207 2010-01-27  Simon Josefsson  <simon@josefsson.org>
1208
1209         * build-aux/git-version-gen: Fix copyright statement.
1210         * build-aux/gnupload: Likewise.
1211         * tests/test-arcfour.c: Likewise.
1212         * tests/test-arctwo.c: Likewise.
1213         * tests/test-count-one-bits.c: Likewise.
1214         * tests/test-crc.c: Likewise.
1215         * tests/test-des.c: Likewise.
1216         * tests/test-gc-arcfour.c: Likewise.
1217         * tests/test-gc-arctwo.c: Likewise.
1218         * tests/test-gc-des.c: Likewise.
1219         * tests/test-gc-hmac-md5.c: Likewise.
1220         * tests/test-gc-hmac-sha1.c: Likewise.
1221         * tests/test-gc-md2.c: Likewise.
1222         * tests/test-gc-md4.c: Likewise.
1223         * tests/test-gc-md5.c: Likewise.
1224         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1225         * tests/test-gc-rijndael.c: Likewise.
1226         * tests/test-gc-sha1.c: Likewise.
1227         * tests/test-gc.c: Likewise.
1228         * tests/test-gethostname.c: Likewise.
1229         * tests/test-gettimeofday.c: Likewise.
1230         * tests/test-hash.c: Likewise.
1231         * tests/test-hmac-md5.c: Likewise.
1232         * tests/test-hmac-sha1.c: Likewise.
1233         * tests/test-md2.c: Likewise.
1234         * tests/test-md4.c: Likewise.
1235         * tests/test-md5.c: Likewise.
1236         * tests/test-memchr.c: Likewise.
1237         * tests/test-memchr2.c: Likewise.
1238         * tests/test-memcmp.c: Likewise.
1239         * tests/test-memmem.c: Likewise.
1240         * tests/test-memrchr.c: Likewise.
1241         * tests/test-rawmemchr.c: Likewise.
1242         * tests/test-read-file.c: Likewise.
1243         * tests/test-rijndael.c: Likewise.
1244         * tests/test-sockets.c: Likewise.
1245         * tests/test-strchrnul.c: Likewise.
1246         * tests/test-strstr.c: Likewise.
1247         * tests/test-strtod.c: Likewise.
1248         * build-aux/ncftpput-ftp: Likewise.
1249
1250 2010-01-26  Eric Blake  <ebb9@byu.net>
1251
1252         ignore-value: update recommended header name
1253         * modules/ignore-value (Include): Only use <> for headers that
1254         exist in glibc.
1255
1256 2010-01-26  Jim Meyering  <meyering@redhat.com>
1257
1258         test-userspec.c: avoid compiler warnings
1259         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
1260         and "initialization discards qualifiers..." warnings.
1261         Put the first "uid" in its own scope, and make char* members "const".
1262
1263 2010-01-25  Bruno Haible  <bruno@clisp.org>
1264
1265         gnulib-tool: Make warning diagnostics consistent.
1266         * gnulib-tool (func_warning): New function.
1267         Use it everywhere where gnulib-tool produces output to stderr and it is
1268         not a fatal error.
1269
1270 2010-01-25  Bruno Haible  <bruno@clisp.org>
1271
1272         Fix test dependencies.
1273         * modules/xstrtol-tests (Depends-on): Add inttypes.
1274         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
1275
1276 2010-01-25 Pádraig Brady <P@draigBrady.com>
1277
1278         syntax-check: detect incorrect boolean macro values in config.h
1279         * modules/maintainer-makefile (configure.ac): Parameterize the location
1280         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
1281         The logic is from Eric Blake and the location indicated by Jim Meyering.
1282         Note the more natural CONFIG_HEADER name is prohibited by automake
1283         for backwards compatibility reasons.
1284         * top/maint.mk (sc_Wundef_boolean): New rule.
1285
1286 2010-01-25  Jim Meyering  <meyering@redhat.com>
1287
1288         bootstrap: detect MacOS 10.6's shasum, too
1289         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
1290         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
1291
1292 2010-01-23  Jim Meyering  <meyering@redhat.com>
1293
1294         xstrtoll: new module
1295         * modules/xstrtoll: New file.
1296         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
1297         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
1298         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
1299         ./configure fails if you use this module and lack "long long".
1300         * modules/xstrtoll-tests: New module.
1301         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
1302         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
1303         new init.sh-based test framework.
1304
1305 2010-01-24  Bruno Haible  <bruno@clisp.org>
1306
1307         Tests for module 'yn'.
1308         * modules/yn-tests: New file.
1309         * tests/test-yn.c: New file.
1310
1311         Tests for module 'y1'.
1312         * modules/y1-tests: New file.
1313         * tests/test-y1.c: New file.
1314
1315         Tests for module 'y0'.
1316         * modules/y0-tests: New file.
1317         * tests/test-y0.c: New file.
1318
1319         Tests for module 'tanh'.
1320         * modules/tanh-tests: New file.
1321         * tests/test-tanh.c: New file.
1322
1323         Tests for module 'tan'.
1324         * modules/tan-tests: New file.
1325         * tests/test-tan.c: New file.
1326
1327         Tests for module 'sqrt'.
1328         * modules/sqrt-tests: New file.
1329         * tests/test-sqrt.c: New file.
1330
1331         Tests for module 'sinh'.
1332         * modules/sinh-tests: New file.
1333         * tests/test-sinh.c: New file.
1334
1335         Tests for module 'sin'.
1336         * modules/sin-tests: New file.
1337         * tests/test-sin.c: New file.
1338
1339         Tests for module 'rint'.
1340         * modules/rint-tests: New file.
1341         * tests/test-rint.c: New file.
1342
1343         Tests for module 'remainder'.
1344         * modules/remainder-tests: New file.
1345         * tests/test-remainder.c: New file.
1346
1347         Tests for module 'pow'.
1348         * modules/pow-tests: New file.
1349         * tests/test-pow.c: New file.
1350
1351         Tests for module 'nextafter'.
1352         * modules/nextafter-tests: New file.
1353         * tests/test-nextafter.c: New file.
1354
1355         Tests for module 'modf'.
1356         * modules/modf-tests: New file.
1357         * tests/test-modf.c: New file.
1358
1359         Tests for module 'logb'.
1360         * modules/logb-tests: New file.
1361         * tests/test-logb.c: New file.
1362
1363         Tests for module 'log1p'.
1364         * modules/log1p-tests: New file.
1365         * tests/test-log1p.c: New file.
1366
1367         Tests for module 'log10'.
1368         * modules/log10-tests: New file.
1369         * tests/test-log10.c: New file.
1370
1371         Tests for module 'log'.
1372         * modules/log-tests: New file.
1373         * tests/test-log.c: New file.
1374
1375         Tests for module 'lgamma'.
1376         * modules/lgamma-tests: New file.
1377         * tests/test-lgamma.c: New file.
1378
1379         Tests for module 'ldexp'.
1380         * modules/ldexp-tests: New file.
1381         * tests/test-ldexp.c: New file.
1382
1383         Tests for module 'jn'.
1384         * modules/jn-tests: New file.
1385         * tests/test-jn.c: New file.
1386
1387         Tests for module 'j1'.
1388         * modules/j1-tests: New file.
1389         * tests/test-j1.c: New file.
1390
1391         Tests for module 'j0'.
1392         * modules/j0-tests: New file.
1393         * tests/test-j0.c: New file.
1394
1395         Tests for module 'hypot'.
1396         * modules/hypot-tests: New file.
1397         * tests/test-hypot.c: New file.
1398
1399         Tests for module 'fmod'.
1400         * modules/fmod-tests: New file.
1401         * tests/test-fmod.c: New file.
1402
1403         Tests for module 'fabs'.
1404         * modules/fabs-tests: New file.
1405         * tests/test-fabs.c: New file.
1406
1407         Tests for module 'exp'.
1408         * modules/exp-tests: New file.
1409         * tests/test-exp.c: New file.
1410
1411         Tests for module 'erfc'.
1412         * modules/erfc-tests: New file.
1413         * tests/test-erfc.c: New file.
1414
1415         Tests for module 'erf'.
1416         * modules/erf-tests: New file.
1417         * tests/test-erf.c: New file.
1418
1419         Tests for module 'cosh'.
1420         * modules/cosh-tests: New file.
1421         * tests/test-cosh.c: New file.
1422
1423         Tests for module 'cos'.
1424         * modules/cos-tests: New file.
1425         * tests/test-cos.c: New file.
1426
1427         Tests for module 'copysign'.
1428         * modules/copysign-tests: New file.
1429         * tests/test-copysign.c: New file.
1430
1431         Tests for module 'cbrt'.
1432         * modules/cbrt-tests: New file.
1433         * tests/test-cbrt.c: New file.
1434
1435         Tests for module 'atan2'.
1436         * modules/atan2-tests: New file.
1437         * tests/test-atan2.c: New file.
1438
1439         Tests for module 'atan'.
1440         * modules/atan-tests: New file.
1441         * tests/test-atan.c: New file.
1442
1443         Tests for module 'asin'.
1444         * modules/asin-tests: New file.
1445         * tests/test-asin.c: New file.
1446
1447         Tests for module 'acos'.
1448         * modules/acos-tests: New file.
1449         * tests/test-acos.c: New file.
1450
1451 2010-01-24  Bruno Haible  <bruno@clisp.org>
1452
1453         Fix tests for common <math.h> functions.
1454         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1455         code snippet that references the function pointer, rather than merely
1456         calling the function. Substitute the FUNC_LIBM variable.
1457         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1458         * modules/acos (configure.ac): Likewise.
1459         * modules/asin (configure.ac): Likewise.
1460         * modules/atan (configure.ac): Likewise.
1461         * modules/atan2 (configure.ac): Likewise.
1462         * modules/cbrt (configure.ac): Likewise.
1463         * modules/copysign (configure.ac): Likewise.
1464         * modules/cos (configure.ac): Likewise.
1465         * modules/cosh (configure.ac): Likewise.
1466         * modules/erf (configure.ac): Likewise.
1467         * modules/erfc (configure.ac): Likewise.
1468         * modules/exp (configure.ac): Likewise.
1469         * modules/fabs (configure.ac): Likewise.
1470         * modules/fmod (configure.ac): Likewise.
1471         * modules/hypot (configure.ac): Likewise.
1472         * modules/j0 (configure.ac): Likewise.
1473         * modules/j1 (configure.ac): Likewise.
1474         * modules/jn (configure.ac): Likewise.
1475         * modules/ldexp (configure.ac): Likewise.
1476         * modules/lgamma (configure.ac): Likewise.
1477         * modules/log (configure.ac): Likewise.
1478         * modules/log10 (configure.ac): Likewise.
1479         * modules/log1p (configure.ac): Likewise.
1480         * modules/logb (configure.ac): Likewise.
1481         * modules/modf (configure.ac): Likewise.
1482         * modules/nextafter (configure.ac): Likewise.
1483         * modules/pow (configure.ac): Likewise.
1484         * modules/remainder (configure.ac): Likewise.
1485         * modules/rint (configure.ac): Likewise.
1486         * modules/sin (configure.ac): Likewise.
1487         * modules/sinh (configure.ac): Likewise.
1488         * modules/tan (configure.ac): Likewise.
1489         * modules/tanh (configure.ac): Likewise.
1490         * modules/y0 (configure.ac): Likewise.
1491         * modules/y1 (configure.ac): Likewise.
1492         * modules/yn (configure.ac): Likewise.
1493
1494 2010-01-24  Bruno Haible  <bruno@clisp.org>
1495
1496         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1497         * tests/test-acosl.c (x): New variable.
1498         (main): Store argument in x and fetch it from x.
1499         * tests/test-asinl.c (x): New variable.
1500         (main): Store argument in x and fetch it from x.
1501         * tests/test-atanl.c (x): New variable.
1502         (main): Store argument in x and fetch it from x.
1503         * tests/test-cosl.c (x): New variable.
1504         (main): Store argument in x and fetch it from x.
1505         * tests/test-expl.c (x): New variable.
1506         (main): Store argument in x and fetch it from x.
1507         * tests/test-logl.c (x): New variable.
1508         (main): Store argument in x and fetch it from x.
1509         * tests/test-sinl.c (x): New variable.
1510         (main): Store argument in x and fetch it from x.
1511         * tests/test-sqrtl.c (x): New variable.
1512         (main): Store argument in x and fetch it from x.
1513         * tests/test-tanl.c (x): New variable.
1514         (main): Store argument in x and fetch it from x.
1515
1516 2010-01-24  Bruno Haible  <bruno@clisp.org>
1517
1518         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1519         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1520         assignments to the initial TESTS_ENVIRONMENT.
1521         * doc/gnulib.texi (Unit test modules): Document it.
1522         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1523         TESTS_ENVIRONMENT.
1524         * modules/btowc-tests (Makefile.am): Likewise.
1525         * modules/c-stack-tests (Makefile.am): Likewise.
1526         * modules/c-strcase-tests (Makefile.am): Likewise.
1527         * modules/copy-file-tests (Makefile.am): Likewise.
1528         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1529         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1530         * modules/mbrtowc-tests (Makefile.am): Likewise.
1531         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1532         * modules/mbscasestr-tests (Makefile.am): Likewise.
1533         * modules/mbschr-tests (Makefile.am): Likewise.
1534         * modules/mbscspn-tests (Makefile.am): Likewise.
1535         * modules/mbsinit-tests (Makefile.am): Likewise.
1536         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1537         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1538         * modules/mbspbrk-tests (Makefile.am): Likewise.
1539         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1540         * modules/mbsrchr-tests (Makefile.am): Likewise.
1541         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1542         * modules/mbsspn-tests (Makefile.am): Likewise.
1543         * modules/mbsstr-tests (Makefile.am): Likewise.
1544         * modules/nl_langinfo-tests (Makefile.am): Likewise.
1545         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1546         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1547         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1548         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1549         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1550         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1551         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1552         * modules/wcrtomb-tests (Makefile.am): Likewise.
1553         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1554         * modules/wcsrtombs-tests (Makefile.am): Likewise.
1555         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1556         assignments from TESTS_ENVIRONMENT.
1557         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1558         augmentation.
1559         * modules/argp-version-etc-tests (Makefile.am): Likewise.
1560         * modules/atexit-tests (Makefile.am): Likewise.
1561         * modules/binary-io-tests (Makefile.am): Likewise.
1562         * modules/closein-tests (Makefile.am): Likewise.
1563         * modules/dprintf-posix-tests (Makefile.am): Likewise.
1564         * modules/exclude-tests (Makefile.am): Likewise.
1565         * modules/fflush-tests (Makefile.am): Likewise.
1566         * modules/fpending-tests (Makefile.am): Likewise.
1567         * modules/fprintf-posix-tests (Makefile.am): Likewise.
1568         * modules/freadahead-tests (Makefile.am): Likewise.
1569         * modules/freadptr-tests (Makefile.am): Likewise.
1570         * modules/freadseek-tests (Makefile.am): Likewise.
1571         * modules/fseek-tests (Makefile.am): Likewise.
1572         * modules/fseeko-tests (Makefile.am): Likewise.
1573         * modules/ftell-tests (Makefile.am): Likewise.
1574         * modules/ftello-tests (Makefile.am): Likewise.
1575         * modules/idpriv-drop-tests (Makefile.am): Likewise.
1576         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1577         * modules/lseek-tests (Makefile.am): Likewise.
1578         * modules/parse-duration-tests (Makefile.am): Likewise.
1579         * modules/perror-tests (Makefile.am): Likewise.
1580         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1581         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1582         * modules/pipe-tests (Makefile.am): Likewise.
1583         * modules/pread-tests (Makefile.am): Likewise.
1584         * modules/printf-posix-tests (Makefile.am): Likewise.
1585         * modules/select-tests (Makefile.am): Likewise.
1586         * modules/sigpipe-tests (Makefile.am): Likewise.
1587         * modules/tsearch-tests (Makefile.am): Likewise.
1588         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1589         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1590         * modules/uniname/uniname-tests (Makefile.am): Likewise.
1591         * modules/uniwidth/width-tests (Makefile.am): Likewise.
1592         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1593         * modules/version-etc-tests (Makefile.am): Likewise.
1594         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1595         * modules/vprintf-posix-tests (Makefile.am): Likewise.
1596         * modules/xalloc-die-tests (Makefile.am): Likewise.
1597         * modules/xprintf-posix-tests (Makefile.am): Likewise.
1598         * modules/xstrtoimax-tests (Makefile.am): Likewise.
1599         * modules/xstrtol-tests (Makefile.am): Likewise.
1600         * modules/xstrtoumax-tests (Makefile.am): Likewise.
1601         * modules/yesno-tests (Makefile.am): Likewise.
1602         Suggested by Jim Meyering.
1603
1604 2010-01-24  Bruno Haible  <bruno@clisp.org>
1605
1606         More documentation.
1607         * doc/gnulib.texi (Writing modules): New chapter.
1608         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1609         the new chapter.
1610
1611 2010-01-24  Jim Meyering  <meyering@redhat.com>
1612
1613         maint.mk: do not prepend "./" after filtering
1614         * top/maint.mk (_prepend_srcdir_prefix): New variable
1615         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1616         "./" when $(srcdir) is ".".
1617
1618         define STREQ(a,b) consistently, removing useless parentheses
1619         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1620         since the only risk is that "a" or "b" contains an unparenthesized
1621         comma, but if either did that, STREQ would have 3 or more arguments.
1622         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1623         * lib/fts.c (STREQ): Remove unnecessary parentheses.
1624         * lib/hash-triple.c (STREQ): Likewise.
1625         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1626         * lib/getugroups.c (STREQ): Likewise.
1627
1628 2010-01-23  Jim Meyering  <meyering@redhat.com>
1629
1630         maint.mk: fix syntax-check in a non-srcdir build directory
1631         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1632         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
1633
1634 2010-01-22  Jim Meyering  <meyering@redhat.com>
1635
1636         userspec: add unit tests
1637         * tests/test-userspec.c: New file.
1638         * modules/userspec-tests: Likewise.
1639
1640 2010-01-21  Jim Meyering  <meyering@redhat.com>
1641
1642         maint.mk: handle source file names containing "." robustly
1643         * top/maint.mk (_dot_escaped_srcdir): Define.
1644         (VC_LIST): Use it in LHS of sed substitution.
1645
1646 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
1647
1648         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1649         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1650         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1651         from a non-srcdir build.
1652
1653 2010-01-20  Eric Blake  <ebb9@byu.net>
1654
1655         warn-on-use: use instead of link-warning
1656         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1657         * modules/unistd (Depends-on, Makefile.am): Likewise.
1658         * modules/arpa_inet (Depends-on): Replace link-warning with
1659         warn-on-use.
1660         (Makefile.am): Update rules accordingly.
1661         * modules/ctype (Depends-on, Makefile.am): Likewise.
1662         * modules/dirent (Depends-on, Makefile.am): Likewise.
1663         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1664         * modules/inttypes (Depends-on, Makefile.am): Likewise.
1665         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1666         * modules/locale (Depends-on, Makefile.am): Likewise.
1667         * modules/math (Depends-on, Makefile.am): Likewise.
1668         * modules/search (Depends-on, Makefile.am): Likewise.
1669         * modules/signal (Depends-on, Makefile.am): Likewise.
1670         * modules/spawn (Depends-on, Makefile.am): Likewise.
1671         * modules/stdlib (Depends-on, Makefile.am): Likewise.
1672         * modules/string (Depends-on, Makefile.am): Likewise.
1673         * modules/strings (Depends-on, Makefile.am): Likewise.
1674         * modules/sys_file (Depends-on, Makefile.am): Likewise.
1675         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1676         * modules/sys_select (Depends-on, Makefile.am): Likewise.
1677         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1678         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1679         * modules/sys_times (Depends-on, Makefile.am): Likewise.
1680         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1681         * modules/wchar (Depends-on, Makefile.am): Likewise.
1682         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1683         should be poisoned.
1684         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1685         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1686         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1687         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1688         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1689         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1690         * m4/math_h.m4 (gl_MATH_H): Likewise.
1691         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1692         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1693         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1694         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1695         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1696         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1697         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1698         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1699         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1702         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1703         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1704         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1705         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1706         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1707         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1708         GL_LINK_WARNING.
1709         * lib/ctype.in.h: Likewise.
1710         * lib/dirent.in.h: Likewise.
1711         * lib/fcntl.in.h: Likewise.
1712         * lib/inttypes.in.h: Likewise.
1713         * lib/langinfo.in.h: Likewise.
1714         * lib/locale.in.h: Likewise.
1715         * lib/math.in.h: Likewise.
1716         * lib/search.in.h: Likewise.
1717         * lib/signal.in.h: Likewise.
1718         * lib/spawn.in.h: Likewise.
1719         * lib/stdio.in.h: Likewise.
1720         * lib/stdlib.in.h: Likewise.
1721         * lib/string.in.h: Likewise.
1722         * lib/strings.in.h: Likewise.
1723         * lib/sys_file.in.h: Likewise.
1724         * lib/sys_ioctl.in.h: Likewise.
1725         * lib/sys_select.in.h: Likewise.
1726         * lib/sys_socket.in.h: Likewise.
1727         * lib/sys_stat.in.h: Likewise.
1728         * lib/sys_times.in.h: Likewise.
1729         * lib/sys_utsname.in.h: Likewise.
1730         * lib/unistd.in.h: Likewise.
1731         * lib/wchar.in.h: Likewise.
1732
1733 2010-01-20  Bruno Haible  <bruno@clisp.org>
1734
1735         Avoid duplicate -lm.
1736         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1737         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1738         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1739         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1740         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1741         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1742         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1743         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1744         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1745         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1746         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1747         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1748         Reported by Paolo Bonzini.
1749
1750 2010-01-19  Bruno Haible  <bruno@clisp.org>
1751
1752         langinfo, nl_langinfo: Relicense under LGPLv2+.
1753         * modules/langinfo (License): Change to LGPLv2+.
1754         * modules/nl_langinfo (License): Likewise.
1755         Patch by David Lutterkort <lutter@redhat.com>.
1756
1757 2010-01-19  Bruno Haible  <bruno@clisp.org>
1758
1759         Avoid compilation error with cc on OSF/1 5.1.
1760         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1761         statement, not before.
1762         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1763
1764 2010-01-18  Bruno Haible  <bruno@clisp.org>
1765
1766         Avoid a link error due to the __printf__ symbol.
1767         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1768         and 2.6.x.
1769         (__format__, __printf__): Remove definitions.
1770         * lib/argp-fmtstream.h: Likewise.
1771         * lib/argp.h: Likewise.
1772         * lib/error.h: Likewise.
1773         * lib/vasnprintf.h: Likewise.
1774         * lib/xprintf.h: Likewise.
1775         * lib/xvasprintf.h: Likewise.
1776         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1777
1778 2010-01-18  Bruno Haible  <bruno@clisp.org>
1779
1780         Tests for module 'tanl'.
1781         * modules/tanl-tests: New file.
1782         * tests/test-tanl.c: New file.
1783
1784         Tests for module 'sqrtl'.
1785         * modules/sqrtl-tests: New file.
1786         * tests/test-sqrtl.c: New file.
1787
1788         Tests for module 'sinl'.
1789         * modules/sinl-tests: New file.
1790         * tests/test-sinl.c: New file.
1791
1792         Tests for module 'logl'.
1793         * modules/logl-tests: New file.
1794         * tests/test-logl.c: New file.
1795
1796         Tests for module 'expl'.
1797         * modules/expl-tests: New file.
1798         * tests/test-expl.c: New file.
1799
1800         Tests for module 'cosl'.
1801         * modules/cosl-tests: New file.
1802         * tests/test-cosl.c: New file.
1803
1804         Tests for module 'atanl'.
1805         * modules/atanl-tests: New file.
1806         * tests/test-atanl.c: New file.
1807
1808         Tests for module 'asinl'.
1809         * modules/asinl-tests: New file.
1810         * tests/test-asinl.c: New file.
1811
1812         Tests for module 'acosl'.
1813         * modules/acosl-tests: New file.
1814         * tests/test-acosl.c: New file.
1815
1816         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1817         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1818         tanl): Use the standard gnulib idiom.
1819         * lib/cosl.c: Don't include trigl.c and sincosl.c.
1820         * lib/sinl.c: Likewise.
1821         * lib/tanl.c: Don't include trigl.c.
1822         (kernel_tanl): Make static.
1823         * lib/sincosl.c: Include trigl.h first.
1824         * lib/trigl.c: Likewise.
1825         * m4/acosl.m4: New file.
1826         * m4/asinl.m4: New file.
1827         * m4/atanl.m4: New file.
1828         * m4/cosl.m4: New file.
1829         * m4/expl.m4: New file.
1830         * m4/logl.m4: New file.
1831         * m4/sinl.m4: New file.
1832         * m4/sqrtl.m4: New file.
1833         * m4/tanl.m4: New file.
1834         * m4/mathl.m4: Remove file.
1835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1836         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1837         Don't initialize GNULIB_MATHL.
1838         * modules/acosl: New file.
1839         * modules/asinl: New file.
1840         * modules/atanl: New file.
1841         * modules/cosl: New file.
1842         * modules/expl: New file.
1843         * modules/logl: New file.
1844         * modules/sinl: New file.
1845         * modules/sqrtl: New file.
1846         * modules/tanl: New file.
1847         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1848         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1849         substitute GNULIB_MATHL.
1850         * modules/mathl: Rewritten.
1851         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1852         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1853         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1854         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1855         * doc/posix-functions/expl.texi: Mention the 'expl' module.
1856         * doc/posix-functions/logl.texi: Mention the 'logl' module.
1857         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1858         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1859         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1860
1861 2010-01-18  Bruno Haible  <bruno@clisp.org>
1862
1863         sqrt: Make gl_FUNC_SQRT requirable.
1864         * m4/sqrt.m4: New file.
1865         * modules/sqrt (Files): Add it.
1866         (configure.ac): Invoke gl_FUNC_SQRT.
1867
1868 2010-01-18  Bruno Haible  <bruno@clisp.org>
1869
1870         New modules for common <math.h> functions.
1871         * m4/mathfunc.m4: New file.
1872         * modules/acos: New file.
1873         * modules/asin: New file.
1874         * modules/atan: New file.
1875         * modules/atan2: New file.
1876         * modules/cbrt: New file.
1877         * modules/copysign: New file.
1878         * modules/cos: New file.
1879         * modules/cosh: New file.
1880         * modules/erf: New file.
1881         * modules/erfc: New file.
1882         * modules/exp: New file.
1883         * modules/fabs: New file.
1884         * modules/fmod: New file.
1885         * modules/hypot: New file.
1886         * modules/j0: New file.
1887         * modules/j1: New file.
1888         * modules/jn: New file.
1889         * modules/ldexp: New file.
1890         * modules/lgamma: New file.
1891         * modules/log: New file.
1892         * modules/log10: New file.
1893         * modules/log1p: New file.
1894         * modules/logb: New file.
1895         * modules/modf: New file.
1896         * modules/nextafter: New file.
1897         * modules/pow: New file.
1898         * modules/remainder: New file.
1899         * modules/rint: New file.
1900         * modules/sin: New file.
1901         * modules/sinh: New file.
1902         * modules/sqrt: New file.
1903         * modules/tan: New file.
1904         * modules/tanh: New file.
1905         * modules/y0: New file.
1906         * modules/y1: New file.
1907         * modules/yn: New file.
1908         * doc/posix-functions/acos.texi: Mention the 'acos' module.
1909         * doc/posix-functions/asin.texi: Mention the 'asin' module.
1910         * doc/posix-functions/atan.texi: Mention the 'atan' module.
1911         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1912         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1913         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1914         * doc/posix-functions/cos.texi: Mention the 'cos' module.
1915         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1916         * doc/posix-functions/erf.texi: Mention the 'erf' module.
1917         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1918         * doc/posix-functions/exp.texi: Mention the 'exp' module.
1919         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1920         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1921         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1922         * doc/posix-functions/j0.texi: Mention the 'j0' module.
1923         * doc/posix-functions/j1.texi: Mention the 'j1' module.
1924         * doc/posix-functions/jn.texi: Mention the 'jn' module.
1925         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1926         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1927         * doc/posix-functions/log.texi: Mention the 'log' module.
1928         * doc/posix-functions/log10.texi: Mention the 'log10' module.
1929         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1930         * doc/posix-functions/logb.texi: Mention the 'logb' module.
1931         * doc/posix-functions/modf.texi: Mention the 'modf' module.
1932         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1933         * doc/posix-functions/pow.texi: Mention the 'pow' module.
1934         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1935         * doc/posix-functions/rint.texi: Mention the 'rint' module.
1936         * doc/posix-functions/sin.texi: Mention the 'sin' module.
1937         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1938         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1939         * doc/posix-functions/tan.texi: Mention the 'tan' module.
1940         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1941         * doc/posix-functions/y0.texi: Mention the 'y0' module.
1942         * doc/posix-functions/y1.texi: Mention the 'y1' module.
1943         * doc/posix-functions/yn.texi: Mention the 'yn' module.
1944
1945 2010-01-18  Jim Meyering  <meyering@redhat.com>
1946
1947         ignore-value: relax license to LGPLv2+
1948         * modules/ignore-value (License): Relax to LGPLv2+.
1949
1950         getdate: don't leak when TZ contains two or more '"'s
1951         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1952         double quote in TZ after the first one.
1953
1954         readtokens: do not leak internal token_lengths buffer
1955         * lib/readtokens.c (readtokens): Free the local, lengths,
1956         when the supplied "token_lengths" parameter is NULL.
1957
1958 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1959
1960         Fix a couple of missing LIBTHREAD link failures on AIX.
1961         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1962         $(LIBTHREAD).
1963         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1964
1965         Link test-poll against INET_PTON_LIB.
1966         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1967         for inet_pton on Solaris 10.
1968
1969 2010-01-17  Bruno Haible  <bruno@clisp.org>
1970
1971         unistdio/*-sprintf: Fix typo in module description.
1972         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1973         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1974         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1975         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1976         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1977         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1978         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1980
1981 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1982
1983         gnulib-tool: fix filelist for AIX, HP-UX ksh.
1984         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1985         variables in shell case patterns, for AIX and HP-UX ksh.
1986
1987         Split large sed scripts, for HP-UX sed.
1988         * modules/stdio: Split sed scripts around 50 sed commands,
1989         to avoid HP-UX limit of 99 commands, in the near future.
1990         * modules/string: Likewise.
1991         * modules/unistd: Likewise.
1992
1993         gnulib-tool: avoid writing in the current directory.
1994         * gnulib-tool (func_emit_lib_Makefile_am)
1995         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1996         not in the current directory, so concurrent gnulib-tool
1997         instances do not interfere.
1998
1999 2010-01-16  Jim Meyering  <meyering@redhat.com>
2000
2001         doc: update users.txt
2002         * users.txt: Add grep.
2003         (diffutils, gzip): Update URLs.
2004
2005 2010-01-12  Bruno Haible  <bruno@clisp.org>
2006
2007         posix_spawn: Avoid test failure on Cygwin.
2008         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
2009         characters.
2010         Reported by Simon Josefsson.
2011
2012 2010-01-12  Bruno Haible  <bruno@clisp.org>
2013
2014         * tests/test-cond.c (main): When skipping the test, show the reason.
2015
2016 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2017
2018         * lib/striconv.c (str_cd_iconv): Avoid if before free.
2019
2020 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2021
2022         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
2023         VC_LIST_ALWAYS_EXCLUDE_REGEX.
2024
2025 2010-01-12  Eric Blake  <ebb9@byu.net>
2026
2027         build: guarantee AS_VAR_IF
2028         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
2029         (gl_AS_VAR_IF): Move...
2030         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
2031         Reported by Simon Josefsson.
2032
2033 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2034
2035         * lib/stdio.in.h: Fix typo.
2036
2037 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2038
2039         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
2040         libgpg-error.
2041
2042 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2043
2044         * tests/test-xalloc-die.sh: Use $EXEEXT.
2045
2046 2010-01-12  Simon Josefsson  <simon@josefsson.org>
2047             Bruno Haible  <bruno@clisp.org>
2048
2049         getlogin, getlogin_r: Avoid test failure.
2050         * tests/test-getlogin.c: Include <stdio.h>.
2051         (main): Skip the test when the function fails because stdin is not a
2052         tty.
2053         * tests/test-getlogin_r.c: Include <stdio.h>.
2054         (main): Skip the test when the function fails because stdin is not a
2055         tty.
2056
2057 2010-01-11  Eric Blake  <ebb9@byu.net>
2058
2059         tests: avoid more large file warnings
2060         * tests/test-fflush.c: Avoid warning about ftell use.
2061         * tests/test-fseek.c: Avoid warning about fseek use.
2062
2063 2010-01-10  Bruno Haible  <bruno@clisp.org>
2064
2065         nproc: Work better on Linux when /proc and /sys are not mounted.
2066         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
2067         as lower bound when, on glibc/Linux systems,
2068         sysconf (_SC_NPROCESSORS_CONF) returns 1.
2069         Suggested by Pádraig Brady <P@draigbrady.com>.
2070         Reported by Dmitry V. Levin <ldv@altlinux.org>.
2071
2072         nproc: Refactor.
2073         * lib/nproc.c (num_processors_via_affinity_mask): New function,
2074         extracted from num_processors.
2075         (num_processors): Call it.
2076
2077 2010-01-11  Jim Meyering  <meyering@redhat.com>
2078
2079         utimecmp: avoid new warning from upcoming gcc-4.5.0
2080         * lib/utimecmp.c (BILLION): Define using #define rather than an
2081         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
2082
2083 2010-01-11  Eric Blake  <ebb9@byu.net>
2084
2085         math: add portability warnings for classification macros
2086         * modules/math (Depends-on): Add warn-on-use.
2087         (Makefile.am): Provide new substitutions.
2088         * m4/math_h.m4 (gl_MATH_H): Require inline.
2089         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
2090         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
2091         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
2092         implement warnings.
2093
2094         unistd: warn on use of environ without module
2095         * modules/unistd (Depends-on): Add warn-on-use.
2096         (Makefile.am): Provide new substitutions.
2097         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
2098         * lib/unistd.in.h (environ): Wrap with a warning helper function.
2099
2100         stdio: warn on suspicious uses
2101         * modules/stdio (Depends-on): Add warn-on-use.
2102         (Makefile.am): Provide new substitutions.
2103         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
2104         fseeko.
2105         * lib/stdio.in.h (gets): Always warn on use.
2106         (fseek, ftell): Adjust when warnings are issued, and honor
2107         _GL_NO_LARGE_FILES as a way to silence the warning.
2108         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
2109         any warning about large file offsets.
2110         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
2111         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
2112         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
2113         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
2114         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
2115         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
2116         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
2117         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
2118
2119         warn-on-use: new module
2120         * modules/warn-on-use: New file.
2121         * build-aux/warn-on-use.h: Likewise.
2122         * m4/warn-on-use.m4: Likewise.
2123         * MODULES.html.sh (Support for building): Mention it.
2124
2125 2010-01-10  Bruno Haible  <bruno@clisp.org>
2126
2127         Tests for module 'unistr/u32-strdup'.
2128         * modules/unistr/u32-strdup-tests: New file.
2129         * tests/unistr/test-u32-strdup.c: New file.
2130
2131         Tests for module 'unistr/u16-strdup'.
2132         * modules/unistr/u16-strdup-tests: New file.
2133         * tests/unistr/test-u16-strdup.c: New file.
2134
2135         Tests for module 'unistr/u8-strdup'.
2136         * modules/unistr/u8-strdup-tests: New file.
2137         * tests/unistr/test-u8-strdup.c: New file.
2138         * tests/unistr/test-strdup.h: New file.
2139
2140         Tests for module 'unistr/u32-strncmp'.
2141         * modules/unistr/u32-strncmp-tests: New file.
2142         * tests/unistr/test-u32-strncmp.c: New file.
2143
2144         Tests for module 'unistr/u16-strncmp'.
2145         * modules/unistr/u16-strncmp-tests: New file.
2146         * tests/unistr/test-u16-strncmp.c: New file.
2147
2148         Tests for module 'unistr/u8-strncmp'.
2149         * modules/unistr/u8-strncmp-tests: New file.
2150         * tests/unistr/test-u8-strncmp.c: New file.
2151         * tests/unistr/test-strncmp.h: New file.
2152
2153         Tests for module 'unistr/u32-strcoll'.
2154         * modules/unistr/u32-strcoll-tests: New file.
2155         * tests/unistr/test-u32-strcoll.c: New file.
2156
2157         Tests for module 'unistr/u16-strcoll'.
2158         * modules/unistr/u16-strcoll-tests: New file.
2159         * tests/unistr/test-u16-strcoll.c: New file.
2160
2161         Tests for module 'unistr/u8-strcoll'.
2162         * modules/unistr/u8-strcoll-tests: New file.
2163         * tests/unistr/test-u8-strcoll.c: New file.
2164
2165         Tests for module 'unistr/u32-strcmp'.
2166         * modules/unistr/u32-strcmp-tests: New file.
2167         * tests/unistr/test-u32-strcmp.c: New file.
2168         * tests/unistr/test-u32-strcmp.h: New file.
2169
2170         Tests for module 'unistr/u16-strcmp'.
2171         * modules/unistr/u16-strcmp-tests: New file.
2172         * tests/unistr/test-u16-strcmp.c: New file.
2173         * tests/unistr/test-u16-strcmp.h: New file.
2174
2175         Tests for module 'unistr/u8-strcmp'.
2176         * modules/unistr/u8-strcmp-tests: New file.
2177         * tests/unistr/test-u8-strcmp.c: New file.
2178         * tests/unistr/test-u8-strcmp.h: New file.
2179         * tests/unistr/test-strcmp.h: New file.
2180
2181         Tests for module 'unistr/u32-strncat'.
2182         * modules/unistr/u32-strncat-tests: New file.
2183         * tests/unistr/test-u32-strncat.c: New file.
2184
2185         Tests for module 'unistr/u16-strncat'.
2186         * modules/unistr/u16-strncat-tests: New file.
2187         * tests/unistr/test-u16-strncat.c: New file.
2188
2189         Tests for module 'unistr/u8-strncat'.
2190         * modules/unistr/u8-strncat-tests: New file.
2191         * tests/unistr/test-u8-strncat.c: New file.
2192         * tests/unistr/test-strncat.h: New file.
2193
2194         Tests for module 'unistr/u32-strcat'.
2195         * modules/unistr/u32-strcat-tests: New file.
2196         * tests/unistr/test-u32-strcat.c: New file.
2197
2198         Tests for module 'unistr/u16-strcat'.
2199         * modules/unistr/u16-strcat-tests: New file.
2200         * tests/unistr/test-u16-strcat.c: New file.
2201
2202         Tests for module 'unistr/u8-strcat'.
2203         * modules/unistr/u8-strcat-tests: New file.
2204         * tests/unistr/test-u8-strcat.c: New file.
2205         * tests/unistr/test-strcat.h: New file.
2206
2207         Tests for module 'unistr/u32-stpncpy'.
2208         * modules/unistr/u32-stpncpy-tests: New file.
2209         * tests/unistr/test-u32-stpncpy.c: New file.
2210
2211         Tests for module 'unistr/u16-stpncpy'.
2212         * modules/unistr/u16-stpncpy-tests: New file.
2213         * tests/unistr/test-u16-stpncpy.c: New file.
2214
2215         Tests for module 'unistr/u8-stpncpy'.
2216         * modules/unistr/u8-stpncpy-tests: New file.
2217         * tests/unistr/test-u8-stpncpy.c: New file.
2218         * tests/unistr/test-stpncpy.h: New file.
2219
2220         Tests for module 'unistr/u32-strncpy'.
2221         * modules/unistr/u32-strncpy-tests: New file.
2222         * tests/unistr/test-u32-strncpy.c: New file.
2223
2224         Tests for module 'unistr/u16-strncpy'.
2225         * modules/unistr/u16-strncpy-tests: New file.
2226         * tests/unistr/test-u16-strncpy.c: New file.
2227
2228         Tests for module 'unistr/u8-strncpy'.
2229         * modules/unistr/u8-strncpy-tests: New file.
2230         * tests/unistr/test-u8-strncpy.c: New file.
2231         * tests/unistr/test-strncpy.h: New file.
2232
2233         Tests for module 'unistr/u32-stpcpy'.
2234         * modules/unistr/u32-stpcpy-tests: New file.
2235         * tests/unistr/test-u32-stpcpy.c: New file.
2236
2237         Tests for module 'unistr/u16-stpcpy'.
2238         * modules/unistr/u16-stpcpy-tests: New file.
2239         * tests/unistr/test-u16-stpcpy.c: New file.
2240
2241         Tests for module 'unistr/u8-stpcpy'.
2242         * modules/unistr/u8-stpcpy-tests: New file.
2243         * tests/unistr/test-u8-stpcpy.c: New file.
2244         * tests/unistr/test-stpcpy.h: New file.
2245
2246         Tests for module 'unistr/u32-strcpy'.
2247         * modules/unistr/u32-strcpy-tests: New file.
2248         * tests/unistr/test-u32-strcpy.c: New file.
2249
2250         Tests for module 'unistr/u16-strcpy'.
2251         * modules/unistr/u16-strcpy-tests: New file.
2252         * tests/unistr/test-u16-strcpy.c: New file.
2253
2254         Tests for module 'unistr/u8-strcpy'.
2255         * modules/unistr/u8-strcpy-tests: New file.
2256         * tests/unistr/test-u8-strcpy.c: New file.
2257         * tests/unistr/test-strcpy.h: New file.
2258
2259         Tests for module 'unistr/u32-strnlen'.
2260         * modules/unistr/u32-strnlen-tests: New file.
2261         * tests/unistr/test-u32-strnlen.c: New file.
2262
2263         Tests for module 'unistr/u16-strnlen'.
2264         * modules/unistr/u16-strnlen-tests: New file.
2265         * tests/unistr/test-u16-strnlen.c: New file.
2266
2267         Tests for module 'unistr/u8-strnlen'.
2268         * modules/unistr/u8-strnlen-tests: New file.
2269         * tests/unistr/test-u8-strnlen.c: New file.
2270         * tests/unistr/test-strnlen.h: New file.
2271
2272         Tests for module 'unistr/u32-strlen'.
2273         * modules/unistr/u32-strlen-tests: New file.
2274         * tests/unistr/test-u32-strlen.c: New file.
2275
2276         Tests for module 'unistr/u16-strlen'.
2277         * modules/unistr/u16-strlen-tests: New file.
2278         * tests/unistr/test-u16-strlen.c: New file.
2279
2280         Tests for module 'unistr/u8-strlen'.
2281         * modules/unistr/u8-strlen-tests: New file.
2282         * tests/unistr/test-u8-strlen.c: New file.
2283
2284         Tests for module 'unistr/u32-prev'.
2285         * modules/unistr/u32-prev-tests: New file.
2286         * tests/unistr/test-u32-prev.c: New file.
2287
2288         Tests for module 'unistr/u16-prev'.
2289         * modules/unistr/u16-prev-tests: New file.
2290         * tests/unistr/test-u16-prev.c: New file.
2291
2292         Tests for module 'unistr/u8-prev'.
2293         * modules/unistr/u8-prev-tests: New file.
2294         * tests/unistr/test-u8-prev.c: New file.
2295
2296         Tests for module 'unistr/u32-next'.
2297         * modules/unistr/u32-next-tests: New file.
2298         * tests/unistr/test-u32-next.c: New file.
2299
2300         Tests for module 'unistr/u16-next'.
2301         * modules/unistr/u16-next-tests: New file.
2302         * tests/unistr/test-u16-next.c: New file.
2303
2304         Tests for module 'unistr/u8-next'.
2305         * modules/unistr/u8-next-tests: New file.
2306         * tests/unistr/test-u8-next.c: New file.
2307
2308         Tests for module 'unistr/u32-strmbtouc'.
2309         * modules/unistr/u32-strmbtouc-tests: New file.
2310         * tests/unistr/test-u32-strmbtouc.c: New file.
2311
2312         Tests for module 'unistr/u16-strmbtouc'.
2313         * modules/unistr/u16-strmbtouc-tests: New file.
2314         * tests/unistr/test-u16-strmbtouc.c: New file.
2315
2316         Tests for module 'unistr/u8-strmbtouc'.
2317         * modules/unistr/u8-strmbtouc-tests: New file.
2318         * tests/unistr/test-u8-strmbtouc.c: New file.
2319
2320         Tests for module 'unistr/u32-strmblen'.
2321         * modules/unistr/u32-strmblen-tests: New file.
2322         * tests/unistr/test-u32-strmblen.c: New file.
2323
2324         Tests for module 'unistr/u16-strmblen'.
2325         * modules/unistr/u16-strmblen-tests: New file.
2326         * tests/unistr/test-u16-strmblen.c: New file.
2327
2328         Tests for module 'unistr/u8-strmblen'.
2329         * modules/unistr/u8-strmblen-tests: New file.
2330         * tests/unistr/test-u8-strmblen.c: New file.
2331
2332         Tests for module 'unistr/u32-cpy-alloc'.
2333         * modules/unistr/u32-cpy-alloc-tests: New file.
2334         * tests/unistr/test-u32-cpy-alloc.c: New file.
2335
2336         Tests for module 'unistr/u16-cpy-alloc'.
2337         * modules/unistr/u16-cpy-alloc-tests: New file.
2338         * tests/unistr/test-u16-cpy-alloc.c: New file.
2339
2340         Tests for module 'unistr/u8-cpy-alloc'.
2341         * modules/unistr/u8-cpy-alloc-tests: New file.
2342         * tests/unistr/test-u8-cpy-alloc.c: New file.
2343         * tests/unistr/test-cpy-alloc.h: New file.
2344
2345         Tests for module 'unistr/u32-mbsnlen'.
2346         * modules/unistr/u32-mbsnlen-tests: New file.
2347         * tests/unistr/test-u32-mbsnlen.c: New file.
2348
2349         Tests for module 'unistr/u16-mbsnlen'.
2350         * modules/unistr/u16-mbsnlen-tests: New file.
2351         * tests/unistr/test-u16-mbsnlen.c: New file.
2352
2353         Tests for module 'unistr/u8-mbsnlen'.
2354         * modules/unistr/u8-mbsnlen-tests: New file.
2355         * tests/unistr/test-u8-mbsnlen.c: New file.
2356
2357         Tests for module 'unistr/u32-chr'.
2358         * modules/unistr/u32-chr-tests: New file.
2359         * tests/unistr/test-u32-chr.c: New file.
2360
2361         Tests for module 'unistr/u16-chr'.
2362         * modules/unistr/u16-chr-tests: New file.
2363         * tests/unistr/test-u16-chr.c: New file.
2364
2365         Tests for module 'unistr/u8-chr'.
2366         * modules/unistr/u8-chr-tests: New file.
2367         * tests/unistr/test-u8-chr.c: New file.
2368         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
2369
2370         Tests for module 'unistr/u32-cmp2'.
2371         * modules/unistr/u32-cmp2-tests: New file.
2372         * tests/unistr/test-u32-cmp2.c: New file.
2373
2374         Tests for module 'unistr/u16-cmp2'.
2375         * modules/unistr/u16-cmp2-tests: New file.
2376         * tests/unistr/test-u16-cmp2.c: New file.
2377
2378         Tests for module 'unistr/u8-cmp2'.
2379         * modules/unistr/u8-cmp2-tests: New file.
2380         * tests/unistr/test-u8-cmp2.c: New file.
2381         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
2382
2383         Tests for module 'unistr/u32-cmp'.
2384         * modules/unistr/u32-cmp-tests: New file.
2385         * tests/unistr/test-u32-cmp.c: New file.
2386
2387         Tests for module 'unistr/u16-cmp'.
2388         * modules/unistr/u16-cmp-tests: New file.
2389         * tests/unistr/test-u16-cmp.c: New file.
2390
2391         Tests for module 'unistr/u8-cmp'.
2392         * modules/unistr/u8-cmp-tests: New file.
2393         * tests/unistr/test-u8-cmp.c: New file.
2394         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
2395
2396         Tests for module 'unistr/u32-set'.
2397         * modules/unistr/u32-set-tests: New file.
2398         * tests/unistr/test-u32-set.c: New file.
2399
2400         Tests for module 'unistr/u16-set'.
2401         * modules/unistr/u16-set-tests: New file.
2402         * tests/unistr/test-u16-set.c: New file.
2403
2404         Tests for module 'unistr/u8-set'.
2405         * modules/unistr/u8-set-tests: New file.
2406         * tests/unistr/test-u8-set.c: New file.
2407         * tests/unistr/test-set.h: New file.
2408
2409         Tests for module 'unistr/u32-move'.
2410         * modules/unistr/u32-move-tests: New file.
2411         * tests/unistr/test-u32-move.c: New file.
2412
2413         Tests for module 'unistr/u16-move'.
2414         * modules/unistr/u16-move-tests: New file.
2415         * tests/unistr/test-u16-move.c: New file.
2416
2417         Tests for module 'unistr/u8-move'.
2418         * modules/unistr/u8-move-tests: New file.
2419         * tests/unistr/test-u8-move.c: New file.
2420         * tests/unistr/test-move.h: New file.
2421
2422         Tests for module 'unistr/u32-cpy'.
2423         * modules/unistr/u32-cpy-tests: New file.
2424         * tests/unistr/test-u32-cpy.c: New file.
2425
2426         Tests for module 'unistr/u16-cpy'.
2427         * modules/unistr/u16-cpy-tests: New file.
2428         * tests/unistr/test-u16-cpy.c: New file.
2429
2430         Tests for module 'unistr/u8-cpy'.
2431         * modules/unistr/u8-cpy-tests: New file.
2432         * tests/unistr/test-u8-cpy.c: New file.
2433         * tests/unistr/test-cpy.h: New file.
2434
2435 2010-01-09  Bruno Haible  <bruno@clisp.org>
2436
2437         Tests for module 'unistr/u32-uctomb'.
2438         * modules/unistr/u32-uctomb-tests: New file.
2439         * tests/unistr/test-u32-uctomb.c: New file.
2440
2441         Tests for module 'unistr/u16-uctomb'.
2442         * modules/unistr/u16-uctomb-tests: New file.
2443         * tests/unistr/test-u16-uctomb.c: New file.
2444
2445         Tests for module 'unistr/u8-uctomb'.
2446         * modules/unistr/u8-uctomb-tests: New file.
2447         * tests/unistr/test-u8-uctomb.c: New file.
2448
2449         Tests for module 'unistr/u32-mbtoucr'.
2450         * modules/unistr/u32-mbtoucr-tests: New file.
2451         * tests/unistr/test-u32-mbtoucr.c: New file.
2452
2453         Tests for module 'unistr/u16-mbtoucr'.
2454         * modules/unistr/u16-mbtoucr-tests: New file.
2455         * tests/unistr/test-u16-mbtoucr.c: New file.
2456
2457         Tests for module 'unistr/u8-mbtoucr'.
2458         * modules/unistr/u8-mbtoucr-tests: New file.
2459         * tests/unistr/test-u8-mbtoucr.c: New file.
2460
2461         Tests for module 'unistr/u32-mbtouc'.
2462         * modules/unistr/u32-mbtouc-tests: New file.
2463         * tests/unistr/test-u32-mbtouc.c: New file.
2464
2465         Tests for module 'unistr/u16-mbtouc'.
2466         * modules/unistr/u16-mbtouc-tests: New file.
2467         * tests/unistr/test-u16-mbtouc.c: New file.
2468
2469         Tests for module 'unistr/u8-mbtouc'.
2470         * modules/unistr/u8-mbtouc-tests: New file.
2471         * tests/unistr/test-u8-mbtouc.c: New file.
2472
2473         Tests for module 'unistr/u32-mbtouc-unsafe'.
2474         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2475         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2476         * tests/unistr/test-u32-mbtouc.h: New file.
2477
2478         Tests for module 'unistr/u16-mbtouc-unsafe'.
2479         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2480         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2481         * tests/unistr/test-u16-mbtouc.h: New file.
2482
2483         Tests for module 'unistr/u8-mbtouc-unsafe'.
2484         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2485         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2486         * tests/unistr/test-u8-mbtouc.h: New file.
2487
2488         Tests for module 'unistr/u32-mblen'.
2489         * modules/unistr/u32-mblen-tests: New file.
2490         * tests/unistr/test-u32-mblen.c: New file.
2491
2492         Tests for module 'unistr/u16-mblen'.
2493         * modules/unistr/u16-mblen-tests: New file.
2494         * tests/unistr/test-u16-mblen.c: New file.
2495
2496         Tests for module 'unistr/u8-mblen'.
2497         * modules/unistr/u8-mblen-tests: New file.
2498         * tests/unistr/test-u8-mblen.c: New file.
2499
2500         Tests for module 'unistr/u32-to-u16'.
2501         * modules/unistr/u32-to-u16-tests: New file.
2502         * tests/unistr/test-u32-to-u16.c: New file.
2503
2504         Tests for module 'unistr/u32-to-u8'.
2505         * modules/unistr/u32-to-u8-tests: New file.
2506         * tests/unistr/test-u32-to-u8.c: New file.
2507
2508         Tests for module 'unistr/u16-to-u32'.
2509         * modules/unistr/u16-to-u32-tests: New file.
2510         * tests/unistr/test-u16-to-u32.c: New file.
2511
2512         Tests for module 'unistr/u16-to-u8'.
2513         * modules/unistr/u16-to-u8-tests: New file.
2514         * tests/unistr/test-u16-to-u8.c: New file.
2515
2516         Tests for module 'unistr/u8-to-u32'.
2517         * modules/unistr/u8-to-u32-tests: New file.
2518         * tests/unistr/test-u8-to-u32.c: New file.
2519
2520         Tests for module 'unistr/u8-to-u16'.
2521         * modules/unistr/u8-to-u16-tests: New file.
2522         * tests/unistr/test-u8-to-u16.c: New file.
2523
2524         Tests for module 'unistr/u32-check'.
2525         * modules/unistr/u32-check-tests: New file.
2526         * tests/unistr/test-u32-check.c: New file.
2527
2528         Tests for module 'unistr/u16-check'.
2529         * modules/unistr/u16-check-tests: New file.
2530         * tests/unistr/test-u16-check.c: New file.
2531
2532         Tests for module 'unistr/u8-check'.
2533         * modules/unistr/u8-check-tests: New file.
2534         * tests/unistr/test-u8-check.c: New file.
2535
2536         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2537         (category_equals): New function.
2538         (main): Add more tests.
2539         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2540
2541         * tests/unictype/test-bidi_byname.c (main): Add more tests.
2542
2543 2010-01-10  Bruno Haible  <bruno@clisp.org>
2544
2545         unistr/u*-strcoll: Try harder to distinguish different strings.
2546         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2547         compare s1 and s2 to see if they are different.
2548
2549 2010-01-10  Bruno Haible  <bruno@clisp.org>
2550
2551         unistr/u*-stpncpy: Fix the return value.
2552         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2553         description of the return value consistent with stpncpy in glibc.
2554         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2555         written non-NUL unit.
2556
2557 2010-01-10  Bruno Haible  <bruno@clisp.org>
2558
2559         unistr/u*-next: Add missing dependencies.
2560         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2561         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2562         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2563
2564 2010-01-10  Bruno Haible  <bruno@clisp.org>
2565
2566         unistr/u8-mbsnlen: Fix return value for incomplete character.
2567         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2568         u8_mblen.
2569         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2570         Remove unistr/u8-mblen.
2571         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2572         u16_mblen.
2573         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2574         Remove unistr/u16-mblen.
2575
2576 2010-01-10  Bruno Haible  <bruno@clisp.org>
2577
2578         wchar: Fix compilation error when <wchar.h> is used from coreutils.
2579         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2580         Reported by Brian Gough <bjg@gnu.org> and
2581         Chris Clayton <chris2553@googlemail.com> via
2582         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2583
2584 2010-01-09  Bruno Haible  <bruno@clisp.org>
2585
2586         unistr/u16-to-u32: Reject invalid input.
2587         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2588         u16_mbtouc.
2589         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2590         Remove unistr/u16-mbtouc.
2591
2592         unistr/u16-to-u8: Reject invalid input.
2593         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2594         u16_mbtouc.
2595         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2596         Remove unistr/u16-mbtouc.
2597
2598         unistr/u8-to-u32: Reject invalid input.
2599         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2600         u8_mbtouc.
2601         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2602         Remove unistr/u8-mbtouc.
2603
2604         unistr/u8-to-u16: Reject invalid input.
2605         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2606         u8_mbtouc.
2607         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2608         Remove unistr/u8-mbtouc.
2609
2610 2010-01-09  Bruno Haible  <bruno@clisp.org>
2611
2612         Tests for module 'getlogin'.
2613         * modules/getlogin-tests: New file.
2614         * tests/test-getlogin.c: New file.
2615
2616         New module 'getlogin'.
2617         * lib/unistd.in.h (getlogin): New declaration.
2618         * lib/getlogin.c: New file.
2619         * m4/getlogin.m4: New file.
2620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2621         HAVE_GETLOGIN.
2622         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2623         HAVE_GETLOGIN.
2624         * modules/getlogin: New file.
2625         * doc/posix-functions/getlogin.texi: Mention the new module.
2626         Reported by John W. Eaton <jwe@gnu.org>.
2627
2628 2010-01-09  Bruno Haible  <bruno@clisp.org>
2629
2630         getlogin_r: Support for native Windows.
2631         * lib/getlogin_r.c: Include <windows.h>
2632         (getlogin_r): Implement for native Windows.
2633         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2634         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2635         via John W. Eaton <jwe@gnu.org>.
2636
2637 2010-01-09  Bruno Haible  <bruno@clisp.org>
2638
2639         getlogin_r: Small fixes.
2640         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2641         succeeds.
2642         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2643         before testing whether getlogin_r is declared. No need to set
2644         HAVE_DECL_GETLOGIN_R to 1.
2645         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2646
2647 2010-01-09  Bruno Haible  <bruno@clisp.org>
2648
2649         * lib/unistd.in.h (getlogin_r): Add comment.
2650
2651 2010-01-09  Bruno Haible  <bruno@clisp.org>
2652
2653         Tests for module 'getlogin_r'.
2654         * modules/getlogin_r-tests: New file.
2655         * tests/test-getlogin_r.c: New file.
2656
2657 2010-01-09  Jim Meyering  <meyering@redhat.com>
2658
2659         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2660         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2661         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2662
2663 2010-01-08  Simon Josefsson  <simon@josefsson.org>
2664
2665         * lib/dup2.c (rpl_dup2): Improve comment.
2666
2667 2010-01-08  Eric Blake  <ebb9@byu.net>
2668
2669         maint.mk: allow packages to add makefile @@ exceptions
2670         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2671         (sc_makefile_check): Rename...
2672         (sc_makefile_at_at_check): ...to this, and use hook.
2673
2674         dup2: work around mingw bug
2675         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2676         Reported by Simon Josefsson.
2677
2678 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
2679
2680         glob: Fix C++ compilation.
2681         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2682         C++.
2683
2684 2010-01-07  Bruno Haible  <bruno@clisp.org>
2685
2686         Fix indentation of wctype.in.h, broken since 2007-01-06.
2687         * lib/wctype.in.h: Fix indentation of preprocessor directives.
2688
2689 2010-01-07  Bruno Haible  <bruno@clisp.org>
2690
2691         mbslen: Avoid collision with system function.
2692         * lib/string.in.h [MirBSD]: Include <wchar.h>.
2693         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2694         * m4/mbslen.m4: New file.
2695         * modules/mbslen (Files): Add it.
2696         (configure.ac): Invoke gl_MBSLEN.
2697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2698         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2699         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2700         via Ian Beckwith <ianb@erislabs.net>.
2701
2702 2010-01-07  Bruno Haible  <bruno@clisp.org>
2703
2704         dirent: Document the last fix.
2705         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2706
2707 2010-01-07  Bruno Haible  <bruno@clisp.org>
2708
2709         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2710         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2711         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2712         va_list are defined.
2713         * doc/posix-headers/stdio.texi: Document the bug of missing types.
2714         Reported by Eric Blake.
2715
2716 2010-01-07  Bruno Haible  <bruno@clisp.org>
2717
2718         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2719         * modules/xlist (Depends-on): Add 'list',
2720         * modules/xoset (Depends-on): Add 'oset'.
2721         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2722
2723 2010-01-07  Bruno Haible  <bruno@clisp.org>
2724
2725         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2726         * doc/posix-functions/strncasecmp.texi: Likewise.
2727
2728 2010-01-07  Bruno Haible  <bruno@clisp.org>
2729
2730         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2731
2732 2010-01-07  John W. Eaton  <jwe@octave.org>
2733
2734         wctype: allow C++ use
2735         * lib/wctype.in.h: Add extern "C" block for C++.
2736
2737 2010-01-06  Eric Blake  <ebb9@byu.net>
2738
2739         maint.mk: detect incorrect GFDL usage
2740         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2741
2742 2010-01-06  Jim Meyering  <meyering@redhat.com>
2743         and Eric Blake  <ebb9@byu.net>
2744
2745         maint.mk: ignore multi-line copyright in NEWS
2746         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2747
2748 2010-01-06  Eric Blake  <ebb9@byu.net>
2749
2750         select: add missing dependency
2751         * modules/select-tests (Depends-on): Move sockets dependency...
2752         * modules/select (Depends-on): ...here.
2753         Reported by Ian Beckwith.
2754
2755         doc: regenerate INSTALL
2756         * doc/INSTALL: Reflect recent autoconf update.
2757         * doc/INSTALL.ISO: Likewise.
2758         * doc/INSTALL.UTF-8: Likewise.
2759
2760         pread: fix compilation on glibc
2761         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2762         Reported by Ralf Wildenhues.
2763
2764         dirent: fix test failure
2765         * lib/dirent.in.h (includes): Guarantee ino_t.
2766         Reported by Ralf Wildenhues.
2767
2768 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
2769
2770         linkat, renameat: avoid bad free
2771         * lib/at-func2.c (at_func2): Fix typo.
2772         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2773
2774 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2775
2776         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2777         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2778         to avoid failure of symlink test later.
2779
2780 2010-01-06  Eric Blake  <ebb9@byu.net>
2781
2782         stdio, unistd: guarantee ssize_t
2783         * lib/unistd.in.h (includes): Ensure that types required by POSIX
2784         2008 are exposed when needed.
2785         * lib/stdio.in.h (includes): Likewise.
2786         Reported by Ralf Wildenhues.
2787
2788 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
2789
2790         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2791         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2792         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2793
2794 2010-01-06  Jim Meyering  <meyering@redhat.com>
2795
2796         readtokens: this module *does* require xalloc.h
2797         It uses only functions that were omitted by the old syntax-check rule.
2798         * lib/readtokens.c: Include "xalloc.h" once again.
2799         * modules/readtokens (Depends-on): Add xalloc.
2800         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2801
2802 2010-01-05  Eric Blake  <ebb9@byu.net>
2803
2804         maint: support 'make announcement' from a VPATH build
2805         * top/maint.mk (announcement): Look for correct NEWS file.
2806
2807 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
2808
2809         utimens (fdutimens): ignore a negative FD, per contract
2810         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2811         when we have a valid file descriptor.  Otherwise, using a brand
2812         new glibc (with just-patched futimens that now fails with EBADF)
2813         would cause this function to fail with ENOSYS.
2814         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2815         See also http://bugzilla.redhat.com/552320.
2816
2817 2010-01-05  Eric Blake  <ebb9@byu.net>
2818
2819         strcase: document what it provides
2820         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2821         gnulib module.
2822         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2823         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2824
2825 2010-01-05  Jim Meyering  <meyering@redhat.com>
2826
2827         maint: remove useless inclusions of "xalloc.h"
2828         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2829         * lib/readtokens.c: Likewise.
2830         * lib/same.c: Likewise.
2831         * modules/getloadavg (Depends-on): Remove xalloc.
2832         * modules/readtokens: Likewise.
2833         * modules/same: Likewise.
2834
2835         maint.mk: include 4 more function names in alloca.h-checking regexp
2836         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2837         regexp.  Before, we would give a false-positive (saying alloca.h
2838         is included unnecessarily) when the only uses involved omitted symbols.
2839
2840         xalloc.h: use consistent formatting
2841         * lib/xalloc.h: Move declarations to start in the first column.
2842
2843 2010-01-05  Eric Blake  <ebb9@byu.net>
2844
2845         mkdir: avoid xalloc
2846         * lib/mkdir.c (includes): Drop unused header.
2847         Reported by John W. Eaton.
2848
2849 2010-01-04  Jim Meyering  <meyering@redhat.com>
2850
2851         nl_langinfo: avoid configure-time syntax error
2852         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2853         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2854         the empty string.  Don't let that provoke a shell syntax error.
2855
2856         regcomp, regexec, fnmatch: avoid array bounds read error
2857         * lib/regcomp.c (build_equiv_class): From glibc:
2858         Use only the low 24 bits of a findidx return value as an index
2859         into the weights array.  Patch by Ulrich Drepper:
2860         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2861         * lib/regexec.c (check_node_accept_bytes): Likewise.
2862         * lib/fnmatch_loop.c (FCT): Likewise.
2863
2864         regcomp: skip collseq lookup when there are no rules
2865         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2866         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2867
2868         regcomp: recognize ill-formed { } expressions
2869         * lib/regcomp.c (parse_dup_op): From glibc:
2870         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2871
2872         regcomp: fix typo in comment
2873         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2874         s/satisfy/satisfies/.
2875
2876         regcomp: sync from glibc: remove dead store
2877         * lib/regcomp.c (duplicate_node_closure): Remove useless
2878         search_duplicated_node call and dead store.
2879
2880         regcomp: sync from glibc; always use nl_langinfo
2881         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2882         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
2883         * modules/regex (Depends-on): Add nl_langinfo.
2884
2885 2010-01-04  Eric Blake  <ebb9@byu.net>
2886
2887         fdopendir: fix configure test
2888         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2889
2890 2010-01-01  Bruno Haible  <bruno@clisp.org>
2891
2892         wchar: Remove unused configure check.
2893         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2894
2895 2010-01-01  Eric Blake  <ebb9@byu.net>
2896
2897         headers: make check of system header explicit
2898         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2899         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2900         ourselves.
2901         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2902         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2903         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2904         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2905         internals.
2906         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2907         missing.
2908         Suggested by Bruno Haible.
2909
2910 2010-01-01  Jim Meyering  <meyering@redhat.com>
2911
2912         ChangeLog: tweak to eliminate unnecessary copyright line
2913         * ChangeLog: Remove a copyright line that was mistakenly updated
2914         by today's update-copyright run.  Reported by Eric Blake.
2915
2916         test-update-copyright: don't let envvar setting cause test failure
2917         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2918
2919 2010-01-01  Bruno Haible  <bruno@clisp.org>
2920
2921         localename: Avoid gcc warning.
2922         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2923         function if it is not used.
2924
2925 2010-01-01  Jim Meyering  <meyering@redhat.com>
2926
2927         update nearly all FSF copyright year lists to include 2010
2928         Use the same procedure as for 2009, outlined in
2929         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2930
2931         version-etc: set COPYRIGHT_YEAR to 2010
2932         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2933
2934 2009-12-31  Eric Blake  <ebb9@byu.net>
2935
2936         doc: correct availability of cygwin 1.5.x getopt
2937         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2938         variables.
2939         * doc/posix-functions/opterr.texi (opterr): Likewise.
2940         * doc/posix-functions/optind.texi (optind): Likewise.
2941         * doc/posix-functions/optopt.texi (optopt): Likewise.
2942         * doc/posix-functions/tzname.texi (tzname): Likewise.
2943
2944         openat: update maintainer
2945         * modules/openat (Maintainer): Add myself.
2946
2947         utimens: avoid shadowing warning
2948         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2949         buffers into one, to avoid shadowing, as well as avoiding a
2950         redundant stat.
2951         Reported by Jim Meyering.
2952
2953         test-dup2: avoid compiler warning
2954         * tests/test-dup2.c (is_inheritable): Only define if used.
2955
2956 2010-01-01  Bruno Haible  <bruno@clisp.org>
2957
2958         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2959         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2960         defined, use wctomb instead of wcrtomb.
2961
2962 2010-01-01  Bruno Haible  <bruno@clisp.org>
2963
2964         iconv: Reject native Solaris iconv.
2965         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2966         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2967
2968 2009-12-31  Bruno Haible  <bruno@clisp.org>
2969
2970         * tests/test-signal.c (main): Remove test of 'SIG'.
2971
2972 2009-12-31  Bruno Haible  <bruno@clisp.org>
2973
2974         spawn: Fix incomplete fix.
2975         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2976         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2977         warnings for GNULIB_POSIXCHECK again.
2978         Reported by Eric Blake.
2979
2980 2009-12-31  Bruno Haible  <bruno@clisp.org>
2981
2982         Avoid namespace pollution on glibc systems.
2983         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2984         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2985         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2986         glibc systems.
2987
2988 2009-12-31  Bruno Haible  <bruno@clisp.org>
2989
2990         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2991         (gl_REPLACE_WCHAR_H): Turn into a no-op.
2992         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2993         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2994         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2995         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2996         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2997
2998 2009-12-31  Bruno Haible  <bruno@clisp.org>
2999
3000         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
3001         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
3002         afterwards.
3003
3004 2009-12-31  Bruno Haible  <bruno@clisp.org>
3005
3006         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
3007         SYS_UTSNAME_H.
3008
3009 2009-12-31  Bruno Haible  <bruno@clisp.org>
3010
3011         spawn: Fix misapplied patch.
3012         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
3013         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
3014         warnings for GNULIB_POSIXCHECK.
3015
3016 2009-12-31  Bruno Haible  <bruno@clisp.org>
3017
3018         times: Update after sys_times changed.
3019         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
3020         * modules/times (Files): Add it.
3021         (configure.ac): Invoke gl_FUNC_TIMES.
3022
3023 2009-12-31  Bruno Haible  <bruno@clisp.org>
3024
3025         Use AC_C_INLINE where necessary.
3026         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
3027         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
3028         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
3029         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
3030         * m4/mbfile.m4 (gl_MBFILE): Likewise.
3031         * m4/mbiter.m4 (gl_MBITER): Likewise.
3032         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
3033         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3034         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
3035         * modules/u64 (configure.ac): Likewise.
3036
3037 2009-12-31  Bruno Haible  <bruno@clisp.org>
3038
3039         Use AC_C_INLINE instead of module 'inline' where possible.
3040         * modules/inline (Description): Clarify purpose.
3041         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
3042         * modules/count-one-bits (Depends-on): Remove inline.
3043         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
3044         * modules/openat (Depends-on): Remove inline.
3045         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
3046         instead of depending on module 'inline'.
3047         * modules/filevercmp (Depends-on, configure.ac): Likewise.
3048         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
3049         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
3050         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
3051         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
3052         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
3053         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
3054         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
3055         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
3056         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
3057         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
3058         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
3059         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
3060         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
3061         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
3062         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
3063         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
3064         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
3065         Likewise.
3066         * modules/unictype/property-ascii-hex-digit (Depends-on,
3067         configure.ac): Likewise.
3068         * modules/unictype/property-bidi-arabic-digit (Depends-on,
3069         configure.ac): Likewise.
3070         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
3071         configure.ac): Likewise.
3072         * modules/unictype/property-bidi-block-separator (Depends-on,
3073         configure.ac): Likewise.
3074         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
3075         configure.ac): Likewise.
3076         * modules/unictype/property-bidi-common-separator (Depends-on,
3077         configure.ac): Likewise.
3078         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
3079         Likewise.
3080         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
3081         configure.ac): Likewise.
3082         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
3083         configure.ac): Likewise.
3084         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
3085         configure.ac): Likewise.
3086         * modules/unictype/property-bidi-european-digit (Depends-on,
3087         configure.ac): Likewise.
3088         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
3089         configure.ac): Likewise.
3090         * modules/unictype/property-bidi-left-to-right (Depends-on,
3091         configure.ac): Likewise.
3092         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
3093         configure.ac): Likewise.
3094         * modules/unictype/property-bidi-other-neutral (Depends-on,
3095         configure.ac): Likewise.
3096         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
3097         Likewise.
3098         * modules/unictype/property-bidi-segment-separator (Depends-on,
3099         configure.ac): Likewise.
3100         * modules/unictype/property-bidi-whitespace (Depends-on,
3101         configure.ac): Likewise.
3102         * modules/unictype/property-combining (Depends-on, configure.ac):
3103         Likewise.
3104         * modules/unictype/property-composite (Depends-on, configure.ac):
3105         Likewise.
3106         * modules/unictype/property-currency-symbol (Depends-on,
3107         configure.ac): Likewise.
3108         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
3109         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
3110         Likewise.
3111         * modules/unictype/property-default-ignorable-code-point (Depends-on,
3112         configure.ac): Likewise.
3113         * modules/unictype/property-deprecated (Depends-on, configure.ac):
3114         Likewise.
3115         * modules/unictype/property-diacritic (Depends-on, configure.ac):
3116         Likewise.
3117         * modules/unictype/property-extender (Depends-on, configure.ac):
3118         Likewise.
3119         * modules/unictype/property-format-control (Depends-on, configure.ac):
3120         Likewise.
3121         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
3122         Likewise.
3123         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
3124         Likewise.
3125         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
3126         Likewise.
3127         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
3128         Likewise.
3129         * modules/unictype/property-hyphen (Depends-on, configure.ac):
3130         Likewise.
3131         * modules/unictype/property-id-continue (Depends-on, configure.ac):
3132         Likewise.
3133         * modules/unictype/property-id-start (Depends-on, configure.ac):
3134         Likewise.
3135         * modules/unictype/property-ideographic (Depends-on, configure.ac):
3136         Likewise.
3137         * modules/unictype/property-ids-binary-operator (Depends-on,
3138         configure.ac): Likewise.
3139         * modules/unictype/property-ids-trinary-operator (Depends-on,
3140         configure.ac): Likewise.
3141         * modules/unictype/property-ignorable-control (Depends-on,
3142         configure.ac): Likewise.
3143         * modules/unictype/property-iso-control (Depends-on, configure.ac):
3144         Likewise.
3145         * modules/unictype/property-join-control (Depends-on, configure.ac):
3146         Likewise.
3147         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
3148         Likewise.
3149         * modules/unictype/property-line-separator (Depends-on, configure.ac):
3150         Likewise.
3151         * modules/unictype/property-logical-order-exception (Depends-on,
3152         configure.ac): Likewise.
3153         * modules/unictype/property-lowercase (Depends-on, configure.ac):
3154         Likewise.
3155         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
3156         * modules/unictype/property-non-break (Depends-on, configure.ac):
3157         Likewise.
3158         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
3159         Likewise.
3160         * modules/unictype/property-numeric (Depends-on, configure.ac):
3161         Likewise.
3162         * modules/unictype/property-other-alphabetic (Depends-on,
3163         configure.ac): Likewise.
3164         * modules/unictype/property-other-default-ignorable-code-point
3165         (Depends-on, configure.ac): Likewise.
3166         * modules/unictype/property-other-grapheme-extend (Depends-on,
3167         configure.ac): Likewise.
3168         * modules/unictype/property-other-id-continue (Depends-on,
3169         configure.ac): Likewise.
3170         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
3171         Likewise.
3172         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
3173         Likewise.
3174         * modules/unictype/property-other-math (Depends-on, configure.ac):
3175         Likewise.
3176         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
3177         Likewise.
3178         * modules/unictype/property-paired-punctuation (Depends-on,
3179         configure.ac): Likewise.
3180         * modules/unictype/property-paragraph-separator (Depends-on,
3181         configure.ac): Likewise.
3182         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
3183         Likewise.
3184         * modules/unictype/property-pattern-white-space (Depends-on,
3185         configure.ac): Likewise.
3186         * modules/unictype/property-private-use (Depends-on, configure.ac):
3187         Likewise.
3188         * modules/unictype/property-punctuation (Depends-on, configure.ac):
3189         Likewise.
3190         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
3191         Likewise.
3192         * modules/unictype/property-radical (Depends-on, configure.ac):
3193         Likewise.
3194         * modules/unictype/property-sentence-terminal (Depends-on,
3195         configure.ac): Likewise.
3196         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
3197         Likewise.
3198         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
3199         * modules/unictype/property-terminal-punctuation (Depends-on,
3200         configure.ac): Likewise.
3201         * modules/unictype/property-titlecase (Depends-on, configure.ac):
3202         Likewise.
3203         * modules/unictype/property-unassigned-code-value (Depends-on,
3204         configure.ac): Likewise.
3205         * modules/unictype/property-unified-ideograph (Depends-on,
3206         configure.ac): Likewise.
3207         * modules/unictype/property-uppercase (Depends-on, configure.ac):
3208         Likewise.
3209         * modules/unictype/property-variation-selector (Depends-on,
3210         configure.ac): Likewise.
3211         * modules/unictype/property-white-space (Depends-on, configure.ac):
3212         Likewise.
3213         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
3214         Likewise.
3215         * modules/unictype/property-xid-start (Depends-on, configure.ac):
3216         Likewise.
3217         * modules/unictype/property-zero-width (Depends-on, configure.ac):
3218         Likewise.
3219         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
3220         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
3221         Likewise.
3222
3223 2009-12-31  Bruno Haible  <bruno@clisp.org>
3224
3225         Remove unnecessary AC_C_INLINE invocation.
3226         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
3227         since 2009-08-21.
3228
3229 2009-12-31  Jim Meyering  <meyering@redhat.com>
3230
3231         maint.mk: don't require explicit gpg_key_ID in cfg.mk
3232         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
3233         With this change, we can all remove the gpg_key_ID = ... definition
3234         from our respective cfg.mk files.
3235
3236         maint.mk: create announcement template in ~/, not in /tmp
3237         * top/maint.mk (emit_upload_commands): Adjust.
3238         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
3239         Remove temporary file, .ci-msg.
3240
3241 2009-12-31  Eric Blake  <ebb9@byu.net>
3242
3243         link-warning: always build headers with link warnings
3244         * modules/arpa_inet (Makefile.am): Always build replacement
3245         header.
3246         * modules/ctype (Makefile.am): Likewise.
3247         * modules/dirent (Makefile.am): Likewise.
3248         * modules/inttypes (Makefile.am): Likewise.
3249         * modules/langinfo (Makefile.am): Likewise.
3250         * modules/locale (Makefile.am): Likewise.
3251         * modules/spawn (Makefile.am): Likewise.
3252         * modules/sys_file (Makefile.am): Likewise.
3253         * modules/sys_ioctl (Makefile.am): Likewise.
3254         * modules/sys_select (Makefile.am): Likewise.
3255         * modules/sys_socket (Makefile.am): Likewise.
3256         * modules/sys_times (Makefile.am): Likewise.
3257         * modules/sys_utsname (Makefile.am): Likewise.
3258         * modules/sys_wait (Makefile.am): Likewise.
3259         * modules/wchar (Makefile.am): Likewise.
3260         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
3261         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
3262         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
3263         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
3264         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
3265         Likewise.
3266         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
3267         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
3268         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
3269         Likewise.
3270         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
3271         Likewise.
3272         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
3273         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
3274         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
3275         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
3276         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
3277         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3278         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3279         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
3280         (gl_WCHAR_H_DEFAULTS): Likewise.
3281
3282 2009-12-31  Eric Blake  <ebb9@byu.net>
3283
3284         signal, spawn: use link warnings
3285         * lib/signal.in.h (sigset_t): Make unconditional.
3286         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
3287         (sigpending, sigprocmask, sigaction): Add link warnings.
3288         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
3289         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
3290         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
3291         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
3292         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
3293         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
3294         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
3295         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
3296         (posix_spawn_file_actions_destroy)
3297         (posix_spawn_file_actions_addopen)
3298         (posix_spawn_file_actions_addclose)
3299         (posix_spawwn_file_actions_adddup2): Likewise.
3300         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
3301         * tests/test-signal.c (main): Enhance test.
3302
3303         spawn: improve wrapper support
3304         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
3305         (gl_SPAWN_H_DEFAULTS): New defaults.
3306         * modules/spawn (Makefile.am): Substitute them.
3307         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
3308         Only declare if missing or broken.
3309
3310         sys_times, sys_utsname: use include_next
3311         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
3312         header.
3313         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
3314         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
3315         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
3316         * modules/sys_times (Depends-on): Add include_next.
3317         (Makefile.am): Substitute additional values.
3318         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
3319         * lib/sys_times.in.h (includes): Include native header, if
3320         available.
3321         * lib/sys_utsname.in.h (includes): Likewise.
3322         * tests/test-sys_times.c (main): Enhance test.
3323
3324         fdutimensat: revert prior patch
3325         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
3326         utimens.h.
3327         Reported by Bruno Haible.
3328
3329 2009-12-30  Eric Blake  <ebb9@byu.net>
3330
3331         sys_wait: drop link-warning dependency
3332         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
3333         link-warning efforts.
3334         * lib/sys_wait.in.h: Likewise.
3335
3336         fdutimensat: remove bogus dependency
3337         * modules/fdutimensat (Depends-on): Drop inline.
3338
3339         unistd: fix typo
3340         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
3341
3342 2009-12-30  Bruno Haible  <bruno@clisp.org>
3343
3344         Fix compilation error with Solaris cc.
3345         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
3346         * lib/unicase/u16-is-invariant.c: Likewise.
3347         * lib/unicase/u32-is-invariant.c: Likewise.
3348         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3349
3350 2009-12-30  Bruno Haible  <bruno@clisp.org>
3351
3352         Fix test crash.
3353         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
3354         locales.
3355         Reported by Simon Josefsson <simon@josefsson.org>.
3356
3357 2009-12-30  Bruno Haible  <bruno@clisp.org>
3358
3359         Fix compilation error on most platforms.
3360         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
3361         Reported by Simon Josefsson <simon@josefsson.org>
3362         and Nelson H. F. Beebe <beebe@math.utah.edu>.
3363
3364 2009-12-30  Eric Blake  <ebb9@byu.net>
3365
3366         futimens, utimensat: work around ntfs-3g bug
3367         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
3368         a ctime bug is present, and expand workaround to cover ntfs-3g.
3369         * lib/utimens.c (fdutimens, lutimens): Likewise.
3370         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
3371         (validate_timespec): Adjust return value.
3372         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
3373         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3374         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
3375
3376 2009-12-29  Eric Blake  <ebb9@byu.net>
3377
3378         link-warning: make usage consistent
3379         * modules/ctype (Depends-on): Add link-warning.
3380         (Makefile.am): Update rules accordingly.
3381         * modules/langinfo (Depends-on, Makefile.am): Likewise.
3382         * modules/locale (Depends-on, Makefile.am): Likewise.
3383         * modules/sys_file (Makefile.am): Likewise.
3384         * modules/getopt-posix (Makefile.am): Delete unused link warning
3385         efforts.
3386         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
3387         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
3388         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
3389         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
3390
3391         stdio: remove unused variables
3392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
3393         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3394         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3395
3396         tests: test more substitute headers
3397         * modules/ctype-tests: New file.
3398         * modules/dirent-tests: Likewise.
3399         * modules/spawn-tests: Likewise.
3400         * modules/sys_file-tests: Likewise.
3401         * modules/sys_ioctl-tests: Likewise.
3402         * modules/sys_wait-tests: Likewise.
3403         * tests/test-ctype.c: Likewise.
3404         * tests/test-dirent.c: Likewise.
3405         * tests/test-spawn.c: Likewise.
3406         * tests/test-sys_file.c: Likewise.
3407         * tests/test-sys_ioctl.c: Likewise.
3408         * tests/test-sys_wait.c: Likewise.
3409         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
3410         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
3411         whether or not flock is in use.
3412
3413         tests: remove License section from module
3414         * modules/arpa_inet-tests: Remove unneeded section.
3415         * modules/byteswap-tests: Likewise.
3416         * modules/ceilf-tests: Likewise.
3417         * modules/ceill-tests: Likewise.
3418         * modules/crypto/des-tests: Likewise.
3419         * modules/crypto/gc-arcfour-tests: Likewise.
3420         * modules/crypto/gc-arctwo-tests: Likewise.
3421         * modules/crypto/gc-des-tests: Likewise.
3422         * modules/crypto/gc-hmac-md5-tests: Likewise.
3423         * modules/crypto/gc-hmac-sha1-tests: Likewise.
3424         * modules/crypto/gc-md2-tests: Likewise.
3425         * modules/crypto/gc-md4-tests: Likewise.
3426         * modules/crypto/gc-md5-tests: Likewise.
3427         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
3428         * modules/crypto/gc-rijndael-tests: Likewise.
3429         * modules/crypto/gc-sha1-tests: Likewise.
3430         * modules/crypto/gc-tests: Likewise.
3431         * modules/crypto/md2-tests: Likewise.
3432         * modules/crypto/md4-tests: Likewise.
3433         * modules/fcntl-h-tests: Likewise.
3434         * modules/floorf-tests: Likewise.
3435         * modules/floorl-tests: Likewise.
3436         * modules/frexp-nolibm-tests: Likewise.
3437         * modules/frexp-tests: Likewise.
3438         * modules/frexpl-nolibm-tests: Likewise.
3439         * modules/frexpl-tests: Likewise.
3440         * modules/getaddrinfo-tests: Likewise.
3441         * modules/inttypes-tests: Likewise.
3442         * modules/isfinite-tests: Likewise.
3443         * modules/isinf-tests: Likewise.
3444         * modules/ldexpl-tests: Likewise.
3445         * modules/locale-tests: Likewise.
3446         * modules/math-tests: Likewise.
3447         * modules/netdb-tests: Likewise.
3448         * modules/netinet_in-tests: Likewise.
3449         * modules/printf-frexp-tests: Likewise.
3450         * modules/printf-frexpl-tests: Likewise.
3451         * modules/priv-set-tests: Likewise.
3452         * modules/random_r-tests: Likewise.
3453         * modules/round-tests: Likewise.
3454         * modules/roundf-tests: Likewise.
3455         * modules/roundl-tests: Likewise.
3456         * modules/search-tests: Likewise.
3457         * modules/select-tests: Likewise.
3458         * modules/signal-tests: Likewise.
3459         * modules/stdbool-tests: Likewise.
3460         * modules/stddef-tests: Likewise.
3461         * modules/stdint-tests: Likewise.
3462         * modules/stdio-tests: Likewise.
3463         * modules/stdlib-tests: Likewise.
3464         * modules/string-tests: Likewise.
3465         * modules/strings-tests: Likewise.
3466         * modules/sys_select-tests: Likewise.
3467         * modules/sys_socket-tests: Likewise.
3468         * modules/sys_stat-tests: Likewise.
3469         * modules/sys_time-tests: Likewise.
3470         * modules/sys_utsname-tests: Likewise.
3471         * modules/sysexits-tests: Likewise.
3472         * modules/time-tests: Likewise.
3473         * modules/trunc-tests: Likewise.
3474         * modules/truncf-tests: Likewise.
3475         * modules/truncl-tests: Likewise.
3476         * modules/tsearch-tests: Likewise.
3477         * modules/unistd-tests: Likewise.
3478         * modules/wchar-tests: Likewise.
3479         * modules/wctype-tests: Likewise.
3480
3481         tests: fix license on several tests
3482         * tests/test-des.c: Update to GPLv3+.
3483         * tests/test-flock.c: Likewise.
3484         * tests/test-fsync.c: Likewise.
3485         * tests/test-futimens.h: Likewise.
3486         * tests/test-gc-arcfour.c: Likewise.
3487         * tests/test-gc-arctwo.c: Likewise.
3488         * tests/test-gc-des.c: Likewise.
3489         * tests/test-gc-hmac-md5.c: Likewise.
3490         * tests/test-gc-hmac-sha1.c: Likewise.
3491         * tests/test-gc-md2.c: Likewise.
3492         * tests/test-gc-md4.c: Likewise.
3493         * tests/test-gc-md5.c: Likewise.
3494         * tests/test-gc-pbkdf2-sha1.c: Likewise.
3495         * tests/test-gc-rijndael.c: Likewise.
3496         * tests/test-gc-sha1.c: Likewise.
3497         * tests/test-gc.c: Likewise.
3498         * tests/test-getcwd.c: Likewise.
3499         * tests/test-link.c: Likewise.
3500         * tests/test-link.h: Likewise.
3501         * tests/test-lutimens.h: Likewise.
3502         * tests/test-md2.c: Likewise.
3503         * tests/test-md4.c: Likewise.
3504         * tests/test-mkdir.h: Likewise.
3505         * tests/test-rename.c: Likewise.
3506         * tests/test-rename.h: Likewise.
3507         * tests/test-safe-alloc.c: Likewise.
3508         * tests/test-utimens-common.h: Likewise.
3509         * tests/test-utimens.h: Likewise.
3510
3511         maint: sync license texts
3512         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3513         * doc/gpl-3.0.texi: Revert copyright year update.
3514         * doc/lgpl-3.0.texi: Likewise.
3515
3516 2009-12-29  Jim Meyering  <meyering@redhat.com>
3517
3518         update nearly all FSF copyright year lists to include 2009
3519         The files named by the following are exempted:
3520             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3521               test -f "$dst" && { echo "$dst"; continue; }
3522               test -d "$dst" || continue
3523               echo "$dst"/$(basename "$src")
3524             done > exempt
3525             git ls-files tests/unictype >> exempt
3526         In the remaining files, convert to all-interval notation if
3527         - there is already at least one year interval like 2000-2003
3528         - the file is maintained by me
3529         - the file is in lib/uni*/, where that style already prevails
3530         Otherwise, use update-copyright's default.
3531
3532 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3533         and Eric Blake  <ebb9@byu.net>
3534
3535         tests: don't require debug system() to pass
3536         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3537         * tests/test-rmdir.h (test_rmdir_func): Likewise.
3538         * tests/test-unlink.h (test_unlink_func): Likewise.
3539         * tests/test-fstatat.c (main): ...into callers.
3540         * tests/test-lstat.c (main): Likewise.
3541         * tests/test-rmdir.c (main): Likewise.
3542         * tests/test-unlink.c (main): Likewise.
3543         * tests/test-unlinkat.c (main): Likewise.
3544         * tests/test-areadlink-with-size.c (main): Don't require a
3545         debug-only system call to pass, aiding cross-testing to mingw.
3546         * tests/test-areadlink.c (main): Likewise.
3547         * tests/test-areadlinkat-with-size.c (main): Likewise.
3548         * tests/test-areadlinkat.c (main): Likewise.
3549         * tests/test-canonicalize-lgpl.c (main): Likewise.
3550         * tests/test-canonicalize.c (main): Likewise.
3551         * tests/test-chown.c (main): Likewise.
3552         * tests/test-fchownat.c (main): Likewise.
3553         * tests/test-lchown.c (main): Likewise.
3554         * tests/test-fdutimensat.c (main): Likewise.
3555         * tests/test-futimens.c (main): Likewise.
3556         * tests/test-link.c (main): Likewise.
3557         * tests/test-linkat.c (main): Likewise.
3558         * tests/test-mkdir.c (main): Likewise.
3559         * tests/test-mkdirat.c (main): Likewise.
3560         * tests/test-mkfifo.c (main): Likewise.
3561         * tests/test-mkfifoat.c (main): Likewise.
3562         * tests/test-mknod.c (main): Likewise.
3563         * tests/test-readlink.c (main): Likewise.
3564         * tests/test-remove.c (main): Likewise.
3565         * tests/test-rename.c (main): Likewise.
3566         * tests/test-renameat.c (main): Likewise.
3567         * tests/test-symlink.c (main): Likewise.
3568         * tests/test-symlinkat.c (main): Likewise.
3569         * tests/test-utimens.c (main): Likewise.
3570         * tests/test-utimensat.c (main): Likewise.
3571
3572 2009-12-29  Simon Josefsson  <simon@josefsson.org>
3573
3574         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3575         on $(UNUSED_PARAMETER_H) to avoid build failure.
3576
3577 2009-12-28  Jim Meyering  <meyering@redhat.com>
3578
3579         update-copyright: you may specify a max. line length other than 72
3580         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3581
3582         maint: use consistent FSF copyright line syntax
3583         * lib/posixtm.c: Add missing comma in FSF copyright line.
3584         * lib/posixtm.h: Likewise.
3585         * lib/getugroups.c: Add missing ", Inc.".
3586
3587         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3588         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3589         FSF copyright line.  Remove trailing blanks.
3590
3591 2009-12-28  Eric Blake  <ebb9@byu.net>
3592
3593         test-dup2: reduce dependencies
3594         * modules/cloexec (Configure.ac): Set witness.
3595         * modules/dup2-tests (Depends-on): Drop cloexec.
3596         * tests/test-dup2.c (main): Skip portion of test if cloexec module
3597         not present.
3598         Suggested by Bruno Haible.
3599
3600 2009-12-26  Bruno Haible  <bruno@clisp.org>
3601
3602         Remove an unneeded dependency.
3603         * modules/fseterr (Depends-on): Remove dup2.
3604
3605 2009-12-26  Eric Blake  <ebb9@byu.net>
3606
3607         tests: use macros.h in more places
3608         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3609         (ASSERT_STREAM): Provide default of stderr.
3610         * tests/test-dirent-safer.c: Include macros.h, using alternate
3611         stream for assertions.
3612         * tests/test-dup-safer.c: Likewise.
3613         * tests/test-freopen-safer.c: Likewise.
3614         * tests/test-getopt.c: Likewise.
3615         * tests/test-openat-safer.c: Likewise.
3616         * tests/test-pipe.c: Likewise.
3617         * tests/test-popen-safer.c: Likewise.
3618         * modules/dirent-safer-tests (Files): Include macros.h.
3619         * modules/unistd-safer-tests (Files): Likewise.
3620         * modules/freopen-safer-tests (Files): Likewise.
3621         * modules/getopt-posix-tests (Files): Likewise.
3622         * modules/openat-safer-tests (Files): Likewise.
3623         * modules/pipe-tests (Files): Likewise.
3624
3625 2009-12-26  Bruno Haible  <bruno@clisp.org>
3626
3627         javacomp: Portability fix.
3628         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3629         that it also works on Solaris.
3630
3631 2009-12-26  Bruno Haible  <bruno@clisp.org>
3632
3633         localename: Fix storage allocation of gl_locale_name_thread's result.
3634         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3635         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3636         all platforms that have 'uselocale'.
3637         (gl_locale_name_thread_unsafe): New function, extracted from
3638         gl_locale_name_thread.
3639         (gl_locale_name_thread): Call struniq on all platforms that have
3640         'uselocale'.
3641         * tests/test-localename.c (test_locale_name_thread): Check that the
3642         resulting strings are permanently allocated.
3643         * modules/localename-tests (Depends-on): Add strdup.
3644
3645 2009-12-26  Bruno Haible  <bruno@clisp.org>
3646
3647         * tests/test-localename.c (categories): Fill in the strings.
3648
3649 2009-12-26  Jim Meyering  <meyering@redhat.com>
3650
3651         isdir: complete the removal of m4/isdir.m4
3652         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3653
3654         isdir: clean up, since at least grep still uses it
3655         * lib/isdir.c: Include "isdir.h".
3656         (S_ISDIR): Remove now-unneeded definition.
3657         * modules/isdir (Files): Add lib/isdir.h.
3658         * lib/isdir.h: New file, with declaration.
3659         * m4/isdir.m4: Remove file -- unneeded.
3660
3661 2009-12-25  Bruno Haible  <bruno@clisp.org>
3662
3663         selinux-h: Make generated .h files standalone.
3664         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3665         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3666         * lib/se-selinux.in.h: Likewise.
3667         * modules/selinux-h (Depends-on): Add unused-parameter.
3668         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3669         selinux/selinux.h and selinux/context.h.
3670         Suggested by Eric Blake.
3671
3672 2009-12-25  Bruno Haible  <bruno@clisp.org>
3673
3674         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3675         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3676         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3677         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3678         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3679
3680 2009-12-24  Bruno Haible  <bruno@clisp.org>
3681
3682         openat: Fix warning.
3683         * lib/openat-proc.c: Include <unistd.h>.
3684
3685 2009-12-24  Bruno Haible  <bruno@clisp.org>
3686
3687         New module 'unused-parameter'.
3688         * build-aux/unused-parameter.h: New file, extracted from earlier
3689         gnulib-common.m4.
3690         * modules/unused-parameter: New file.
3691         * lib/unistr.h: Include unused-parameter.h.
3692         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3693         _GL_UNUSED.
3694         * modules/unistr/base (Depends-on): Add unused-parameter.
3695
3696 2009-12-24  Bruno Haible  <bruno@clisp.org>
3697
3698         Add missing dependencies to 'extensions' module.
3699         * m4/extensions.m4: Add comment.
3700         * modules/accept4 (Depends-on): Add extensions.
3701         * modules/dup3 (Depends-on): Likewise.
3702         * modules/fcntl (Depends-on): Likewise.
3703         * modules/futimens (Depends-on): Likewise.
3704         * modules/mknod (Depends-on): Likewise.
3705         * modules/pipe2 (Depends-on): Likewise.
3706         * modules/stat-time (Depends-on): Likewise.
3707         * modules/strcasestr-simple (Depends-on): Likewise.
3708         * modules/strsignal (Depends-on): Likewise.
3709         * modules/utimensat (Depends-on): Likewise.
3710         * modules/localcharset (Depends-on): Likewise. Needed because of
3711         gl_FCNTL_O_FLAGS.
3712         * modules/wcrtomb (Depends-on): Likewise. Needed because of
3713         AC_TYPE_MBSTATE_T.
3714         * modules/wcsnrtombs (Depends-on): Likewise.
3715         * modules/wcsrtombs (Depends-on): Likewise.
3716
3717 2009-12-24  Bruno Haible  <bruno@clisp.org>
3718
3719         binary-io: Avoid gcc warning due to SET_BINARY.
3720         * lib/binary-io.h (SET_BINARY): Cast the result to void.
3721         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3722
3723 2009-12-24  Bruno Haible  <bruno@clisp.org>
3724
3725         Avoid future namespace pollution on glibc systems.
3726         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3727         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3728         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3729         glibc systems.
3730
3731 2009-12-24  Bruno Haible  <bruno@clisp.org>
3732
3733         Refactor common macros used in tests.
3734         * tests/macros.h: New file.
3735         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3736         and/or <stdlib.h>, if appropriate.
3737         (ASSERT, SIZEOF): Remove macros.
3738         * tests/test-areadlink-with-size.c: Likewise.
3739         * tests/test-areadlinkat.c: Likewise.
3740         * tests/test-areadlinkat-with-size.c: Likewise.
3741         * tests/test-argmatch.c: Likewise.
3742         * tests/test-argv-iter.c: Likewise.
3743         * tests/test-array-mergesort.c: Likewise.
3744         * tests/test-array_list.c: Likewise.
3745         * tests/test-array_oset.c: Likewise.
3746         * tests/test-avltree_list.c: Likewise.
3747         * tests/test-avltree_oset.c: Likewise.
3748         * tests/test-avltreehash_list.c: Likewise.
3749         * tests/test-base64.c: Likewise.
3750         * tests/test-binary-io.c: Likewise.
3751         * tests/test-bitrotate.c: Likewise.
3752         * tests/test-btowc.c: Likewise.
3753         * tests/test-byteswap.c: Likewise.
3754         * tests/test-c-ctype.c: Likewise.
3755         * tests/test-c-stack.c: Likewise.
3756         * tests/test-c-strcasecmp.c: Likewise.
3757         * tests/test-c-strcasestr.c: Likewise.
3758         * tests/test-c-strncasecmp.c: Likewise.
3759         * tests/test-c-strstr.c: Likewise.
3760         * tests/test-canonicalize-lgpl.c: Likewise.
3761         * tests/test-canonicalize.c: Likewise.
3762         * tests/test-carray_list.c: Likewise.
3763         * tests/test-ceilf1.c: Likewise.
3764         * tests/test-ceilf2.c: Likewise.
3765         * tests/test-ceill.c: Likewise.
3766         * tests/test-chown.c: Likewise.
3767         * tests/test-cloexec.c: Likewise.
3768         * tests/test-copy-acl.c: Likewise.
3769         * tests/test-copy-file.c: Likewise.
3770         * tests/test-count-one-bits.c: Likewise.
3771         * tests/test-dprintf-posix.c: Likewise.
3772         * tests/test-dup2.c: Likewise.
3773         * tests/test-dup3.c: Likewise.
3774         * tests/test-duplocale.c: Likewise.
3775         * tests/test-fbufmode.c: Likewise.
3776         * tests/test-fchdir.c: Likewise.
3777         * tests/test-fchownat.c: Likewise.
3778         * tests/test-fcntl-safer.c: Likewise.
3779         * tests/test-fcntl.c: Likewise.
3780         * tests/test-fdopendir.c: Likewise.
3781         * tests/test-fdutimensat.c: Likewise.
3782         * tests/test-fflush2.c: Likewise.
3783         * tests/test-file-has-acl.c: Likewise.
3784         * tests/test-filevercmp.c: Likewise.
3785         * tests/test-flock.c: Likewise.
3786         * tests/test-floorf1.c: Likewise.
3787         * tests/test-floorf2.c: Likewise.
3788         * tests/test-floorl.c: Likewise.
3789         * tests/test-fnmatch.c: Likewise.
3790         * tests/test-fopen.h: Likewise.
3791         * tests/test-fpending.c: Likewise.
3792         * tests/test-fprintf-posix.c: Likewise.
3793         * tests/test-fpurge.c: Likewise.
3794         * tests/test-freadable.c: Likewise.
3795         * tests/test-freadahead.c: Likewise.
3796         * tests/test-freading.c: Likewise.
3797         * tests/test-freadptr.c: Likewise.
3798         * tests/test-freadptr2.c: Likewise.
3799         * tests/test-freadseek.c: Likewise.
3800         * tests/test-freopen.c: Likewise.
3801         * tests/test-frexp.c: Likewise.
3802         * tests/test-frexpl.c: Likewise.
3803         * tests/test-fseek.c: Likewise.
3804         * tests/test-fseeko.c: Likewise.
3805         * tests/test-fstatat.c: Likewise.
3806         * tests/test-fstrcmp.c: Likewise.
3807         * tests/test-fsync.c: Likewise.
3808         * tests/test-ftell.c: Likewise.
3809         * tests/test-ftello.c: Likewise.
3810         * tests/test-func.c: Likewise.
3811         * tests/test-futimens.c: Likewise.
3812         * tests/test-fwritable.c: Likewise.
3813         * tests/test-fwriting.c: Likewise.
3814         * tests/test-getcwd.c: Likewise.
3815         * tests/test-getdate.c: Likewise.
3816         * tests/test-getdelim.c: Likewise.
3817         * tests/test-getdtablesize.c: Likewise.
3818         * tests/test-getgroups.c: Likewise.
3819         * tests/test-getline.c: Likewise.
3820         * tests/test-getndelim2.c: Likewise.
3821         * tests/test-glob.c: Likewise.
3822         * tests/test-hash.c: Likewise.
3823         * tests/test-i-ring.c: Likewise.
3824         * tests/test-iconv-utf.c: Likewise.
3825         * tests/test-iconv.c: Likewise.
3826         * tests/test-idpriv-drop.c: Likewise.
3827         * tests/test-idpriv-droptemp.c: Likewise.
3828         * tests/test-inet_ntop.c: Likewise.
3829         * tests/test-inet_pton.c: Likewise.
3830         * tests/test-isblank.c: Likewise.
3831         * tests/test-isfinite.c: Likewise.
3832         * tests/test-isinf.c: Likewise.
3833         * tests/test-isnan.c: Likewise.
3834         * tests/test-isnand.h: Likewise.
3835         * tests/test-isnanf.h: Likewise.
3836         * tests/test-isnanl.h: Likewise.
3837         * tests/test-lchown.c: Likewise.
3838         * tests/test-ldexpl.c: Likewise.
3839         * tests/test-link.c: Likewise.
3840         * tests/test-linkat.c: Likewise.
3841         * tests/test-linked_list.c: Likewise.
3842         * tests/test-linkedhash_list.c: Likewise.
3843         * tests/test-localename.c: Likewise.
3844         * tests/test-lseek.c: Likewise.
3845         * tests/test-lstat.c: Likewise.
3846         * tests/test-mbmemcasecmp.c: Likewise.
3847         * tests/test-mbmemcasecoll.c: Likewise.
3848         * tests/test-mbrtowc.c: Likewise.
3849         * tests/test-mbscasecmp.c: Likewise.
3850         * tests/test-mbscasestr1.c: Likewise.
3851         * tests/test-mbscasestr2.c: Likewise.
3852         * tests/test-mbscasestr3.c: Likewise.
3853         * tests/test-mbscasestr4.c: Likewise.
3854         * tests/test-mbschr.c: Likewise.
3855         * tests/test-mbscspn.c: Likewise.
3856         * tests/test-mbsinit.c: Likewise.
3857         * tests/test-mbsncasecmp.c: Likewise.
3858         * tests/test-mbsnrtowcs.c: Likewise.
3859         * tests/test-mbspbrk.c: Likewise.
3860         * tests/test-mbspcasecmp.c: Likewise.
3861         * tests/test-mbsrchr.c: Likewise.
3862         * tests/test-mbsrtowcs.c: Likewise.
3863         * tests/test-mbsspn.c: Likewise.
3864         * tests/test-mbsstr1.c: Likewise.
3865         * tests/test-mbsstr2.c: Likewise.
3866         * tests/test-mbsstr3.c: Likewise.
3867         * tests/test-memchr.c: Likewise.
3868         * tests/test-memchr2.c: Likewise.
3869         * tests/test-memcmp.c: Likewise.
3870         * tests/test-memmem.c: Likewise.
3871         * tests/test-memrchr.c: Likewise.
3872         * tests/test-mkdir.c: Likewise.
3873         * tests/test-mkdirat.c: Likewise.
3874         * tests/test-mkfifo.c: Likewise.
3875         * tests/test-mkfifoat.c: Likewise.
3876         * tests/test-mknod.c: Likewise.
3877         * tests/test-nanosleep.c: Likewise.
3878         * tests/test-nl_langinfo.c: Likewise.
3879         * tests/test-obstack-printf.c: Likewise.
3880         * tests/test-open.c: Likewise.
3881         * tests/test-openat.c: Likewise.
3882         * tests/test-pipe-filter-gi1.c: Likewise.
3883         * tests/test-pipe-filter-gi2-main.c: Likewise.
3884         * tests/test-pipe-filter-ii1.c: Likewise.
3885         * tests/test-pipe-filter-ii2-main.c: Likewise.
3886         * tests/test-pipe2.c: Likewise.
3887         * tests/test-popen.h: Likewise.
3888         * tests/test-posixtm.c: Likewise.
3889         * tests/test-pread.c: Likewise.
3890         * tests/test-printf-frexp.c: Likewise.
3891         * tests/test-printf-frexpl.c: Likewise.
3892         * tests/test-printf-posix.c: Likewise.
3893         * tests/test-priv-set.c: Likewise.
3894         * tests/test-quotearg.c: Likewise.
3895         * tests/test-random_r.c: Likewise.
3896         * tests/test-rawmemchr.c: Likewise.
3897         * tests/test-rbtree_list.c: Likewise.
3898         * tests/test-rbtree_oset.c: Likewise.
3899         * tests/test-rbtreehash_list.c: Likewise.
3900         * tests/test-readlink.c: Likewise.
3901         * tests/test-remove.c: Likewise.
3902         * tests/test-rename.c: Likewise.
3903         * tests/test-renameat.c: Likewise.
3904         * tests/test-rmdir.c: Likewise.
3905         * tests/test-round1.c: Likewise.
3906         * tests/test-roundf1.c: Likewise.
3907         * tests/test-roundl.c: Likewise.
3908         * tests/test-safe-alloc.c: Likewise.
3909         * tests/test-sameacls.c: Likewise.
3910         * tests/test-set-mode-acl.c: Likewise.
3911         * tests/test-setenv.c: Likewise.
3912         * tests/test-sigaction.c: Likewise.
3913         * tests/test-signbit.c: Likewise.
3914         * tests/test-sleep.c: Likewise.
3915         * tests/test-snprintf-posix.c: Likewise.
3916         * tests/test-snprintf.c: Likewise.
3917         * tests/test-sprintf-posix.c: Likewise.
3918         * tests/test-stat-time.c: Likewise.
3919         * tests/test-stat.c: Likewise.
3920         * tests/test-strcasestr.c: Likewise.
3921         * tests/test-strchrnul.c: Likewise.
3922         * tests/test-strerror.c: Likewise.
3923         * tests/test-striconv.c: Likewise.
3924         * tests/test-striconveh.c: Likewise.
3925         * tests/test-striconveha.c: Likewise.
3926         * tests/test-strsignal.c: Likewise.
3927         * tests/test-strstr.c: Likewise.
3928         * tests/test-strtod.c: Likewise.
3929         * tests/test-strverscmp.c: Likewise.
3930         * tests/test-symlink.c: Likewise.
3931         * tests/test-symlinkat.c: Likewise.
3932         * tests/test-trunc1.c: Likewise.
3933         * tests/test-trunc2.c: Likewise.
3934         * tests/test-truncf1.c: Likewise.
3935         * tests/test-truncf2.c: Likewise.
3936         * tests/test-truncl.c: Likewise.
3937         * tests/test-uname.c: Likewise.
3938         * tests/test-unlink.c: Likewise.
3939         * tests/test-unlinkat.c: Likewise.
3940         * tests/test-unsetenv.c: Likewise.
3941         * tests/test-usleep.c: Likewise.
3942         * tests/test-utimens.c: Likewise.
3943         * tests/test-utimensat.c: Likewise.
3944         * tests/test-vasnprintf-posix.c: Likewise.
3945         * tests/test-vasnprintf-posix2.c: Likewise.
3946         * tests/test-vasnprintf.c: Likewise.
3947         * tests/test-vasprintf-posix.c: Likewise.
3948         * tests/test-vasprintf.c: Likewise.
3949         * tests/test-vdprintf-posix.c: Likewise.
3950         * tests/test-vfprintf-posix.c: Likewise.
3951         * tests/test-vprintf-posix.c: Likewise.
3952         * tests/test-vsnprintf-posix.c: Likewise.
3953         * tests/test-vsnprintf.c: Likewise.
3954         * tests/test-vsprintf-posix.c: Likewise.
3955         * tests/test-wcrtomb.c: Likewise.
3956         * tests/test-wcsnrtombs.c: Likewise.
3957         * tests/test-wcsrtombs.c: Likewise.
3958         * tests/test-wctype.c: Likewise.
3959         * tests/test-wcwidth.c: Likewise.
3960         * tests/test-xfprintf-posix.c: Likewise.
3961         * tests/test-xmemdup0.c: Likewise.
3962         * tests/test-xprintf-posix.c: Likewise.
3963         * tests/test-xvasprintf.c: Likewise.
3964         * tests/unicase/test-locale-language.c: Likewise.
3965         * tests/unicase/test-mapping-part1.h: Likewise.
3966         * tests/unicase/test-predicate-part1.h: Likewise.
3967         * tests/unicase/test-u8-casecmp.c: Likewise.
3968         * tests/unicase/test-u8-casecoll.c: Likewise.
3969         * tests/unicase/test-u8-casefold.c: Likewise.
3970         * tests/unicase/test-u8-is-cased.c: Likewise.
3971         * tests/unicase/test-u8-is-casefolded.c: Likewise.
3972         * tests/unicase/test-u8-is-lowercase.c: Likewise.
3973         * tests/unicase/test-u8-is-titlecase.c: Likewise.
3974         * tests/unicase/test-u8-is-uppercase.c: Likewise.
3975         * tests/unicase/test-u8-tolower.c: Likewise.
3976         * tests/unicase/test-u8-totitle.c: Likewise.
3977         * tests/unicase/test-u8-toupper.c: Likewise.
3978         * tests/unicase/test-u16-casecmp.c: Likewise.
3979         * tests/unicase/test-u16-casecoll.c: Likewise.
3980         * tests/unicase/test-u16-casefold.c: Likewise.
3981         * tests/unicase/test-u16-is-cased.c: Likewise.
3982         * tests/unicase/test-u16-is-casefolded.c: Likewise.
3983         * tests/unicase/test-u16-is-lowercase.c: Likewise.
3984         * tests/unicase/test-u16-is-titlecase.c: Likewise.
3985         * tests/unicase/test-u16-is-uppercase.c: Likewise.
3986         * tests/unicase/test-u16-tolower.c: Likewise.
3987         * tests/unicase/test-u16-totitle.c: Likewise.
3988         * tests/unicase/test-u16-toupper.c: Likewise.
3989         * tests/unicase/test-u32-casecmp.c: Likewise.
3990         * tests/unicase/test-u32-casecoll.c: Likewise.
3991         * tests/unicase/test-u32-casefold.c: Likewise.
3992         * tests/unicase/test-u32-is-cased.c: Likewise.
3993         * tests/unicase/test-u32-is-casefolded.c: Likewise.
3994         * tests/unicase/test-u32-is-lowercase.c: Likewise.
3995         * tests/unicase/test-u32-is-titlecase.c: Likewise.
3996         * tests/unicase/test-u32-is-uppercase.c: Likewise.
3997         * tests/unicase/test-u32-tolower.c: Likewise.
3998         * tests/unicase/test-u32-totitle.c: Likewise.
3999         * tests/unicase/test-u32-toupper.c: Likewise.
4000         * tests/unicase/test-ulc-casecmp.c: Likewise.
4001         * tests/unicase/test-ulc-casecoll.c: Likewise.
4002         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
4003         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
4004         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
4005         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
4006         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
4007         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
4008         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
4009         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
4010         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
4011         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
4012         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
4013         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
4014         * tests/unictype/test-bidi_byname.c: Likewise.
4015         * tests/unictype/test-bidi_name.c: Likewise.
4016         * tests/unictype/test-bidi_of.c: Likewise.
4017         * tests/unictype/test-bidi_test.c: Likewise.
4018         * tests/unictype/test-block_list.c: Likewise.
4019         * tests/unictype/test-block_of.c: Likewise.
4020         * tests/unictype/test-block_test.c: Likewise.
4021         * tests/unictype/test-categ_and.c: Likewise.
4022         * tests/unictype/test-categ_and_not.c: Likewise.
4023         * tests/unictype/test-categ_byname.c: Likewise.
4024         * tests/unictype/test-categ_name.c: Likewise.
4025         * tests/unictype/test-categ_none.c: Likewise.
4026         * tests/unictype/test-categ_of.c: Likewise.
4027         * tests/unictype/test-categ_or.c: Likewise.
4028         * tests/unictype/test-categ_test_withtable.c: Likewise.
4029         * tests/unictype/test-combining.c: Likewise.
4030         * tests/unictype/test-decdigit.c: Likewise.
4031         * tests/unictype/test-digit.c: Likewise.
4032         * tests/unictype/test-mirror.c: Likewise.
4033         * tests/unictype/test-numeric.c: Likewise.
4034         * tests/unictype/test-pr_byname.c: Likewise.
4035         * tests/unictype/test-pr_test.c: Likewise.
4036         * tests/unictype/test-predicate-part1.h: Likewise.
4037         * tests/unictype/test-scripts.c: Likewise.
4038         * tests/unictype/test-sy_c_ident.c: Likewise.
4039         * tests/unictype/test-sy_java_ident.c: Likewise.
4040         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
4041         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
4042         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
4043         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
4044         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
4045         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
4046         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
4047         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
4048         * tests/uninorm/test-canonical-decomposition.c: Likewise.
4049         * tests/uninorm/test-compat-decomposition.c: Likewise.
4050         * tests/uninorm/test-composition.c: Likewise.
4051         * tests/uninorm/test-decomposing-form.c: Likewise.
4052         * tests/uninorm/test-decomposition.c: Likewise.
4053         * tests/uninorm/test-u8-nfc.c: Likewise.
4054         * tests/uninorm/test-u8-nfd.c: Likewise.
4055         * tests/uninorm/test-u8-nfkc.c: Likewise.
4056         * tests/uninorm/test-u8-nfkd.c: Likewise.
4057         * tests/uninorm/test-u8-normcmp.c: Likewise.
4058         * tests/uninorm/test-u8-normcoll.c: Likewise.
4059         * tests/uninorm/test-u16-nfc.c: Likewise.
4060         * tests/uninorm/test-u16-nfd.c: Likewise.
4061         * tests/uninorm/test-u16-nfkc.c: Likewise.
4062         * tests/uninorm/test-u16-nfkd.c: Likewise.
4063         * tests/uninorm/test-u16-normcmp.c: Likewise.
4064         * tests/uninorm/test-u16-normcoll.c: Likewise.
4065         * tests/uninorm/test-u32-nfc.c: Likewise.
4066         * tests/uninorm/test-u32-nfd.c: Likewise.
4067         * tests/uninorm/test-u32-nfkc.c: Likewise.
4068         * tests/uninorm/test-u32-nfkd.c: Likewise.
4069         * tests/uninorm/test-u32-normalize-big.c: Likewise.
4070         * tests/uninorm/test-u32-normcmp.c: Likewise.
4071         * tests/uninorm/test-u32-normcoll.c: Likewise.
4072         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
4073         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
4074         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
4075         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
4076         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
4077         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
4078         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
4079         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
4080         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
4081         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
4082         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
4083         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
4084         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
4085         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
4086         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
4087         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
4088         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
4089         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
4090         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
4091         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
4092         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
4093         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
4094         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
4095         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
4096         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
4097         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
4098         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
4099         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
4100         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
4101         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
4102         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
4103         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
4104         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
4105         * tests/uniwidth/test-u8-strwidth.c: Likewise.
4106         * tests/uniwidth/test-u8-width.c: Likewise.
4107         * tests/uniwidth/test-u16-strwidth.c: Likewise.
4108         * tests/uniwidth/test-u16-width.c: Likewise.
4109         * tests/uniwidth/test-u32-strwidth.c: Likewise.
4110         * tests/uniwidth/test-u32-width.c: Likewise.
4111         * tests/uniwidth/test-uc_width.c: Likewise.
4112         * tests/uniwidth/test-uc_width2.c: Likewise.
4113         * modules/acl-tests (Files): Add tests/macros.h.
4114         * modules/areadlink-tests (Files): Likewise.
4115         * modules/areadlink-with-size-tests (Files): Likewise.
4116         * modules/areadlinkat-tests (Files): Likewise.
4117         * modules/areadlinkat-with-size-tests (Files): Likewise.
4118         * modules/argmatch-tests (Files): Likewise.
4119         * modules/argv-iter-tests (Files): Likewise.
4120         * modules/array-list-tests (Files): Likewise.
4121         * modules/array-mergesort-tests (Files): Likewise.
4122         * modules/array-oset-tests (Files): Likewise.
4123         * modules/avltree-list-tests (Files): Likewise.
4124         * modules/avltree-oset-tests (Files): Likewise.
4125         * modules/avltreehash-list-tests (Files): Likewise.
4126         * modules/base64-tests (Files): Likewise.
4127         * modules/binary-io-tests (Files): Likewise.
4128         * modules/bitrotate-tests (Files): Likewise.
4129         * modules/btowc-tests (Files): Likewise.
4130         * modules/byteswap-tests (Files): Likewise.
4131         * modules/c-ctype-tests (Files): Likewise.
4132         * modules/c-stack-tests (Files): Likewise.
4133         * modules/c-strcase-tests (Files): Likewise.
4134         * modules/c-strcasestr-tests (Files): Likewise.
4135         * modules/c-strstr-tests (Files): Likewise.
4136         * modules/canonicalize-lgpl-tests (Files): Likewise.
4137         * modules/canonicalize-tests (Files): Likewise.
4138         * modules/carray-list-tests (Files): Likewise.
4139         * modules/ceilf-tests (Files): Likewise.
4140         * modules/ceill-tests (Files): Likewise.
4141         * modules/chown-tests (Files): Likewise.
4142         * modules/cloexec-tests (Files): Likewise.
4143         * modules/copy-file-tests (Files): Likewise.
4144         * modules/count-one-bits-tests (Files): Likewise.
4145         * modules/dprintf-posix-tests (Files): Likewise.
4146         * modules/dup2-tests (Files): Likewise.
4147         * modules/dup3-tests (Files): Likewise.
4148         * modules/duplocale-tests (Files): Likewise.
4149         * modules/fbufmode-tests (Files): Likewise.
4150         * modules/fchdir-tests (Files): Likewise.
4151         * modules/fcntl-safer-tests (Files): Likewise.
4152         * modules/fcntl-tests (Files): Likewise.
4153         * modules/fdopendir-tests (Files): Likewise.
4154         * modules/fdutimensat-tests (Files): Likewise.
4155         * modules/fflush-tests (Files): Likewise.
4156         * modules/filevercmp-tests (Files): Likewise.
4157         * modules/flock-tests (Files): Likewise.
4158         * modules/floorf-tests (Files): Likewise.
4159         * modules/floorl-tests (Files): Likewise.
4160         * modules/fnmatch-tests (Files): Likewise.
4161         * modules/fopen-safer-tests (Files): Likewise.
4162         * modules/fopen-tests (Files): Likewise.
4163         * modules/fpending-tests (Files): Likewise.
4164         * modules/fprintf-posix-tests (Files): Likewise.
4165         * modules/fpurge-tests (Files): Likewise.
4166         * modules/freadable-tests (Files): Likewise.
4167         * modules/freadahead-tests (Files): Likewise.
4168         * modules/freading-tests (Files): Likewise.
4169         * modules/freadptr-tests (Files): Likewise.
4170         * modules/freadseek-tests (Files): Likewise.
4171         * modules/freopen-tests (Files): Likewise.
4172         * modules/frexp-nolibm-tests (Files): Likewise.
4173         * modules/frexp-tests (Files): Likewise.
4174         * modules/frexpl-nolibm-tests (Files): Likewise.
4175         * modules/frexpl-tests (Files): Likewise.
4176         * modules/fseek-tests (Files): Likewise.
4177         * modules/fseeko-tests (Files): Likewise.
4178         * modules/fstrcmp-tests (Files): Likewise.
4179         * modules/fsync-tests (Files): Likewise.
4180         * modules/ftell-tests (Files): Likewise.
4181         * modules/ftello-tests (Files): Likewise.
4182         * modules/func-tests (Files): Likewise.
4183         * modules/futimens-tests (Files): Likewise.
4184         * modules/fwritable-tests (Files): Likewise.
4185         * modules/fwriting-tests (Files): Likewise.
4186         * modules/getcwd-tests (Files): Likewise.
4187         * modules/getdate-tests (Files): Likewise.
4188         * modules/getdelim-tests (Files): Likewise.
4189         * modules/getdtablesize-tests (Files): Likewise.
4190         * modules/getgroups-tests (Files): Likewise.
4191         * modules/getline-tests (Files): Likewise.
4192         * modules/getndelim2-tests (Files): Likewise.
4193         * modules/glob-tests (Files): Likewise.
4194         * modules/hash-tests (Files): Likewise.
4195         * modules/i-ring-tests (Files): Likewise.
4196         * modules/iconv-tests (Files): Likewise.
4197         * modules/iconv_open-utf-tests (Files): Likewise.
4198         * modules/idpriv-drop-tests (Files): Likewise.
4199         * modules/idpriv-droptemp-tests (Files): Likewise.
4200         * modules/inet_ntop-tests (Files): Likewise.
4201         * modules/inet_pton-tests (Files): Likewise.
4202         * modules/isblank-tests (Files): Likewise.
4203         * modules/isfinite-tests (Files): Likewise.
4204         * modules/isinf-tests (Files): Likewise.
4205         * modules/isnan-tests (Files): Likewise.
4206         * modules/isnand-nolibm-tests (Files): Likewise.
4207         * modules/isnand-tests (Files): Likewise.
4208         * modules/isnanf-nolibm-tests (Files): Likewise.
4209         * modules/isnanf-tests (Files): Likewise.
4210         * modules/isnanl-nolibm-tests (Files): Likewise.
4211         * modules/isnanl-tests (Files): Likewise.
4212         * modules/lchown-tests (Files): Likewise.
4213         * modules/ldexpl-tests (Files): Likewise.
4214         * modules/link-tests (Files): Likewise.
4215         * modules/linkat-tests (Files): Likewise.
4216         * modules/linked-list-tests (Files): Likewise.
4217         * modules/linkedhash-list-tests (Files): Likewise.
4218         * modules/localename-tests (Files): Likewise.
4219         * modules/lseek-tests (Files): Likewise.
4220         * modules/lstat-tests (Files): Likewise.
4221         * modules/mbmemcasecmp-tests (Files): Likewise.
4222         * modules/mbmemcasecoll-tests (Files): Likewise.
4223         * modules/mbrtowc-tests (Files): Likewise.
4224         * modules/mbscasecmp-tests (Files): Likewise.
4225         * modules/mbscasestr-tests (Files): Likewise.
4226         * modules/mbschr-tests (Files): Likewise.
4227         * modules/mbscspn-tests (Files): Likewise.
4228         * modules/mbsinit-tests (Files): Likewise.
4229         * modules/mbsncasecmp-tests (Files): Likewise.
4230         * modules/mbsnrtowcs-tests (Files): Likewise.
4231         * modules/mbspbrk-tests (Files): Likewise.
4232         * modules/mbspcasecmp-tests (Files): Likewise.
4233         * modules/mbsrchr-tests (Files): Likewise.
4234         * modules/mbsrtowcs-tests (Files): Likewise.
4235         * modules/mbsspn-tests (Files): Likewise.
4236         * modules/mbsstr-tests (Files): Likewise.
4237         * modules/memchr-tests (Files): Likewise.
4238         * modules/memchr2-tests (Files): Likewise.
4239         * modules/memcmp-tests (Files): Likewise.
4240         * modules/memmem-tests (Files): Likewise.
4241         * modules/memrchr-tests (Files): Likewise.
4242         * modules/mkdir-tests (Files): Likewise.
4243         * modules/mkfifo-tests (Files): Likewise.
4244         * modules/mkfifoat-tests (Files): Likewise.
4245         * modules/mknod-tests (Files): Likewise.
4246         * modules/nanosleep-tests (Files): Likewise.
4247         * modules/nl_langinfo-tests (Files): Likewise.
4248         * modules/obstack-printf-tests (Files): Likewise.
4249         * modules/open-tests (Files): Likewise.
4250         * modules/openat-tests (Files): Likewise.
4251         * modules/pipe-filter-gi-tests (Files): Likewise.
4252         * modules/pipe-filter-ii-tests (Files): Likewise.
4253         * modules/pipe2-tests (Files): Likewise.
4254         * modules/popen-safer-tests (Files): Likewise.
4255         * modules/popen-tests (Files): Likewise.
4256         * modules/posixtm-tests (Files): Likewise.
4257         * modules/pread-tests (Files): Likewise.
4258         * modules/printf-frexp-tests (Files): Likewise.
4259         * modules/printf-frexpl-tests (Files): Likewise.
4260         * modules/printf-posix-tests (Files): Likewise.
4261         * modules/priv-set-tests (Files): Likewise.
4262         * modules/quotearg-tests (Files): Likewise.
4263         * modules/random_r-tests (Files): Likewise.
4264         * modules/rawmemchr-tests (Files): Likewise.
4265         * modules/rbtree-list-tests (Files): Likewise.
4266         * modules/rbtree-oset-tests (Files): Likewise.
4267         * modules/rbtreehash-list-tests (Files): Likewise.
4268         * modules/readlink-tests (Files): Likewise.
4269         * modules/remove-tests (Files): Likewise.
4270         * modules/rename-tests (Files): Likewise.
4271         * modules/renameat-tests (Files): Likewise.
4272         * modules/rmdir-tests (Files): Likewise.
4273         * modules/round-tests (Files): Likewise.
4274         * modules/roundf-tests (Files): Likewise.
4275         * modules/roundl-tests (Files): Likewise.
4276         * modules/safe-alloc-tests (Files): Likewise.
4277         * modules/setenv-tests (Files): Likewise.
4278         * modules/sigaction-tests (Files): Likewise.
4279         * modules/signbit-tests (Files): Likewise.
4280         * modules/sleep-tests (Files): Likewise.
4281         * modules/snprintf-posix-tests (Files): Likewise.
4282         * modules/snprintf-tests (Files): Likewise.
4283         * modules/sprintf-posix-tests (Files): Likewise.
4284         * modules/stat-tests (Files): Likewise.
4285         * modules/stat-time-tests (Files): Likewise.
4286         * modules/strcasestr-tests (Files): Likewise.
4287         * modules/strchrnul-tests (Files): Likewise.
4288         * modules/strerror-tests (Files): Likewise.
4289         * modules/striconv-tests (Files): Likewise.
4290         * modules/striconveh-tests (Files): Likewise.
4291         * modules/striconveha-tests (Files): Likewise.
4292         * modules/strsignal-tests (Files): Likewise.
4293         * modules/strstr-tests (Files): Likewise.
4294         * modules/strtod-tests (Files): Likewise.
4295         * modules/strverscmp-tests (Files): Likewise.
4296         * modules/symlink-tests (Files): Likewise.
4297         * modules/symlinkat-tests (Files): Likewise.
4298         * modules/trunc-tests (Files): Likewise.
4299         * modules/truncf-tests (Files): Likewise.
4300         * modules/truncl-tests (Files): Likewise.
4301         * modules/uname-tests (Files): Likewise.
4302         * modules/unicase/cased-tests (Files): Likewise.
4303         * modules/unicase/ignorable-tests (Files): Likewise.
4304         * modules/unicase/locale-language-tests (Files): Likewise.
4305         * modules/unicase/tolower-tests (Files): Likewise.
4306         * modules/unicase/totitle-tests (Files): Likewise.
4307         * modules/unicase/toupper-tests (Files): Likewise.
4308         * modules/unicase/u8-casecmp-tests (Files): Likewise.
4309         * modules/unicase/u8-casecoll-tests (Files): Likewise.
4310         * modules/unicase/u8-casefold-tests (Files): Likewise.
4311         * modules/unicase/u8-is-cased-tests (Files): Likewise.
4312         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
4313         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
4314         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
4315         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
4316         * modules/unicase/u8-tolower-tests (Files): Likewise.
4317         * modules/unicase/u8-totitle-tests (Files): Likewise.
4318         * modules/unicase/u8-toupper-tests (Files): Likewise.
4319         * modules/unicase/u16-casecmp-tests (Files): Likewise.
4320         * modules/unicase/u16-casecoll-tests (Files): Likewise.
4321         * modules/unicase/u16-casefold-tests (Files): Likewise.
4322         * modules/unicase/u16-is-cased-tests (Files): Likewise.
4323         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
4324         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
4325         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
4326         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
4327         * modules/unicase/u16-tolower-tests (Files): Likewise.
4328         * modules/unicase/u16-totitle-tests (Files): Likewise.
4329         * modules/unicase/u16-toupper-tests (Files): Likewise.
4330         * modules/unicase/u32-casecmp-tests (Files): Likewise.
4331         * modules/unicase/u32-casecoll-tests (Files): Likewise.
4332         * modules/unicase/u32-casefold-tests (Files): Likewise.
4333         * modules/unicase/u32-is-cased-tests (Files): Likewise.
4334         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
4335         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
4336         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
4337         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
4338         * modules/unicase/u32-tolower-tests (Files): Likewise.
4339         * modules/unicase/u32-totitle-tests (Files): Likewise.
4340         * modules/unicase/u32-toupper-tests (Files): Likewise.
4341         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
4342         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
4343         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
4344         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
4345         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
4346         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
4347         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
4348         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
4349         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
4350         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
4351         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
4352         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
4353         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
4354         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
4355         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
4356         * modules/unictype/bidicategory-name-tests (Files): Likewise.
4357         * modules/unictype/bidicategory-of-tests (Files): Likewise.
4358         * modules/unictype/bidicategory-test-tests (Files): Likewise.
4359         * modules/unictype/block-list-tests (Files): Likewise.
4360         * modules/unictype/block-of-tests (Files): Likewise.
4361         * modules/unictype/block-test-tests (Files): Likewise.
4362         * modules/unictype/category-C-tests (Files): Likewise.
4363         * modules/unictype/category-Cc-tests (Files): Likewise.
4364         * modules/unictype/category-Cf-tests (Files): Likewise.
4365         * modules/unictype/category-Cn-tests (Files): Likewise.
4366         * modules/unictype/category-Co-tests (Files): Likewise.
4367         * modules/unictype/category-Cs-tests (Files): Likewise.
4368         * modules/unictype/category-L-tests (Files): Likewise.
4369         * modules/unictype/category-Ll-tests (Files): Likewise.
4370         * modules/unictype/category-Lm-tests (Files): Likewise.
4371         * modules/unictype/category-Lo-tests (Files): Likewise.
4372         * modules/unictype/category-Lt-tests (Files): Likewise.
4373         * modules/unictype/category-Lu-tests (Files): Likewise.
4374         * modules/unictype/category-M-tests (Files): Likewise.
4375         * modules/unictype/category-Mc-tests (Files): Likewise.
4376         * modules/unictype/category-Me-tests (Files): Likewise.
4377         * modules/unictype/category-Mn-tests (Files): Likewise.
4378         * modules/unictype/category-N-tests (Files): Likewise.
4379         * modules/unictype/category-Nd-tests (Files): Likewise.
4380         * modules/unictype/category-Nl-tests (Files): Likewise.
4381         * modules/unictype/category-No-tests (Files): Likewise.
4382         * modules/unictype/category-P-tests (Files): Likewise.
4383         * modules/unictype/category-Pc-tests (Files): Likewise.
4384         * modules/unictype/category-Pd-tests (Files): Likewise.
4385         * modules/unictype/category-Pe-tests (Files): Likewise.
4386         * modules/unictype/category-Pf-tests (Files): Likewise.
4387         * modules/unictype/category-Pi-tests (Files): Likewise.
4388         * modules/unictype/category-Po-tests (Files): Likewise.
4389         * modules/unictype/category-Ps-tests (Files): Likewise.
4390         * modules/unictype/category-S-tests (Files): Likewise.
4391         * modules/unictype/category-Sc-tests (Files): Likewise.
4392         * modules/unictype/category-Sk-tests (Files): Likewise.
4393         * modules/unictype/category-Sm-tests (Files): Likewise.
4394         * modules/unictype/category-So-tests (Files): Likewise.
4395         * modules/unictype/category-Z-tests (Files): Likewise.
4396         * modules/unictype/category-Zl-tests (Files): Likewise.
4397         * modules/unictype/category-Zp-tests (Files): Likewise.
4398         * modules/unictype/category-Zs-tests (Files): Likewise.
4399         * modules/unictype/category-and-not-tests (Files): Likewise.
4400         * modules/unictype/category-and-tests (Files): Likewise.
4401         * modules/unictype/category-byname-tests (Files): Likewise.
4402         * modules/unictype/category-name-tests (Files): Likewise.
4403         * modules/unictype/category-none-tests (Files): Likewise.
4404         * modules/unictype/category-of-tests (Files): Likewise.
4405         * modules/unictype/category-or-tests (Files): Likewise.
4406         * modules/unictype/category-test-withtable-tests (Files): Likewise.
4407         * modules/unictype/combining-class-tests (Files): Likewise.
4408         * modules/unictype/ctype-alnum-tests (Files): Likewise.
4409         * modules/unictype/ctype-alpha-tests (Files): Likewise.
4410         * modules/unictype/ctype-blank-tests (Files): Likewise.
4411         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
4412         * modules/unictype/ctype-digit-tests (Files): Likewise.
4413         * modules/unictype/ctype-graph-tests (Files): Likewise.
4414         * modules/unictype/ctype-lower-tests (Files): Likewise.
4415         * modules/unictype/ctype-print-tests (Files): Likewise.
4416         * modules/unictype/ctype-punct-tests (Files): Likewise.
4417         * modules/unictype/ctype-space-tests (Files): Likewise.
4418         * modules/unictype/ctype-upper-tests (Files): Likewise.
4419         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
4420         * modules/unictype/decimal-digit-tests (Files): Likewise.
4421         * modules/unictype/digit-tests (Files): Likewise.
4422         * modules/unictype/mirror-tests (Files): Likewise.
4423         * modules/unictype/numeric-tests (Files): Likewise.
4424         * modules/unictype/property-alphabetic-tests (Files): Likewise.
4425         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
4426         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
4427         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
4428         Likewise.
4429         * modules/unictype/property-bidi-block-separator-tests (Files):
4430         Likewise.
4431         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
4432         Likewise.
4433         * modules/unictype/property-bidi-common-separator-tests (Files):
4434         Likewise.
4435         * modules/unictype/property-bidi-control-tests (Files): Likewise.
4436         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
4437         Likewise.
4438         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
4439         Likewise.
4440         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
4441         Likewise.
4442         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
4443         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
4444         Likewise.
4445         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
4446         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4447         Likewise.
4448         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4449         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4450         * modules/unictype/property-bidi-segment-separator-tests (Files):
4451         Likewise.
4452         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4453         * modules/unictype/property-byname-tests (Files): Likewise.
4454         * modules/unictype/property-combining-tests (Files): Likewise.
4455         * modules/unictype/property-composite-tests (Files): Likewise.
4456         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4457         * modules/unictype/property-dash-tests (Files): Likewise.
4458         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4459         * modules/unictype/property-default-ignorable-code-point-tests (Files):
4460         Likewise.
4461         * modules/unictype/property-deprecated-tests (Files): Likewise.
4462         * modules/unictype/property-diacritic-tests (Files): Likewise.
4463         * modules/unictype/property-extender-tests (Files): Likewise.
4464         * modules/unictype/property-format-control-tests (Files): Likewise.
4465         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4466         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4467         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4468         * modules/unictype/property-hex-digit-tests (Files): Likewise.
4469         * modules/unictype/property-hyphen-tests (Files): Likewise.
4470         * modules/unictype/property-id-continue-tests (Files): Likewise.
4471         * modules/unictype/property-id-start-tests (Files): Likewise.
4472         * modules/unictype/property-ideographic-tests (Files): Likewise.
4473         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4474         * modules/unictype/property-ids-trinary-operator-tests (Files):
4475         Likewise.
4476         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4477         * modules/unictype/property-iso-control-tests (Files): Likewise.
4478         * modules/unictype/property-join-control-tests (Files): Likewise.
4479         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4480         * modules/unictype/property-line-separator-tests (Files): Likewise.
4481         * modules/unictype/property-logical-order-exception-tests (Files):
4482         Likewise.
4483         * modules/unictype/property-lowercase-tests (Files): Likewise.
4484         * modules/unictype/property-math-tests (Files): Likewise.
4485         * modules/unictype/property-non-break-tests (Files): Likewise.
4486         * modules/unictype/property-not-a-character-tests (Files): Likewise.
4487         * modules/unictype/property-numeric-tests (Files): Likewise.
4488         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4489         * modules/unictype/property-other-default-ignorable-code-point-tests
4490         (Files): Likewise.
4491         * modules/unictype/property-other-grapheme-extend-tests (Files):
4492         Likewise.
4493         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4494         * modules/unictype/property-other-id-start-tests (Files): Likewise.
4495         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4496         * modules/unictype/property-other-math-tests (Files): Likewise.
4497         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4498         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4499         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4500         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4501         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4502         * modules/unictype/property-private-use-tests (Files): Likewise.
4503         * modules/unictype/property-punctuation-tests (Files): Likewise.
4504         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4505         * modules/unictype/property-radical-tests (Files): Likewise.
4506         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4507         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4508         * modules/unictype/property-space-tests (Files): Likewise.
4509         * modules/unictype/property-terminal-punctuation-tests (Files):
4510         Likewise.
4511         * modules/unictype/property-test-tests (Files): Likewise.
4512         * modules/unictype/property-titlecase-tests (Files): Likewise.
4513         * modules/unictype/property-unassigned-code-value-tests (Files):
4514         Likewise.
4515         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4516         * modules/unictype/property-uppercase-tests (Files): Likewise.
4517         * modules/unictype/property-variation-selector-tests (Files): Likewise.
4518         * modules/unictype/property-white-space-tests (Files): Likewise.
4519         * modules/unictype/property-xid-continue-tests (Files): Likewise.
4520         * modules/unictype/property-xid-start-tests (Files): Likewise.
4521         * modules/unictype/property-zero-width-tests (Files): Likewise.
4522         * modules/unictype/scripts-tests (Files): Likewise.
4523         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4524         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4525         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4526         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4527         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4528         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4529         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4530         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4531         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4532         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4533         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4534         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4535         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4536         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4537         * modules/uninorm/composition-tests (Files): Likewise.
4538         * modules/uninorm/decomposing-form-tests (Files): Likewise.
4539         * modules/uninorm/decomposition-tests (Files): Likewise.
4540         * modules/uninorm/filter-tests (Files): Likewise.
4541         * modules/uninorm/nfc-tests (Files): Likewise.
4542         * modules/uninorm/nfd-tests (Files): Likewise.
4543         * modules/uninorm/nfkc-tests (Files): Likewise.
4544         * modules/uninorm/nfkd-tests (Files): Likewise.
4545         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4546         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4547         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4548         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4549         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4550         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4551         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4552         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4553         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4554         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4555         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4556         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4557         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4558         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4559         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4560         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4561         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4562         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4563         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4564         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4565         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4566         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4567         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4568         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4569         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4570         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4571         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4572         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4573         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4574         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4575         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4576         * modules/uniwidth/u8-width-tests (Files): Likewise.
4577         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4578         * modules/uniwidth/u16-width-tests (Files): Likewise.
4579         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4580         * modules/uniwidth/u32-width-tests (Files): Likewise.
4581         * modules/uniwidth/width-tests (Files): Likewise.
4582         * modules/unlink-tests (Files): Likewise.
4583         * modules/unsetenv-tests (Files): Likewise.
4584         * modules/usleep-tests (Files): Likewise.
4585         * modules/utimens-tests (Files): Likewise.
4586         * modules/utimensat-tests (Files): Likewise.
4587         * modules/vasnprintf-posix-tests (Files): Likewise.
4588         * modules/vasnprintf-tests (Files): Likewise.
4589         * modules/vasprintf-posix-tests (Files): Likewise.
4590         * modules/vasprintf-tests (Files): Likewise.
4591         * modules/vdprintf-posix-tests (Files): Likewise.
4592         * modules/vfprintf-posix-tests (Files): Likewise.
4593         * modules/vprintf-posix-tests (Files): Likewise.
4594         * modules/vsnprintf-posix-tests (Files): Likewise.
4595         * modules/vsnprintf-tests (Files): Likewise.
4596         * modules/vsprintf-posix-tests (Files): Likewise.
4597         * modules/wcrtomb-tests (Files): Likewise.
4598         * modules/wcsnrtombs-tests (Files): Likewise.
4599         * modules/wcsrtombs-tests (Files): Likewise.
4600         * modules/wctype-tests (Files): Likewise.
4601         * modules/wcwidth-tests (Files): Likewise.
4602         * modules/xmemdup0-tests (Files): Likewise.
4603         * modules/xprintf-posix-tests (Files): Likewise.
4604         * modules/xvasprintf-tests (Files): Likewise.
4605
4606 2009-12-24  Eric Blake  <ebb9@byu.net>
4607
4608         test-nanosleep: fix typo
4609         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4610         patch.
4611         Reported by Bruno Haible.
4612
4613 2009-12-24  Bruno Haible  <bruno@clisp.org>
4614
4615         Reduce namespace pollution on glibc systems.
4616         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4617         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4618         systems.
4619         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4620         <getopt.h> on glibc systems.
4621         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4622         systems.
4623         * lib/fcntl.c: Include <unistd.h> here instead.
4624
4625 2009-12-24  Bruno Haible  <bruno@clisp.org>
4626
4627         * lib/stdlib.in.h (includes): Fix typo in today's commit.
4628
4629 2009-12-24  Eric Blake  <ebb9@byu.net>
4630
4631         tests: add signature checks
4632         * tests/signature.h (SIGNATURE_CHECK): New file.
4633         * modules/atexit-tests (Files): Use it.
4634         * modules/btowc-tests (Files): Likewise.
4635         * modules/canonicalize-lgpl-tests (Files): Likewise.
4636         * modules/ceilf-tests (Files): Likewise.
4637         * modules/ceill-tests (Files): Likewise.
4638         * modules/chown-tests (Files): Likewise.
4639         * modules/dprintf-posix-tests (Files): Likewise.
4640         * modules/dup2-tests (Files): Likewise.
4641         * modules/dup3-tests (Files): Likewise.
4642         * modules/duplocale-tests (Files): Likewise.
4643         * modules/fchdir-tests (Files): Likewise.
4644         * modules/fcntl-tests (Files): Likewise.
4645         * modules/fdopendir-tests (Files): Likewise.
4646         * modules/fflush-tests (Files): Likewise.
4647         * modules/flock-tests (Files): Likewise.
4648         * modules/floorf-tests (Files): Likewise.
4649         * modules/floorl-tests (Files): Likewise.
4650         * modules/fnmatch-tests (Files): Likewise.
4651         * modules/fopen-tests (Files): Likewise.
4652         * modules/fprintf-posix-tests (Files): Likewise.
4653         * modules/freopen-tests (Files): Likewise.
4654         * modules/frexp-nolibm-tests (Files): Likewise.
4655         * modules/frexp-tests (Files): Likewise.
4656         * modules/frexpl-nolibm-tests (Files): Likewise.
4657         * modules/frexpl-tests (Files): Likewise.
4658         * modules/fseek-tests (Files): Likewise.
4659         * modules/fseeko-tests (Files): Likewise.
4660         * modules/fsync-tests (Files): Likewise.
4661         * modules/ftell-tests (Files): Likewise.
4662         * modules/ftello-tests (Files): Likewise.
4663         * modules/futimens-tests (Files): Likewise.
4664         * modules/getaddrinfo-tests (Files): Likewise.
4665         * modules/getcwd-tests (Files): Likewise.
4666         * modules/getdelim-tests (Files): Likewise.
4667         * modules/getdtablesize-tests (Files): Likewise.
4668         * modules/getgroups-tests (Files): Likewise.
4669         * modules/gethostname-tests (Files): Likewise.
4670         * modules/getline-tests (Files): Likewise.
4671         * modules/getopt-posix-tests (Files): Likewise.
4672         * modules/gettimeofday-tests (Files): Likewise.
4673         * modules/glob-tests (Files): Likewise.
4674         * modules/iconv-tests (Files): Likewise.
4675         * modules/inet_ntop-tests (Files): Likewise.
4676         * modules/inet_pton-tests (Files): Likewise.
4677         * modules/isblank-tests (Files): Likewise.
4678         * modules/lchown-tests (Files): Likewise.
4679         * modules/ldexpl-tests (Files): Likewise.
4680         * modules/link-tests (Files): Likewise.
4681         * modules/linkat-tests (Files): Likewise.
4682         * modules/lseek-tests (Files): Likewise.
4683         * modules/lstat-tests (Files): Likewise.
4684         * modules/mbrtowc-tests (Files): Likewise.
4685         * modules/mbsinit-tests (Files): Likewise.
4686         * modules/mbsnrtowcs-tests (Files): Likewise.
4687         * modules/mbsrtowcs-tests (Files): Likewise.
4688         * modules/memchr-tests (Files): Likewise.
4689         * modules/memcmp-tests (Files): Likewise.
4690         * modules/memmem-tests (Files): Likewise.
4691         * modules/memrchr-tests (Files): Likewise.
4692         * modules/mkdir-tests (Files): Likewise.
4693         * modules/mkfifo-tests (Files): Likewise.
4694         * modules/mkfifoat-tests (Files): Likewise.
4695         * modules/mknod-tests (Files): Likewise.
4696         * modules/nanosleep-tests (Files): Likewise.
4697         * modules/nl_langinfo-tests (Files): Likewise.
4698         * modules/obstack-printf-tests (Files): Likewise.
4699         * modules/open-tests (Files): Likewise.
4700         * modules/openat-tests (Files): Likewise.
4701         * modules/perror-tests (Files): Likewise.
4702         * modules/pipe2-tests (Files): Likewise.
4703         * modules/poll-tests (Files): Likewise.
4704         * modules/popen-tests (Files): Likewise.
4705         * modules/posix_spawn-tests (Files): Likewise.
4706         * modules/posix_spawnp-tests (Files): Likewise.
4707         * modules/pread-tests (Files): Likewise.
4708         * modules/printf-posix-tests (Files): Likewise.
4709         * modules/pty-tests (Files): Likewise.
4710         * modules/random_r-tests (Files): Likewise.
4711         * modules/rawmemchr-tests (Files): Likewise.
4712         * modules/readlink-tests (Files): Likewise.
4713         * modules/remove-tests (Files): Likewise.
4714         * modules/rename-tests (Files): Likewise.
4715         * modules/renameat-tests (Files): Likewise.
4716         * modules/rmdir-tests (Files): Likewise.
4717         * modules/round-tests (Files): Likewise.
4718         * modules/roundf-tests (Files): Likewise.
4719         * modules/roundl-tests (Files): Likewise.
4720         * modules/select-tests (Files): Likewise.
4721         * modules/setenv-tests (Files): Likewise.
4722         * modules/sigaction-tests (Files): Likewise.
4723         * modules/sleep-tests (Files): Likewise.
4724         * modules/snprintf-posix-tests (Files): Likewise.
4725         * modules/snprintf-tests (Files): Likewise.
4726         * modules/sprintf-posix-tests (Files): Likewise.
4727         * modules/stat-tests (Files): Likewise.
4728         * modules/strcasestr-tests (Files): Likewise.
4729         * modules/strchrnul-tests (Files): Likewise.
4730         * modules/strerror-tests (Files): Likewise.
4731         * modules/strsignal-tests (Files): Likewise.
4732         * modules/strstr-tests (Files): Likewise.
4733         * modules/strtod-tests (Files): Likewise.
4734         * modules/strverscmp-tests (Files): Likewise.
4735         * modules/symlink-tests (Files): Likewise.
4736         * modules/symlinkat-tests (Files): Likewise.
4737         * modules/times-tests (Files): Likewise.
4738         * modules/trunc-tests (Files): Likewise.
4739         * modules/truncf-tests (Files): Likewise.
4740         * modules/truncl-tests (Files): Likewise.
4741         * modules/tsearch-tests (Files): Likewise.
4742         * modules/uname-tests (Files): Likewise.
4743         * modules/unlink-tests (Files): Likewise.
4744         * modules/unsetenv-tests (Files): Likewise.
4745         * modules/usleep-tests (Files): Likewise.
4746         * modules/utimensat-tests (Files): Likewise.
4747         * modules/vasprintf-tests (Files): Likewise.
4748         * modules/vdprintf-posix-tests (Files): Likewise.
4749         * modules/vfprintf-posix-tests (Files): Likewise.
4750         * modules/vprintf-posix-tests (Files): Likewise.
4751         * modules/vsnprintf-posix-tests (Files): Likewise.
4752         * modules/vsnprintf-tests (Files): Likewise.
4753         * modules/vsprintf-posix-tests (Files): Likewise.
4754         * modules/wcrtomb-tests (Files): Likewise.
4755         * modules/wcsnrtombs-tests (Files): Likewise.
4756         * modules/wcsrtombs-tests (Files): Likewise.
4757         * modules/wcwidth-tests (Files): Likewise.
4758         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4759         * tests/test-isinf.c (isinf): Likewise.
4760         * tests/test-isnan.c (isnan): Likewise.
4761         * tests/test-signbit.c (signbit): Likewise.
4762         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4763         declaration, either as macro or with correct signature.
4764         (select): Ensure function under test is declared with correct
4765         signature in correct header.
4766         * tests/test-atexit.c (atexit): Likewise.
4767         * tests/test-btowc.c (btowc): Likewise.
4768         * tests/test-canonicalize-lgpl.c (realpath)
4769         (canonicalize_file_name): Likewise.
4770         * tests/test-ceilf1.c (ceilf): Likewise.
4771         * tests/test-ceill.c (ceill): Likewise.
4772         * tests/test-chown.c (chown): Likewise.
4773         * tests/test-dprintf-posix.c (dprintf): Likewise.
4774         * tests/test-dup2.c (dup2): Likewise.
4775         * tests/test-dup3.c (dup3): Likewise.
4776         * tests/test-duplocale.c (duplocale): Likewise.
4777         * tests/test-fchdir.c (fchdir): Likewise.
4778         * tests/test-fchownat.c (fchownat): Likewise.
4779         * tests/test-fcntl.c (fcntl): Likewise.
4780         * tests/test-fdopendir.c (fdopendir): Likewise.
4781         * tests/test-fflush.c (fflush): Likewise.
4782         * tests/test-flock.c (flock): Likewise.
4783         * tests/test-floorf1.c (floorf): Likewise.
4784         * tests/test-floorl.c (floorl): Likewise.
4785         * tests/test-fnmatch.c (fnmatch): Likewise.
4786         * tests/test-fopen.c (fopen): Likewise.
4787         * tests/test-fprintf-posix.c (fprintf): Likewise.
4788         * tests/test-freopen.c (freopen): Likewise.
4789         * tests/test-frexp.c (frexp): Likewise.
4790         * tests/test-frexpl.c (frexpl): Likewise.
4791         * tests/test-fseek.c (fseek): Likewise.
4792         * tests/test-fseeko.c (fseeko): Likewise.
4793         * tests/test-fstatat.c (fstatat): Likewise.
4794         * tests/test-fsync.c (fsync): Likewise.
4795         * tests/test-ftell.c (ftell): Likewise.
4796         * tests/test-ftello.c (ftello): Likewise.
4797         * tests/test-futimens.c (futimens): Likewise.
4798         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4799         (gai_strerror): Likewise.
4800         * tests/test-getcwd.c (getcwd): Likewise.
4801         * tests/test-getdelim.c (getdelim): Likewise.
4802         * tests/test-getdtablesize.c (getdtablesize): Likewise.
4803         * tests/test-getgroups.c (getgroups): Likewise.
4804         * tests/test-gethostname.c (gethostname): Likewise.
4805         * tests/test-getline.c (getline): Likewise.
4806         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4807         Likewise.
4808         * tests/test-gettimeofday.c (gettimeofday): Likewise.
4809         * tests/test-glob.c (glob, globfree): Likewise.
4810         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4811         * tests/test-inet_ntop.c (inet_ntop): Likewise.
4812         * tests/test-inet_pton.c (inet_pton): Likewise.
4813         * tests/test-isblank.c (isblank): Likewise.
4814         * tests/test-lchown.c (lchown): Likewise.
4815         * tests/test-ldexpl.c (ldexpl): Likewise.
4816         * tests/test-link.c (link): Likewise.
4817         * tests/test-linkat.c (linkat): Likewise.
4818         * tests/test-lseek.c (lseek): Likewise.
4819         * tests/test-lstat.c (lstat): Likewise.
4820         * tests/test-mbrtowc.c (mbrtowc): Likewise.
4821         * tests/test-mbsinit.c (mbsinit): Likewise.
4822         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4823         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4824         * tests/test-memchr.c (memchr): Likewise.
4825         * tests/test-memcmp.c (memcmp): Likewise.
4826         * tests/test-memmem.c (memmem): Likewise.
4827         * tests/test-memrchr.c (memrchr): Likewise.
4828         * tests/test-mkdir.c (mkdir): Likewise.
4829         * tests/test-mkdirat.c (mkdirat): Likewise.
4830         * tests/test-mkfifo.c (mkfifo): Likewise.
4831         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4832         * tests/test-mknod.c (mknod): Likewise.
4833         * tests/test-nanosleep.c (nanosleep): Likewise.
4834         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4835         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4836         Likewise.
4837         * tests/test-open.c (open): Likewise.
4838         * tests/test-openat.c (openat): Likewise.
4839         * tests/test-perror.c (perror): Likewise.
4840         * tests/test-pipe2.c (pipe2): Likewise.
4841         * tests/test-poll.c (poll): Likewise.
4842         * tests/test-popen.c (popen, pclose): Likewise.
4843         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4844         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4845         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4846         (posix_spawn_file_actions_destroy)
4847         (posix_spawn_file_actions_addclose)
4848         (posix_spawn_file_actions_addopen)
4849         (posix_spawn_file_actions_adddup2): Likewise.
4850         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4851         * tests/test-pread.c (pread): Likewise.
4852         * tests/test-printf-posix.c (printf): Likewise.
4853         * tests/test-pty.c (openpty, forkpty): Likewise.
4854         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4855         (random_r): Likewise.
4856         * tests/test-rawmemchr.c (rawmemchr): Likewise.
4857         * tests/test-readlink.c (readlink): Likewise.
4858         * tests/test-remove.c (remove): Likewise.
4859         * tests/test-rename.c (rename): Likewise.
4860         * tests/test-renameat.c (renameat): Likewise.
4861         * tests/test-rmdir.c (rmdir): Likewise.
4862         * tests/test-round1.c (round): Likewise.
4863         * tests/test-roundf1.c (roundf): Likewise.
4864         * tests/test-roundl.c (roundl): Likewise.
4865         * tests/test-setenv.c (setenv): Likewise.
4866         * tests/test-sigaction.c (sigaction): Likewise.
4867         * tests/test-sleep.c (sleep): Likewise.
4868         * tests/test-snprintf.c (snprintf): Likewise.
4869         * tests/test-sprintf-posix.c (sprintf): Likewise.
4870         * tests/test-stat.c (stat): Likewise.
4871         * tests/test-stpncpy.c (stpncpy): Likewise.
4872         * tests/test-strcasestr.c (strcasestr): Likewise.
4873         * tests/test-strchrnul.c (strchrnul): Likewise.
4874         * tests/test-strerror.c (strerror): Likewise.
4875         * tests/test-strsignal.c (strsignal): Likewise.
4876         * tests/test-strstr.c (strstr): Likewise.
4877         * tests/test-strtod.c (strtod): Likewise.
4878         * tests/test-strverscmp.c (strverscmp): Likewise.
4879         * tests/test-symlink.c (symlink): Likewise.
4880         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4881         * tests/test-times.c (times): Likewise.
4882         * tests/test-trunc1.c (trunc): Likewise.
4883         * tests/test-truncf1.c (truncf): Likewise.
4884         * tests/test-truncl.c (truncl): Likewise.
4885         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4886         Likewise.
4887         * tests/test-uname.c (uname): Likewise.
4888         * tests/test-unlink.c (unlink): Likewise.
4889         * tests/test-unlinkat.c (unlinkat): Likewise.
4890         * tests/test-unsetenv.c (unsetenv): Likewise.
4891         * tests/test-usleep.c (usleep): Likewise.
4892         * tests/test-utimensat.c (utimensat): Likewise.
4893         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4894         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4895         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4896         * tests/test-vprintf-posix.c (vprintf): Likewise.
4897         * tests/test-vsnprintf.c (vsnprintf): Likewise.
4898         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4899         * tests/test-wcrtomb.c (wcrtomb): Likewise.
4900         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4901         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4902         * tests/test-wcwidth.c (wcwidth): Likewise.
4903
4904         build: pull in conditional headers during GNULIB_POSIXCHECK
4905         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4906         definitions from any conditionally-included headers.
4907         * lib/stdlib.in.h (includes): Likewise.
4908         * lib/unistd.in.h (includes): Likewise.
4909
4910 2009-12-24  Bruno Haible  <bruno@clisp.org>
4911
4912         * tests/test-argv-iter.c: Include header file being tested immediately
4913         after config.h.
4914         * tests/test-base64.c: Likewise.
4915         * tests/test-flock.c: Likewise.
4916         * tests/test-fsync.c: Likewise.
4917         * tests/test-getdate.c: Likewise.
4918         * tests/test-getndelim2.c: Likewise.
4919         * tests/test-isfinite.c: Likewise.
4920         * tests/test-isinf.c: Likewise.
4921         * tests/test-strerror.c: Likewise.
4922         * tests/test-strsignal.c: Likewise.
4923
4924 2009-12-23  Eric Blake  <ebb9@byu.net>
4925
4926         unistd: work around cygwin bug
4927         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4928         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4929         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4930
4931 2009-12-23  Bruno Haible  <bruno@clisp.org>
4932
4933         localename: More tests.
4934         * tests/test-localename.c (SIZEOF): New macro.
4935         (categories): New variable.
4936         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4937         test_locale_name_default): Add test w.r.t. thread locale.
4938         (test_locale_name_thread): New function.
4939         (main): Invoke it.
4940
4941         localename: Make aware of thread locale.
4942         * lib/localename.h (gl_locale_name_thread): New declaration.
4943         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4944         behaviour with respect to thread locale.
4945         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4946         <langinfo.h>, glthread/lock.h.
4947         (SIZE_BITS): New macro.
4948         (string_hash): New function.
4949         (struct hash_node): New type.
4950         (HASH_TABLE_SIZE): New macro.
4951         (struniq_hash_table, struniq_lock): New variables.
4952         (struniq): New function.
4953         (gl_locale_name_thread): New function.
4954         (gl_locale_name): Invoke it.
4955         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4956         * modules/localename (Depends-on): Add lock.
4957         Reported by Mike Gran <spk121@yahoo.com>.
4958
4959 2009-12-23  Eric Blake  <ebb9@byu.net>
4960
4961         va-args: new module
4962         * modules/va-args: New file.
4963         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4964         * MODULES.html.sh (Core language properties): Mention it.
4965
4966         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4967         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4968         named alias for __attribute__((__unused__)).
4969         * lib/chown.c: Update client.
4970         * lib/fchmodat.c: Likewise.
4971         * lib/fts.c: Likewise.
4972         * lib/getdate.y: Likewise.
4973         * lib/getgroups.c: Likewise.
4974         * lib/getopt.c: Likewise.
4975         * lib/getugroups.c: Likewise.
4976         * lib/mkdir.c: Likewise.
4977         * lib/mkfifo.c: Likewise.
4978         * lib/mkfifoat.c: Likewise.
4979         * lib/mknod.c: Likewise.
4980         * lib/mknodat.c: Likewise.
4981         * lib/readlink.c: Likewise.
4982         * lib/se-context.in.h: Likewise.
4983         * lib/se-selinux.in.h: Likewise.
4984         * lib/sockets.c: Likewise.
4985         * lib/symlink.c: Likewise.
4986         * lib/symlinkat.c: Likewise.
4987         * lib/unicodeio.c: Likewise.
4988         * lib/unistr.h: Likewise.
4989         * tests/test-areadlink.c: Likewise.
4990         * tests/test-areadlinkat.c: Likewise.
4991         * tests/test-filenamecat.c: Likewise.
4992         * tests/test-fseeko.c: Likewise.
4993         * tests/test-ftello.c: Likewise.
4994         * tests/test-getdate.c: Likewise.
4995         * tests/test-getgroups.c: Likewise.
4996         * tests/test-gethostname.c: Likewise.
4997         * tests/test-quotearg.c: Likewise.
4998         * tests/test-version-etc.c: Likewise.
4999         * tests/test-xalloc-die.c: Likewise.
5000         * tests/test-xfprintf-posix.c: Likewise.
5001         * tests/test-xprintf-posix.c: Likewise.
5002         * tests/test-xvasprintf.c: Likewise.
5003
5004         tests: avoid compiler warnings
5005         * tests/test-fcntl.c (main): Delete unused parameters.
5006         * tests/test-freopen-safer.c (main): Likewise.
5007         * tests/test-xalloc-die.c (main): Mark unused parameters.
5008         * tests/test-fseeko.c (main): Likewise.
5009         * tests/test-ftello.c (main): Likewise.
5010         * tests/test-nanosleep.c (main): Avoid declaration warning.
5011         * tests/test-sleep.c (main): Likewise.
5012         * tests/test-unsetenv.c (main): Silence warning about string
5013         literal.
5014         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
5015
5016 2009-12-23  Bruno Haible  <bruno@clisp.org>
5017
5018         * tests/test-localename.c (test_locale_name): New function, extracted
5019         from main. Also test mixed situations.
5020         (test_locale_name_posix, test_locale_name_environ,
5021         test_locale_name_default): New functions.
5022         (main): Invoke them all.
5023         * modules/localename-tests (configure.ac): Test for newlocale.
5024
5025 2009-12-23  Bruno Haible  <bruno@clisp.org>
5026
5027         unistd: Ensure getcwd gets declared before being overridden.
5028         * lib/unistd.in.h: Conditionally include <io.h>.
5029
5030 2009-12-22  Bruno Haible  <bruno@clisp.org>
5031
5032         wchar: Diagnose broken combination of glibc and gcc versions and flags.
5033         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
5034         (gl_WCHAR_H): Invoke it.
5035         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
5036         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
5037         Reported by Karl Berry <karl@freefriends.org>.
5038
5039 2009-12-22  Eric Blake  <ebb9@byu.net>
5040
5041         math, unistd: avoid redundant includes
5042         * lib/math.in.h (isnan): No need to re-include <math.h>.
5043         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
5044
5045         getsubopt: work around cygwin bug
5046         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
5047         avoid conflicting with system getsubopt.
5048         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
5049         bug.
5050
5051         getopt: synchronize from glibc
5052         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
5053         parameter order.  Adjust all callers.
5054         (_getopt_internal_r, main): Adjust quoting in error messages.
5055         Drop considerations for outdated POSIX 1003.2 error message.
5056         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
5057         callers.
5058         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
5059
5060         test-getopt: test stderr behavior
5061         * modules/getopt-posix-tests (Depends-on): Add dup2.
5062         * tests/test-getopt.c (ASSERT): Avoid stderr.
5063         (main): Move stderr to a temporary file.
5064         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
5065         Instead, add parameter to inform caller if output occurred.
5066         (test_getopt): Adjust all existing tests to expect silence, and
5067         add new tests of leading ":".
5068         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5069         glibc shortcomings with leading "-:" or "+:" in optstring.
5070         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5071         Likewise.
5072         * doc/posix-functions/getopt.texi (getopt): Likewise.
5073
5074         test-getopt: enhance test
5075         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
5076         supports optind=0.
5077         * tests/test-getopt.c (OPTIND_MIN): Move...
5078         * tests/test-getopt.h (OPTIND_MIN): ...here.
5079         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
5080         Require that optind=0 works, since modern BSD supports it in
5081         addition to optreset, and since coreutils expects it.
5082         (test_getopt_long_only): New test.
5083         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
5084         glibc shortcomings with 'W;', and enforcement of optind=0.
5085         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5086         Likewise.
5087
5088 2009-12-21  Bruno Haible  <bruno@clisp.org>
5089
5090         localename: Improvements for MacOS X and Cygwin.
5091         * lib/localename.h (gl_locale_name_environ): New declaration.
5092         * lib/localename.c (gl_locale_name_environ): New function, extracted from
5093         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
5094         (gl_locale_name_posix): Invoke it.
5095         (gl_locale_name_default): Add comments. Use Windows native API also on
5096         Cygwin.
5097
5098 2009-12-21  Bruno Haible  <bruno@clisp.org>
5099
5100         Update list of Win32 locale ids.
5101         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
5102         (LANG_SAMI): Renamed from LANG_SAAMI.
5103         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
5104         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
5105         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
5106         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
5107         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
5108         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
5109         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
5110         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
5111         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
5112         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
5113         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
5114         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
5115         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
5116         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
5117         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
5118         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
5119         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
5120         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
5121         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
5122         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
5123         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
5124         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
5125         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
5126         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
5127         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
5128         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
5129         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
5130         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
5131         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
5132         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
5133         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
5134         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
5135         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
5136         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
5137         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
5138         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
5139         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
5140         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
5141         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
5142         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
5143         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
5144         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
5145         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
5146         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
5147         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
5148         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
5149         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
5150         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
5151         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
5152         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
5153         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
5154         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
5155         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
5156         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
5157         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
5158         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
5159         Add more languages and countries for Sami, Sorbian. Add more countries
5160         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
5161         for Pashto. Change country for Syriac, Tswana.
5162
5163 2009-12-21  Eric Blake  <ebb9@byu.net>
5164
5165         test-utimens: avoid spurious failure
5166         * tests/test-chown.h (nap): Factor...
5167         * tests/nap.h: ...into new file.
5168         * tests/test-lchown.h (nap): Avoid duplication.
5169         * tests/test-utimens-common.h (nap): Use shared implementation,
5170         necessary on file systems with 1-second resolution.
5171         * modules/chown-tests (Files): Include new file.
5172         * modules/fdutimensat-tests (Files): Likewise.
5173         * modules/futimens-tests (Files): Likewise.
5174         * modules/lchown-tests (Files): Likewise.
5175         * modules/openat-tests (Files): Likewise.
5176         * modules/utimens-tests (Files): Likewise.
5177         * modules/utimensat-tests (Files): Likewise.
5178
5179 2009-12-19  Eric Blake  <ebb9@byu.net>
5180
5181         futimens, utimensat: work around Linux bug
5182         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
5183         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5184         * lib/utimensat.c (rpl_utimensat): Work around it.
5185         * lib/futimens.c (rpl_futimens): Adjust comment.
5186
5187         utimens: work around Linux ctime bug
5188         * lib/utimens.c (detect_ctime_bug): New helper function.
5189         (update_timespec): Differentiate between workaround needed for
5190         this bug vs. what is needed for systems that lack utimensat.
5191         (fdutimens, lutimens): Work around bug.
5192
5193         utimens: check for ctime update
5194         * tests/test-utimens-common.h (check_ctime): Define.
5195         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
5196         * tests/test-futimens.h (test_futimens): Likewise.
5197         * tests/test-lutimens.h (test_lutimens): Likewise.
5198         * doc/posix-functions/futimens.texi (futimens): Document the bug.
5199         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5200
5201 2009-12-19  Bruno Haible  <bruno@clisp.org>
5202
5203         dprintf-posix: Check against memory leak fixed on 2009-12-15.
5204         * tests/test-dprintf-posix2.sh: New file.
5205         * tests/test-dprintf-posix2.c: New file.
5206         * modules/dprintf-posix-tests (Files): Add them.
5207         (configure.ac): Check for getrlimit and setrlimit.
5208         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5209
5210 2009-12-19  Bruno Haible  <bruno@clisp.org>
5211
5212         fprintf-posix: Check against memory leak fixed on 2009-12-15.
5213         * tests/test-fprintf-posix3.sh: New file.
5214         * tests/test-fprintf-posix3.c: New file.
5215         * modules/fprintf-posix-tests (Files): Add them.
5216         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
5217
5218 2009-12-19  Eric Blake  <ebb9@byu.net>
5219
5220         dirfd: fix prototype
5221         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
5222         * lib/dirfd.c (dirfd): Likewise.
5223
5224         canonicalize: reduce memory usage
5225         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
5226         allocation to size.
5227         Reported by Solar Designer <solar@openwall.com>.
5228
5229 2009-12-19  Bruno Haible  <bruno@clisp.org>
5230
5231         New module attribute 'Applicability'.
5232         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
5233         * gnulib-tool: New option --extract-applicability.
5234         (func_usage): Document it.
5235         (sed_extract_prog): Recognize it.
5236         (func_get_applicability): New function.
5237         (func_import): Generalize handling of 'link-warning' module.
5238         * modules/link-warning (Applicability): New section.
5239         * modules/arg-nonnull (Applicability): New section.
5240         Repoted by Simon Josefsson <simon@josefsson.org>.
5241
5242 2009-12-19  Bruno Haible  <bruno@clisp.org>
5243
5244         fflush: tweak
5245         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
5246         * lib/fseeko.c (rpl_fseeko): Likewise.
5247
5248 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
5249
5250         * lib/gl_list.h: Fix typo in comment.
5251
5252 2009-12-16  Eric Blake  <ebb9@byu.net>
5253
5254         fcntl: use to simplify other modules
5255         * modules/cloexec (Depends-on): Add fcntl.
5256         * modules/fchdir (Depends-on): Likewise.
5257         * modules/fd-safer-flag (Depends-on): Likewise.
5258         * modules/unistd-safer (Depends-on): Likewise.
5259         * modules/dup3 (configure.ac): Set module indicator.
5260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
5261         missing.
5262         * lib/fchdir.c (_gl_register_dup): Fix comment.
5263         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
5264         * lib/dup-safer.c (dup_safer): Likewise.
5265         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
5266         * lib/dup3.c (dup3): Likewise.
5267         * tests/test-fchdir.c (main): Enhance test.
5268         Fixes a dup_cloexec bug reported by Ondřej Vašík.
5269
5270         fcntl: port portions of fcntl to mingw
5271         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
5272         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
5273         replacement for mingw.
5274         * modules/fcntl (Description): Update.
5275         (Depends-on): Add dup2.
5276         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
5277         * modules/fcntl-h (Makefile.am): Substitute it.
5278         * lib/fcntl.in.h (fcntl): Update declaration.
5279         (F_DUPFD, F_GETFD): New macros, when needed.
5280         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5281         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
5282         * tests/test-fcntl.c (check_flags, main): Enhance test for items
5283         we now guarantee.
5284
5285         fcntl: work around cygwin bug in F_DUPFD
5286         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
5287         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
5288         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
5289         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
5290         * doc/posix-functions/fcntl.texi (fcntl): Document it.
5291
5292         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
5293         * modules/fcntl (Files): List new files.
5294         (configure.ac): Run a test.
5295         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
5296         * lib/fcntl.c (rpl_fcntl): Likewise.
5297         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
5298         (gl_FCNTL_H): Always replace fcntl.h.
5299         * modules/fcntl-h (Makefile.am): Substitute witnesses.
5300         * lib/fcntl.in.h (fcntl): Declare replacement.
5301         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
5302         needed, plus a witness.
5303         * doc/posix-functions/fcntl.texi (fcntl): Document this.
5304         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5305         * tests/test-fcntl.c: New file.
5306         * modules/fcntl-tests: Likewise.
5307
5308         binary-io: avoid potential compilation warning
5309         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
5310         directives.
5311
5312         fflush: avoid compilation error on NetBSD
5313         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
5314         between off_t and fpos_t, since the latter is sometimes a struct.
5315         * lib/fseeko.c (rpl_fseeko): Likewise.
5316         Reported by Alexander Nasonov <alnsn@yandex.ru>.
5317
5318 2009-12-15  Eric Blake  <ebb9@byu.net>
5319
5320         fcntl-h, stdio, sys_ioctl: fix declarations
5321         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
5322         function must not take arguments.
5323         * lib/sys_ioctl.in.h (ioctl): Likewise.
5324         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
5325         (open): Add a link warning.
5326
5327 2009-12-15  Jim Meyering  <meyering@redhat.com>
5328
5329         areadlink, areadlink-with-size: relax license to LGPLv2+
5330         * modules/areadlink (License): Relax to LGPLv2+.
5331         * modules/areadlink-with-size (License): Likewise.
5332
5333 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
5334             Bruno Haible  <bruno@clisp.org>
5335
5336         *printf: Fix memory leak.
5337         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
5338         * lib/vfprintf.c (vfprintf): Likewise.
5339         * lib/dprintf.c (dprintf): Likewise.
5340         * lib/vdprintf.c (vdprintf): Likewise.
5341
5342 2009-12-14  Eric Blake  <ebb9@byu.net>
5343
5344         accept4: adjust module dependencies
5345         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
5346
5347         utimens: one more try at avoiding compiler warning
5348         * lib/utimens.c (lutimens): Lower scope of result.
5349
5350 2009-12-13  Bruno Haible  <bruno@clisp.org>
5351
5352         Move the malloc checking from module 'list' to new module 'xlist'.
5353         * modules/xlist: New file.
5354         * lib/gl_xlist.h: New file.
5355         * lib/gl_xlist.c: New file.
5356         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
5357         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
5358         gl_list_add_last, gl_list_add_before, gl_list_add_after,
5359         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
5360         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
5361         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
5362         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
5363         gl_sortedlist_nx_add): New declarations.
5364         (struct gl_list_implementation): Rename and change methods accordingly.
5365         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
5366         (gl_list_nx_create): Renamed from gl_list_create.
5367         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5368         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5369         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5370         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5371         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5372         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5373         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5374         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5375         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
5376         gl_list_create_empty.
5377         (gl_list_nx_create): Renamed from gl_list_create.
5378         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
5379         (gl_list_nx_set_at): Renamed from gl_list_set_at.
5380         (gl_list_nx_add_first): Renamed from gl_list_add_first.
5381         (gl_list_nx_add_last): Renamed from gl_list_add_last.
5382         (gl_list_nx_add_before): Renamed from gl_list_add_before.
5383         (gl_list_nx_add_after): Renamed from gl_list_add_after.
5384         (gl_list_nx_add_at): Renamed from gl_list_add_at.
5385         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
5386         * lib/gl_array_list.c: Don't include xalloc.h.
5387         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
5388         NULL upon out-of-memory.
5389         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
5390         out-of-memory.
5391         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
5392         Change return type to 'int'.
5393         (gl_array_nx_set_at): Renamed from gl_array_set_at.
5394         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5395         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
5396         upon out-of-memory.
5397         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
5398         upon out-of-memory.
5399         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
5400         upon out-of-memory.
5401         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
5402         upon out-of-memory.
5403         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
5404         out-of-memory.
5405         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
5406         Update.
5407         (gl_array_list_implementation): Update.
5408         * lib/gl_carray_list.c: Don't include xalloc.h.
5409         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
5410         Return NULL upon out-of-memory.
5411         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
5412         out-of-memory.
5413         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
5414         Change return type to 'int'.
5415         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
5416         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
5417         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
5418         upon out-of-memory.
5419         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
5420         upon out-of-memory.
5421         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
5422         out-of-memory.
5423         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
5424         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
5425         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
5426         Update.
5427         (gl_carray_list_implementation): Update.
5428         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
5429         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
5430         gl_linked_create_empty. Return NULL upon out-of-memory.
5431         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
5432         out-of-memory.
5433         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
5434         Change return type to 'int'. Return -1 upon out-of-memory.
5435         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
5436         out-of-memory.
5437         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
5438         upon out-of-memory.
5439         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
5440         upon out-of-memory.
5441         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
5442         NULL upon out-of-memory.
5443         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
5444         upon out-of-memory.
5445         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
5446         out-of-memory.
5447         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5448         Update.
5449         * lib/gl_linked_list.c: Don't include xalloc.h.
5450         (gl_linked_list_implementation): Update.
5451         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5452         (add_to_bucket): Change return type to 'int'.
5453         (gl_linkedhash_list_implementation): Update.
5454         * lib/gl_anytree_list1.h (free_subtree): New function.
5455         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5456         gl_tree_create_empty. Return NULL upon out-of-memory.
5457         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5458         Change return type to 'int'. Return -1 upon out-of-memory.
5459         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5460         out-of-memory.
5461         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5462         (gl_tree_remove_node): New function, moved here from
5463         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5464         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5465         Update.
5466         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5467         malloc, not xmalloc. Return NULL upon out-of-memory.
5468         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5469         out-of-memory.
5470         (gl_tree_remove_node_from_tree): New function, extracted from
5471         gl_tree_remove_node.
5472         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5473         upon out-of-memory.
5474         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5475         out-of-memory.
5476         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5477         upon out-of-memory.
5478         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5479         upon out-of-memory.
5480         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5481         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5482         not xmalloc. Return NULL upon out-of-memory.
5483         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5484         out-of-memory.
5485         (gl_tree_remove_node_from_tree): New function, extracted from
5486         gl_tree_remove_node.
5487         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5488         upon out-of-memory.
5489         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5490         out-of-memory.
5491         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5492         upon out-of-memory.
5493         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5494         upon out-of-memory.
5495         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5496         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5497         gl_anytree_list1.h before gl_anyavltree_list2.h.
5498         (gl_avltree_list_implementation): Update.
5499         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5500         gl_anytree_list1.h before gl_anyavltree_list2.h.
5501         (gl_rbtree_list_implementation): Update.
5502         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5503         Change return type to 'int'. Return -1 upon out-of-memory. Use
5504         __builtin_expect.
5505         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5506         (gl_avltreehash_list_implementation): Update.
5507         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5508         (gl_rbtreehash_list_implementation): Update.
5509         * modules/array-list (Depends-on): Remove xalloc.
5510         * modules/carray-list (Depends-on): Likewise.
5511         * modules/linked-list (Depends-on): Likewise.
5512         * modules/linkedhash-list (Depends-on): Likewise.
5513         * modules/avltree-list (Depends-on): Likewise.
5514         * modules/rbtree-list (Depends-on): Likewise.
5515         * modules/avltreehash-list (Depends-on): Likewise.
5516         * modules/rbtreehash-list (Depends-on): Likewise.
5517
5518         * modules/xsublist: New file.
5519         * lib/gl_xsublist.h: New file.
5520         * lib/gl_xsublist.c: New file.
5521         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5522         (gl_sublist_nx_create): New declaration.
5523         * lib/gl_sublist.c: Don't include xalloc.h.
5524         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5525         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5526         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5527         Change return type to 'int'. Return -1 upon out-of-memory.
5528         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5529         upon out-of-memory.
5530         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5531         NULL upon out-of-memory.
5532         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5533         upon out-of-memory.
5534         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5535         NULL upon out-of-memory.
5536         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5537         NULL upon out-of-memory.
5538         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5539         upon out-of-memory.
5540         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5541         (gl_sublist_list_implementation): Update.
5542         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5543         upon out-of-memory.
5544         * modules/sublist (Depends-on): Remove xalloc.
5545
5546         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5547         * tests/test-carray_list.c: Likewise.
5548         * tests/test-linked_list.c: Likewise.
5549         * tests/test-linkedhash_list.c: Likewise.
5550         * tests/test-avltree_list.c: Likewise.
5551         * tests/test-rbtree_list.c: Likewise.
5552         * tests/test-avltreehash_list.c: Likewise.
5553         * tests/test-rbtreehash_list.c: Likewise.
5554         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5555         * modules/carray-list-tests (Makefile.am): Likewise.
5556         * modules/linked-list-tests (Makefile.am): Likewise.
5557         * modules/linkedhash-list-tests (Makefile.am): Likewise.
5558         * modules/avltree-list-tests (Makefile.am): Likewise.
5559         * modules/rbtree-list-tests (Makefile.am): Likewise.
5560         * modules/avltreehash-list-tests (Makefile.am): Likewise.
5561         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5562
5563         * NEWS: Mention the changes.
5564
5565         * lib/clean-temp.c: Include gl_xlist.h.
5566         * modules/clean-temp (Depends-on): Add xlist.
5567
5568         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5569         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5570
5571         * tests/test-array_oset.c: Include gl_xlist.h.
5572         * modules/array-oset-tests (Depends-on): Add xlist.
5573
5574         Reported by José E. Marchesi <jemarch@gnu.org>.
5575
5576 2009-12-13  Bruno Haible  <bruno@clisp.org>
5577
5578         Move the malloc checking from module 'oset' to new module 'xoset'.
5579         * modules/xoset: New file.
5580         * lib/gl_xoset.h: New file.
5581         * lib/gl_xoset.c: New file.
5582         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5583         declarations.
5584         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5585         (struct gl_oset_implementation): Rename and change methods accordingly.
5586         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5587         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5588         'int'. Mark as __warn_unused_result__.
5589         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5590         gl_oset_create_empty.
5591         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5592         'int'.
5593         * lib/gl_array_oset.c: Don't include xalloc.h.
5594         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5595         malloc, not xmalloc.
5596         (grow): Change return type to 'int'. Don't call xalloc_die.
5597         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5598         to 'int'.
5599         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5600         'int'.
5601         (gl_array_oset_implementation): Update.
5602         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5603         gl_tree_create_empty.
5604         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5605         'int'.
5606         * lib/gl_avltree_oset.c: Don't include xalloc.h.
5607         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5608         xmalloc.
5609         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5610         not xmalloc.
5611         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5612         xmalloc.
5613         (gl_avltree_oset_implementation): Update.
5614         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5615         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5616         xmalloc.
5617         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5618         not xmalloc.
5619         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5620         xmalloc.
5621         (gl_rbtree_oset_implementation): Update.
5622         * modules/array-oset (Depends-on): Remove xalloc.
5623         * modules/avltree-oset (Depends-on): Likewise.
5624         * modules/rbtree-oset (Depends-on): Likewise.
5625         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5626         * tests/test-avltree_oset.c: Likewise.
5627         * tests/test-rbtree_oset.c: Likewise.
5628         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5629         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5630         * modules/rbtree-oset-tests (Makefile.am): Likewise.
5631         * NEWS: Mention the change.
5632
5633 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
5634
5635         maint.mk: allow a project to override release-prep commands
5636         * top/maint.mk (alpha, beta, stable): Move release-preparatory
5637         commands into a new rule.
5638         (release-prep): New rule.
5639         (release-prep-hook): New overridable variable.
5640
5641 2009-12-13  Bruno Haible  <bruno@clisp.org>
5642
5643         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5644
5645 2009-12-13  Jim Meyering  <meyering@redhat.com>
5646
5647         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5648         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5649
5650 2009-12-12  Bruno Haible  <bruno@clisp.org>
5651
5652         duplocale: Tweak.
5653         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5654
5655 2009-12-12  Karl Berry  <karl@gnu.org>
5656
5657         * config/srclist.txt (strtoll.c): tab changes, no more sync.
5658
5659 2009-12-12  Bruno Haible  <bruno@clisp.org>
5660
5661         * m4/po.m4: Undo incorrect untabification.
5662
5663 2009-12-12  Bruno Haible  <bruno@clisp.org>
5664
5665         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5666         * modules/c-strtod (Depends-on): Add locale.
5667         * modules/c-strtold (Depends-on): Likewise.
5668
5669 2009-12-12  Bruno Haible  <bruno@clisp.org>
5670
5671         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5672
5673 2009-12-11  Eric Blake  <ebb9@byu.net>
5674
5675         setenv: relax requirement in light of POSIX ruling
5676         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5677         not NULL.
5678         * tests/test-setenv.c (main): Relax test.
5679         * tests/test-unsetenv.c (main): Likewise.
5680         * doc/posix-functions/setenv.texi (setenv): Document this.
5681         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5682
5683 2009-12-11  Bruno Haible  <bruno@clisp.org>
5684
5685         New module 'fd-safer-flag'.
5686         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5687         * lib/dup-safer.c (dup_safer_flag): Remove function.
5688         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5689         * lib/fd-safer.c (fd_safer_flag): Remove function.
5690         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5691         * modules/cloexec (configure.ac): Drop indicator macro.
5692         * modules/fd-safer-flag: New file.
5693         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5694         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5695         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5696
5697 2009-12-11  Bruno Haible  <bruno@clisp.org>
5698
5699         Tests for module 'nl_langinfo'.
5700         * modules/nl_langinfo-tests: New file.
5701         * tests/test-nl_langinfo.sh: New file.
5702         * tests/test-nl_langinfo.c: New file.
5703
5704         New module 'nl_langinfo'.
5705         * lib/nl_langinfo.c: New file.
5706         * m4/nl_langinfo.m4: New file.
5707         * modules/nl_langinfo: New file.
5708         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5709
5710 2009-12-11  Bruno Haible  <bruno@clisp.org>
5711
5712         Tests for module 'langinfo'.
5713         * modules/langinfo-tests: New file.
5714         * tests/test-langinfo.c: New file.
5715
5716         New module 'langinfo'.
5717         * lib/langinfo.in.h: New file.
5718         * m4/langinfo_h.m4: New file.
5719         * modules/langinfo: New file.
5720         * doc/posix-headers/langinfo.texi: Mention the new module.
5721
5722 2009-12-11  Bruno Haible  <bruno@clisp.org>
5723
5724         * lib/config.charset: Untabify.
5725
5726 2009-12-11  Bruno Haible  <bruno@clisp.org>
5727
5728         * modules/unistd-safer (configure.ac): Drop indicator macro.
5729
5730 2009-12-11  Bruno Haible  <bruno@clisp.org>
5731
5732         Move pipe2-safer code to its own file.
5733         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5734         * lib/pipe-safer.c (pipe2_safer): Remove function.
5735         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5736         (Makefile.am): Add it to lib_SOURCES.
5737
5738 2009-12-10  Bruno Haible  <bruno@clisp.org>
5739
5740         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5741
5742 2009-12-10  Bruno Haible  <bruno@clisp.org>
5743
5744         Declare which arguments expect non-NULL values, for GCC and clang.
5745         * build-aux/arg-nonnull.h: New file.
5746         * modules/arg-nonnull: New file.
5747         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5748         (inet_ntop, inet_pton): Use it.
5749         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5750         (closedir, dirfd, opendir, scandir, alphasort): Use it.
5751         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5752         (open, openat): Use it.
5753         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5754         (fnmatch): Use it.
5755         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5756         (getopt, getopt_long, getopt_long_only): Use it.
5757         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5758         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5759         Use it.
5760         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5761         (iconv_open): Use it.
5762         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5763         (strtoimax, strtoumax): Use it.
5764         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5765         (duplocale): Use it.
5766         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5767         (frexp, frexpl): Use it.
5768         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5769         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5770         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5771         (tsearch, tfind, tdelete, twalk): Use it.
5772         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5773         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5774         sigpending): Use it.
5775         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5776         (posix_spawn, posix_spawnp, posix_spawnattr_init,
5777         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5778         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5779         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5780         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5781         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5782         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5783         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5784         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5785         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5786         Use it.
5787         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5788         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5789         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5790         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5791         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5792         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5793         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5794         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5795         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5796         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5797         strtoull, unsetenv): Use it.
5798         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5799         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5800         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5801         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5802         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5803         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5804         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5805         (strcasecmp, strncasecmp): Use it.
5806         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5807         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5808         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5809         rpl_setsockopt): Use it.
5810         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5811         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5812         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5813         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5814         (gettimeofday): Use it.
5815         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5816         (times): Use it.
5817         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5818         (uname): Use it.
5819         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5820         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5821         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5822         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5823         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5824         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5825         unlinkat, write): Use it.
5826         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5827         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5828         * lib/argv-iter.h: Include arg-nonnull.h.
5829         (_ATTRIBUTE_NONNULL_): Remove macro.
5830         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5831         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5832         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5833         optimization.
5834         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5835         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5836         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5837         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5838         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5839         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5840         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5841         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5842         * modules/arpa_inet (Depends-on): Add arg-nonnull.
5843         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5844         * modules/dirent (Depends-on): Add arg-nonnull.
5845         (Makefile.am): Insert arg-nonnull.h into dirent.h.
5846         * modules/fcntl-h (Depends-on): Add arg-nonnull.
5847         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5848         * modules/fnmatch (Depends-on): Add arg-nonnull.
5849         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5850         * modules/getopt-posix (Depends-on): Add arg-nonnull.
5851         (Makefile.am): Insert arg-nonnull.h into getopt.h.
5852         * modules/glob (Depends-on): Add arg-nonnull.
5853         (Makefile.am): Insert arg-nonnull.h into glob.h.
5854         * modules/iconv_open (Depends-on): Add arg-nonnull.
5855         (Makefile.am): Insert arg-nonnull.h into iconv.h.
5856         * modules/inttypes (Depends-on): Add arg-nonnull.
5857         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5858         * modules/locale (Depends-on): Add arg-nonnull.
5859         (Makefile.am): Insert arg-nonnull.h into locale.h.
5860         * modules/math (Depends-on): Add arg-nonnull.
5861         (Makefile.am): Insert arg-nonnull.h into math.h.
5862         * modules/netdb (Depends-on): Add arg-nonnull.
5863         (Makefile.am): Insert arg-nonnull.h into netdb.h.
5864         * modules/search (Depends-on): Add arg-nonnull.
5865         (Makefile.am): Insert arg-nonnull.h into search.h.
5866         * modules/signal (Depends-on): Add arg-nonnull.
5867         (Makefile.am): Insert arg-nonnull.h into signal.h.
5868         * modules/spawn (Depends-on): Add arg-nonnull.
5869         (Makefile.am): Insert arg-nonnull.h into spawn.h.
5870         * modules/stdio (Depends-on): Add arg-nonnull.
5871         (Makefile.am): Insert arg-nonnull.h into stdio.h.
5872         * modules/stdlib (Depends-on): Add arg-nonnull.
5873         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5874         * modules/string (Depends-on): Add arg-nonnull.
5875         (Makefile.am): Insert arg-nonnull.h into string.h.
5876         * modules/strings (Depends-on): Add arg-nonnull.
5877         (Makefile.am): Insert arg-nonnull.h into strings.h.
5878         * modules/sys_socket (Depends-on): Add arg-nonnull.
5879         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5880         * modules/sys_stat (Depends-on): Add arg-nonnull.
5881         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5882         * modules/sys_time (Depends-on): Add arg-nonnull.
5883         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5884         * modules/sys_times (Depends-on): Add arg-nonnull.
5885         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5886         * modules/sys_utsname (Depends-on): Add arg-nonnull.
5887         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5888         * modules/time (Depends-on): Add arg-nonnull.
5889         (Makefile.am): Insert arg-nonnull.h into time.h.
5890         * modules/unistd (Depends-on): Add arg-nonnull.
5891         (Makefile.am): Insert arg-nonnull.h into unistd.h.
5892         * modules/wchar (Depends-on): Add arg-nonnull.
5893         (Makefile.am): Insert arg-nonnull.h into wchar.h.
5894         * modules/argv-iter (Depends-on): Add arg-nonnull.
5895         * tests/test-canonicalize.c (null_ptr): New function.
5896         (main): Use it.
5897         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5898         (main): Use it.
5899         * tests/test-memmem.c (null_ptr): New function.
5900         (main): Use it.
5901         Reported by Jim Meyering.
5902
5903 2009-12-10  Bruno Haible  <bruno@clisp.org>
5904
5905         Use spaces for indentation, not tabs.
5906         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5907         * m4/*.m4: Untabify.
5908         * build-aux/*.h: Untabify.
5909         * tests/**/*.[hc]: Untabify.
5910         * README: New section "Indent with spaces, not TABs", based on
5911         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5912         * NEWS: Mention the change.
5913
5914 2009-12-10  Bruno Haible  <bruno@clisp.org>
5915
5916         pty test: Fix link error.
5917         * modules/pty-tests (Makefile.am): Add the default LDADD value to
5918         test_pty_LDADD.
5919
5920 2009-12-07  Simon Josefsson  <simon@josefsson.org>
5921
5922         * modules/pty: New file.
5923         * modules/pty-tests: New file.
5924         * m4/pty.m4: New file.
5925         * tests/test-pty.c: New file.
5926         * doc/glibc-headers/pty.texi: Modified.
5927         * doc/glibc-functions/forkpty.texi: Modified.
5928         * doc/glibc-functions/openpty.texi: Modified.
5929
5930 2009-12-10  Bruno Haible  <bruno@clisp.org>
5931
5932         Avoid syntax error in C++ mode.
5933         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5934
5935 2009-12-10  Bruno Haible  <bruno@clisp.org>
5936
5937         Use sed with option -e.
5938         * gnulib-tool (func_version, func_emit_copyright_notice,
5939         func_emit_initmacro_end, func_import, func_create_testdir): Pass
5940         option -e to sed.
5941         * modules/link-warning (Makefile.am): Likewise.
5942
5943 2009-12-10  Jim Meyering  <meyering@redhat.com>
5944
5945         mgetgroups: do not write bytes beyond end of malloc'd buffer
5946         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
5947         username, we call getgroups with a one-element-shorter buffer,
5948         but still told it the length was original, max_n_groups.
5949
5950 2009-12-09  Eric Blake  <ebb9@byu.net>
5951
5952         cloexec: relax license
5953         * modules/cloexec (Maintainer): Add myself.
5954         (License): Use LGPL, not GPL.
5955
5956         link-warning: optimize generation
5957         * modules/link-warning (Makefile.am): Reduce process usage.
5958
5959 2009-12-09  Bruno Haible  <bruno@clisp.org>
5960
5961         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5962         workaround was added on 2009-11-17.
5963
5964 2009-12-09  Jim Meyering  <meyering@redhat.com>
5965             Bruno Haible  <bruno@clisp.org>
5966
5967         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5968         * modules/link-warning (Makefile.am): Make the comment-removing sed
5969         command more robust in the face of bootstrap-prepended comment lines.
5970
5971 2009-12-09  Bruno Haible  <bruno@clisp.org>
5972
5973         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5974         most one group.
5975
5976 2009-12-09  Simon Josefsson <simon@josefsson.org>
5977             Bruno Haible  <bruno@clisp.org>
5978
5979         * build-aux/link-warning.h: Add copyright notice.
5980         * modules/link-warning (Makefile.am): Generate link-warning.h from
5981         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5982         * NEWS: Mention change in link-warning module.
5983         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5984         * modules/dirent (Makefile.am): Add dependency to dirent.h.
5985         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5986         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5987         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5988         * modules/math (Makefile.am): Add dependency to math.h.
5989         * modules/search (Makefile.am): Add dependency to search.h.
5990         * modules/signal (Makefile.am): Add dependency to signal.h.
5991         * modules/spawn (Makefile.am): Add dependency to spawn.h.
5992         * modules/stdio (Makefile.am): Add dependency to stdio.h.
5993         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5994         * modules/string (Makefile.am): Add dependency to string.h.
5995         * modules/strings (Makefile.am): Add dependency to strings.h.
5996         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5997         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5998         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5999         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
6000         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
6001         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
6002         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
6003         * modules/unistd (Makefile.am): Add dependency to unistd.h.
6004         * modules/wchar (Makefile.am): Add dependency to wchar.h.
6005
6006 2009-12-09  Bruno Haible  <bruno@clisp.org>
6007
6008         fchdir: Optimize away rpl_fstat when possible.
6009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
6010         REPLACE_OPEN_DIRECTORY.
6011         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
6012
6013 2009-12-09  Bruno Haible  <bruno@clisp.org>
6014
6015         * lib/fchdir.c: Update comment.
6016
6017 2009-12-09  Bruno Haible  <bruno@clisp.org>
6018
6019         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
6020
6021 2009-12-08  Eric Blake  <ebb9@byu.net>
6022
6023         fchdir: avoid memory leak on re-registration.
6024         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
6025
6026 2009-12-08  Jim Meyering  <meyering@redhat.com>
6027
6028         init.sh: avoid Solaris 10 /bin/sh portability problem
6029         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
6030         sourced script:
6031           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
6032           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
6033           bar
6034         tests/init.sh relied on that, accepting a --set-path=DIR argument,
6035         and two tests used that idiom.
6036         * tests/init.sh: Update suggested usage comments.
6037         (path_prepend_): New function, to be used in place
6038         of the --src-path=DIR option.
6039         (setup_): Move PATH-prepending code into path_prepend_.
6040         * tests/test-pread.sh: Adapt to new usage.
6041         * tests/test-xalloc-die.sh: Likewise.
6042
6043 2009-12-08  Simon Josefsson  <simon@josefsson.org>
6044
6045         * doc/gnulib.texi (Glibc pty.h): Add.
6046         * doc/glibc-functions/forkpty.texi: Add.
6047         * doc/glibc-functions/openpty.texi: Add.
6048         Suggested by Bruno Haible.
6049
6050 2009-12-08  Eric Blake  <ebb9@byu.net>
6051
6052         fchdir: fix logic bugs
6053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
6054         * tests/test-fchdir.c (main): Enhance test.
6055         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
6056         is in use.
6057
6058         dup2: fix logic bugs
6059         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
6060         REPLACE_DUP2 to decide when rpl_dup2 is needed.
6061         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
6062         exists.
6063         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
6064
6065 2009-12-07  Eric Blake  <ebb9@byu.net>
6066
6067         unlink: fix m4 detection
6068         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
6069
6070         unistd-safer: add unit test
6071         * modules/unistd-safer-tests: New file.
6072         * tests/test-dup-safer.c: Likewise.
6073         * tests/test-cloexec.c (setmode): Avoid compiler warning.
6074         * tests/test-dup2.c (setmode): Likewise.
6075         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
6076
6077         cloexec: preserve text vs. binary across dup_cloexec
6078         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
6079         mode.
6080         * modules/dup2-tests (Depends-on): Add binary-io.
6081         * modules/cloexec-tests (Depends-on): Likewise.
6082         * tests/test-dup2.c (setmode, is_mode): New helpers.
6083         (main): Add tests that translation mode is preserved.
6084         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
6085         Reported by Bruno Haible.
6086
6087         mgetgroups: reduce duplicate listings
6088         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
6089         resulting array.
6090         * tests/test-chown.h (test_chown): Simplify client.
6091         * tests/test-lchown.h (test_lchown): Likewise.
6092
6093 2009-12-06  Bruno Haible  <bruno@clisp.org>
6094
6095         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
6096         value.
6097
6098 2009-12-06  Bruno Haible  <bruno@clisp.org>
6099
6100         * lib/progname.c: Include stdio.h, stdlib.h.
6101         (set_program_name): Reject a NULL argument.
6102
6103 2009-12-05  Eric Blake  <ebb9@byu.net>
6104
6105         pipe2-safer: new module
6106         * modules/pipe2-safer: New file.
6107         * lib/unistd-safer.h (pipe2_safer): New prototype.
6108         * lib/unistd--.h (pipe2): New wrapper.
6109         * lib/pipe-safer.c (pipe2_safer): New function.
6110         * modules/pipe (Depends-on): Add pipe2-safer.
6111         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
6112
6113         stdlib-safer: preserve cloexec flag for mkostemp[s]
6114         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
6115         fd_safer_flag.
6116
6117         unistd-safer: allow preservation of cloexec status via flag
6118         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
6119         prototypes.
6120         * lib/dup-safer.c (dup_safer_flag): New function.
6121         * lib/fd-safer.c (fd_safer_flag): Likewise.
6122         * modules/cloexec (configure.ac): Set witness.
6123
6124         test-dup2: enhance test
6125         * modules/dup2-tests (Depends-on): Add cloexec.
6126         * tests/test-dup2.c (main): Enhance test.
6127
6128         cloexec: add dup_cloexec
6129         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
6130         header and comments.
6131         * lib/cloexec.c (set_cloexec_flag): Add comments.
6132         (dup_cloexec): New function, with mingw implementation borrowed
6133         from...
6134         * lib/w32spawn.h (dup_noinherit): ...here.
6135         * modules/execute (Depends-on): Add cloexec.
6136         * modules/pipe (Depends-on): Likewise.
6137         * modules/cloexec (Depends-on): Add dup2.
6138         * modules/cloexec-tests (Files): New file.
6139         * tests/test-cloexec.c: Likewise.
6140
6141         test-xalloc-die: fix test for mingw
6142         * modules/xalloc-die-tests (Files): Add tests/init.sh.
6143         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
6144         directory and .exe suffix off argv[0] output.
6145
6146         test-fseeko: fix test for mingw
6147         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
6148         than undefining fseek, so test will pass on mingw.
6149
6150 2009-12-05  Bruno Haible  <bruno@clisp.org>
6151
6152         * lib/progname.h (set_program_name): Clarify specification.
6153         * lib/progname.c (set_program_name): Likewise.
6154         Reported by Jim Meyering.
6155
6156 2009-12-05  Jim Meyering  <meyering@redhat.com>
6157
6158         maint.mk: backslash-escape parens in default regexp
6159         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
6160         backslash-escape the literal parentheses.
6161
6162         maint.mk: news-date-check: use grep -E
6163         * top/maint.mk (today): Define a Make variable, not a...
6164         (news-date-check): ...shell variable.
6165         (news-date-regexp): Use the Make variable.
6166         Use grep's -E option.  Change the failing diagnostic to mention
6167         the variable, $(news-date-regexp).
6168
6169 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
6170
6171         maintainer-makefile: allow customization of NEWS entry format
6172         * top/maint.mk (news-date-regexp): New overridable variable.
6173         (news-date-check): Use it.
6174
6175 2009-12-04  Eric Blake  <ebb9@byu.net>
6176
6177         mgetgroups: add xgetgroups, and avoid ENOSYS failures
6178         * lib/mgetgroups.h (xgetgroups): New prototype.
6179         * lib/mgetgroups.c (xgetgroups): New wrapper.
6180         (mgetgroups): Handle ENOSYS.
6181         * modules/mgetgroups (Depends-on): Add realloc.
6182         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
6183
6184         mgetgroups: avoid argument promotion issues with -1
6185         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
6186         for invalid gid_t.
6187         * tests/test-chown.h (getegid, test_chown): Likewise.
6188         * tests/test-lchown.h (getegid, test_lchown): Likewise.
6189
6190 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
6191
6192         exclude: Fix header file problems.
6193         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
6194
6195 2009-12-01  Jim Meyering  <meyering@redhat.com>
6196
6197         fts: fts_open: do not let an empty string cause immediate failure
6198         This is required in support of GNU rm, for which the command
6199         "rm A '' B" must process and remove both A and B, in spite of
6200         the empty string argument.
6201         * lib/fts.c (fts_open): Do not let the presence of an empty string
6202         cause fts_open to fail immediately.  Most fts-using tools must be
6203         able to process all arguments, in order, and can be expected to
6204         diagnose such arguments themselves.
6205
6206 2009-11-30  Eric Blake  <ebb9@byu.net>
6207
6208         utimens: fix compilation error
6209         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
6210         Declare variable at right scope.
6211
6212 2009-11-29  Jim Meyering  <meyering@redhat.com>
6213
6214         bootstrap: handle perl-5.11's changed --version output
6215         * build-aux/bootstrap (get_version): Handle perl separately,
6216         since perl-5.11's --version output is different.
6217
6218 2009-11-28  Jim Meyering  <meyering@redhat.com>
6219
6220         userspec: depend on the inttostr module, too
6221         * modules/userspec (Depends-on): Add inttostr.
6222
6223         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
6224         * lib/userspec.c (parse_with_separator): Do not accept a user ID
6225         number of MAXUID when it evaluates to (uid_t) -1.
6226         Likewise for group ID.  Reported by Matt McCutchen in
6227         <http://savannah.gnu.org/bugs/?28113>
6228
6229         userspec: reformat to use spaces, not TABs
6230         * lib/userspec.c: Expand TABs to spaces.
6231         Add Emacs' "indent-tabs-mode: nil" hint.
6232
6233 2009-11-27  Eric Blake  <ebb9@byu.net>
6234
6235         getopt-gnu: flush out another BSD bug
6236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
6237         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
6238         flush out BSD bug.
6239         * tests/test-getopt.h (test_getopt): End lists with NULL.
6240         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6241         (test_getopt_long_posix): Enhance test.
6242         * modules/getopt-posix-tests (Depends-on): Add stdbool.
6243         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
6244         getopt-gnu.
6245         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6246         Likewise.
6247
6248 2009-11-27  Simon Josefsson  <simon@josefsson.org>
6249
6250         * modules/idpriv-droptemp-tests (Notice): Fix text.
6251
6252 2009-11-27  Jim Meyering  <meyering@redhat.com>
6253
6254         test-xalloc-die: avoid spurious failure due to libtool argv difference
6255         In a libtool-enabled project, this test would fail due to a difference
6256         in the emitted program name, e.g.,
6257         -test-xalloc-die: memory exhausted
6258         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
6259         Use program to avoid that.
6260         * modules/xalloc-die-tests (Depends-on): Add progname.
6261         * tests/test-xalloc-die.c: Include progname.h".
6262         (program_name): Remove decl.
6263         (main): Call set_program_name.
6264         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
6265
6266 2009-11-26  Richard Jones  <rjones@redhat.com>
6267
6268         w32sock: leave win32 error in place.
6269         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
6270
6271 2009-11-26  Eric Blake  <ebb9@byu.net>
6272
6273         init.sh: suggest to use skip_ and fail_ functions in comments
6274         * tests/init.sh: Add a sentence.
6275
6276 2009-11-25  Bruno Haible  <bruno@clisp.org>
6277
6278         init.sh: add documentation in comments
6279         * tests/init.sh: Add some developer and user documentation.
6280
6281 2009-11-26  Jim Meyering  <meyering@redhat.com>
6282
6283         init.sh: accommodate even those who specify bogus srcdir manually
6284         * tests/init.sh: Normally, srcdir is guaranteed by automake and
6285         configure-time tests to be sanitized, so that there is no need to
6286         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
6287         (with no double quotes) suffices.  However, since tests may be
6288         invoked manually, and since you may explicitly set srcdir to the
6289         name of a directory containing spaces, do quote its uses here.
6290         * tests/test-pread.sh: Likewise.
6291         Suggested by Bruno Haible.
6292
6293         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
6294         * tests/test-pread.sh: Write no data into the pipe, because
6295         test-pread actually reads none.  This avoids a diagnostic,
6296         "bash: echo: write error: Broken pipe", that arises in the unusual
6297         event something is ignoring SIGPIPE, and might be interpreted
6298         as some sort of failure.  Reported by Bruno Haible.
6299
6300 2009-11-25  Jim Meyering  <meyering@redhat.com>
6301
6302         test-pread: cover failure with ESPIPE and EINVAL
6303         * tests/test-pread.c (main): Test for failure, too.
6304         * tests/test-pread.sh: Invoke with stdin on a pipe.
6305         Suggested by Eric Blake.
6306
6307         pread: improvement and fix
6308         * modules/pread (Depends-on): Depend on lseek, for portability to
6309         e.g., mingw.  Suggested by Eric Blake.
6310         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
6311
6312         unistd.in.h: correct declaration of pread
6313         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
6314         Reported by Richard W.M. Jones.
6315
6316         test-pread.sh: distribute the test script
6317         * modules/pread-tests (Files): Include test-pread.sh.
6318
6319         test-pread.sh: clean up
6320         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
6321         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
6322         That is unnecessary, since it's always ".".
6323         Suggestion from Eric Blake.
6324
6325         test-pread.sh: make executable
6326         * tests/test-pread.sh: Set executable bit.
6327         Reported by Eric Blake.
6328
6329         correct typo in test-pread.sh
6330         * tests/test-pread.sh: Add #! line.
6331
6332         test pread
6333         * tests/test-pread.c: New file.
6334         * tests/test-pread.sh: Likewise.
6335         * modules/pread-tests: Likewise.
6336
6337         pread: new module
6338         * modules/pread: New file.
6339         * lib/unistd.in.h (pread): Define/declare.
6340         * lib/pread.c (pread): New file.
6341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
6342         * modules/unistd (Makefile.am): Substitute witnesses.
6343         * doc/posix-functions/pread.texi (pread): Update.
6344         * MODULES.html.sh: Add pread.
6345
6346 2009-11-25  Jim Meyering  <meyering@redhat.com>
6347
6348         tests/init.sh: new file to be used via most *.sh tests
6349         * tests/init.sh: New file.
6350
6351 2009-11-25  Eric Blake  <ebb9@byu.net>
6352
6353         utimens: work around older Linux failure with symlinks
6354         * lib/utimens.c (lutimensat_works_really): New variable.
6355         (fdutimens, lutimens): Use it to manage kernels that support
6356         nanosecond times on files, but not on symlinks.
6357         Reported by Ondřej Vašík.
6358
6359         utimes: fix configure grammar
6360         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
6361
6362 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
6363
6364         regex: Fix fastmap for multibyte character ranges.
6365         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
6366         characters when a multibyte character range is included.
6367
6368 2009-11-22  Andy Wingo  <wingo@pobox.com>
6369
6370         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
6371         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
6372
6373 2009-11-24  Bruno Haible  <bruno@clisp.org>
6374
6375         doc: Most *_l functions exist in MacOS X 10.5.
6376         * doc/posix-functions/duplocale.texi: Update platforms list.
6377         * doc/posix-functions/freelocale.texi: Likewise.
6378         * doc/posix-functions/newlocale.texi: Likewise.
6379         * doc/posix-functions/uselocale.texi: Likewise.
6380         * doc/posix-functions/isalnum_l.texi: Likewise.
6381         * doc/posix-functions/isalpha_l.texi: Likewise.
6382         * doc/posix-functions/isblank_l.texi: Likewise.
6383         * doc/posix-functions/iscntrl_l.texi: Likewise.
6384         * doc/posix-functions/isdigit_l.texi: Likewise.
6385         * doc/posix-functions/isgraph_l.texi: Likewise.
6386         * doc/posix-functions/islower_l.texi: Likewise.
6387         * doc/posix-functions/isprint_l.texi: Likewise.
6388         * doc/posix-functions/ispunct_l.texi: Likewise.
6389         * doc/posix-functions/isspace_l.texi: Likewise.
6390         * doc/posix-functions/isupper_l.texi: Likewise.
6391         * doc/posix-functions/iswalnum_l.texi: Likewise.
6392         * doc/posix-functions/iswalpha_l.texi: Likewise.
6393         * doc/posix-functions/iswblank_l.texi: Likewise.
6394         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6395         * doc/posix-functions/iswctype_l.texi: Likewise.
6396         * doc/posix-functions/iswdigit_l.texi: Likewise.
6397         * doc/posix-functions/iswgraph_l.texi: Likewise.
6398         * doc/posix-functions/iswlower_l.texi: Likewise.
6399         * doc/posix-functions/iswprint_l.texi: Likewise.
6400         * doc/posix-functions/iswpunct_l.texi: Likewise.
6401         * doc/posix-functions/iswspace_l.texi: Likewise.
6402         * doc/posix-functions/iswupper_l.texi: Likewise.
6403         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6404         * doc/posix-functions/isxdigit_l.texi: Likewise.
6405         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
6406         * doc/posix-functions/strcasecmp_l.texi: Likewise.
6407         * doc/posix-functions/strcoll_l.texi: Likewise.
6408         * doc/posix-functions/strfmon_l.texi: Likewise.
6409         * doc/posix-functions/strftime_l.texi: Likewise.
6410         * doc/posix-functions/strncasecmp_l.texi: Likewise.
6411         * doc/posix-functions/strxfrm_l.texi: Likewise.
6412         * doc/posix-functions/tolower_l.texi: Likewise.
6413         * doc/posix-functions/toupper_l.texi: Likewise.
6414         * doc/posix-functions/towctrans_l.texi: Likewise.
6415         * doc/posix-functions/towlower_l.texi: Likewise.
6416         * doc/posix-functions/towupper_l.texi: Likewise.
6417         * doc/posix-functions/wcscoll_l.texi: Likewise.
6418         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6419         * doc/posix-functions/wctrans_l.texi: Likewise.
6420         * doc/posix-functions/wctype_l.texi: Likewise.
6421         * doc/glibc-functions/strptime_l.texi: Likewise.
6422         * doc/glibc-functions/strtod_l.texi: Likewise.
6423         * doc/glibc-functions/strtof_l.texi: Likewise.
6424         * doc/glibc-functions/strtol_l.texi: Likewise.
6425         * doc/glibc-functions/strtold_l.texi: Likewise.
6426         * doc/glibc-functions/strtoll_l.texi: Likewise.
6427         * doc/glibc-functions/strtoul_l.texi: Likewise.
6428         * doc/glibc-functions/strtoull_l.texi: Likewise.
6429         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6430         * doc/glibc-functions/wcstod_l.texi: Likewise.
6431         * doc/glibc-functions/wcstof_l.texi: Likewise.
6432         * doc/glibc-functions/wcstol_l.texi: Likewise.
6433         * doc/glibc-functions/wcstold_l.texi: Likewise.
6434         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6435         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6436         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6437
6438 2009-11-24  Bruno Haible  <bruno@clisp.org>
6439
6440         duplocale: Fix logic bug.
6441         * lib/duplocale.c: Don't include <langinfo.h>.
6442         (_NL_LOCALE_NAME): Remove macro.
6443         (rpl_duplocale): Use setlocale instead of nl_langinfo.
6444         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
6445
6446 2009-11-23  Jim Meyering  <meyering@redhat.com>
6447
6448         test-update-copyright: don't hard-code /usr/bin/perl
6449         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6450         perl to print the current year.  Gilles Espinasse reported that
6451         the replaced use of perl was hard-coded as /usr/bin/perl.
6452
6453 2009-11-23  Bruno Haible  <bruno@clisp.org>
6454
6455         duplocale: Add support for glibc 2.3.x.
6456         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6457
6458 2009-11-22  Bruno Haible  <bruno@clisp.org>
6459
6460         vasnprintf: Tiny optimization.
6461         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6462         MacOS X.
6463
6464 2009-11-22  Bruno Haible  <bruno@clisp.org>
6465
6466         Tests for module 'duplocale'.
6467         * modules/duplocale-tests: New file.
6468         * tests/test-duplocale.c: New file.
6469
6470         New module 'duplocale'.
6471         * m4/duplocale.m4: New file.
6472         * lib/locale.in.h (duplocale): New declaration.
6473         * lib/duplocale.c: New file.
6474         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6475         gl_LOCALE_H_DEFAULTS): New macros.
6476         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6477         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6478         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6479         REPLACE_DUPLOCALE.
6480         * modules/duplocale: New file.
6481         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6482
6483 2009-11-22  Bruno Haible  <bruno@clisp.org>
6484
6485         * modules/locale-tests (configure.ac): Test for newlocale function.
6486         * tests/test-locale.c: When the system has extended locale functions,
6487         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6488
6489         locale: Make locale_t available when possible.
6490         * lib/locale.in.h: Include <xlocale.h> when it exists.
6491         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6492         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6493         * modules/locale (Depends-on): Add extensions.
6494         (Makefile.am): Also substitute HAVE_XLOCALE_H.
6495         * doc/posix-headers/locale.texi: Document the problem with locale_t.
6496
6497 2009-11-22  Bruno Haible  <bruno@clisp.org>
6498
6499         Add comments.
6500         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6501         invocation.
6502         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6503         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6504         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6505
6506 2009-11-22  Bruno Haible  <bruno@clisp.org>
6507
6508         error: account for the possibility of freopen (stdout).
6509         * lib/error.c: Include <unistd.h>.
6510         (flush_stdout): New function, extracted from error and error_at_line.
6511         Determine stdout's fd dynamically.
6512         (error, error_at_line): Invoke flush_stdout.
6513         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6514         * modules/error (Depends-on): Add unistd.
6515
6516 2009-11-22  Bruno Haible  <bruno@clisp.org>
6517
6518         diffseq: Add comment.
6519         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6520
6521 2009-11-22  Jim Meyering  <meyering@redhat.com>
6522
6523         c-stack: avoid defining an unused static function
6524         * lib/c-stack.c (find_stack_direction): Do not define this function
6525         when it will not be used.
6526
6527         diffseq: avoid spurious gcc warnings
6528         * lib/diffseq.h (IF_LINT2): Define.
6529         (compareseq): Use it to initialize two members of "part".
6530         This avoids two used-uninitialized warnings.
6531
6532 2009-11-21  Jim Meyering  <meyering@redhat.com>
6533
6534         c-stack: avoid "ignoring return value of `write'" warning
6535         * lib/c-stack.c: Include "ignore-value.h".
6536         (die): Explicitly ignore each write return value.
6537         * modules/c-stack (Depends-on): Add ignore-value.
6538
6539 2009-11-21  Bruno Haible  <bruno@clisp.org>
6540
6541         diffseq: reduce scope of variable 'best'.
6542         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6543         variable, earlier used for two different purposes.
6544
6545 2009-11-21  Jim Meyering  <meyering@redhat.com>
6546
6547         diffseq: remove useless assignment to "best"
6548         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6549         assignment.  At that point "best" is already guaranteed to be zero.
6550
6551 2009-11-20  Eric Blake  <ebb9@byu.net>
6552
6553         build: mention ftp redirector in release announcements
6554         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6555         values that used to come from cfg.mk; mention FTP redirect URL.
6556         * build-aux/announce-gen: Mention the mirror list.
6557         Suggested by Karl Berry.
6558
6559         nanosleep: improve port to mingw
6560         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6562         LIB_NANOSLEEP, but only when needed.
6563         * modules/select (Link): Document LIBSOCKET.
6564         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6565         enough.
6566
6567         nanosleep: work around cygwin bug
6568         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6569         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
6570         bug.
6571         (getnow): Delete, not needed.
6572         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6573         LIB_CLOCK_GETTIME.
6574         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
6575         clock-time, gettime.
6576         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6577         bug.
6578         * modules/nanosleep-tests: New test.
6579         * tests/test-nanosleep.c: New file.
6580
6581         sleep: work around cygwin bug
6582         * lib/sleep.c (rpl_sleep): Work around the bug.
6583         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6584         (gl_PREREQ_SLEEP): Delete unused macro.
6585         * modules/sleep (Depends-on): Add verify.
6586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6587         * modules/unistd (Makefile.am): Substitute witness.
6588         * lib/unistd.in.h (sleep): Update prototype.
6589         * doc/posix-functions/sleep.texi (sleep): Document the bug.
6590         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6591         * modules/sleep-tests (Depends-on): Check for alarm.
6592
6593 2009-11-20  Jim Meyering  <meyering@redhat.com>
6594
6595         maint.mk: improve sc_prohibit_magic_number_exit
6596         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6597         so it does not match uses like System.exit(1).
6598         Add comments showing how to correct all offenders.
6599
6600 2009-11-19  Eric Blake  <ebb9@byu.net>
6601
6602         xalloc-die-tests: add missing library
6603         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6604
6605         test-xvasprintf: silence compiler warnings
6606         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6607         empty string from gcc.
6608
6609 2009-11-19  Jim Meyering  <meyering@redhat.com>
6610
6611         xfreopen: new module, from coreutils
6612         * modules/xfreopen: New module.
6613         * lib/xfreopen.c: New file.
6614         * lib/xfreopen.h: New file.
6615         * MODULES.html.sh (File stream based Input/Output"): Add it.
6616
6617 2009-11-19  Eric Blake  <ebb9@byu.net>
6618
6619         manywarnings: depend on warnings
6620         * modules/manywarnings (Depends-on): Add warnings.
6621
6622         build: avoid compiler warnings
6623         * lib/select.c (rpl_select): Delete unused variable.
6624         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6625
6626 2009-11-18  Eric Blake  <ebb9@byu.net>
6627
6628         tests: avoid false negative with --with-packager
6629         * tests/test-version-etc.sh: Discard packager information.
6630         * tests/test-argp-version-etc-1.sh: Likewise.
6631         Reported by Mike Frysinger.
6632
6633         utimens: fix regression on Solaris
6634         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6635         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6636         can only change fd timestamps via futimesat.  Instead, use an
6637         additional witness macro to avoid BSD bug.
6638         Reported by Jim Meyering.
6639
6640 2009-11-17  Eric Blake  <ebb9@byu.net>
6641
6642         usleep: use it to simplify tests
6643         * modules/stat-time-tests (Depends-on): Add usleep.
6644         (configure.ac): Drop usleep check.
6645         * modules/chown-tests (Depends-on, configure.ac): Likewise.
6646         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6647         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6648         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6649         * modules/openat-tests (Depends-on, configure.ac): Likewise.
6650         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6651         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6652         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6653         Likewise.
6654         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6655         * tests/test-lchown.h (nap): Likewise.
6656         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6657         * tests/test-stat-time.c (nap): Likewise.
6658         * tests/test-utimens-common.h (nap): Update comments.
6659
6660         usleep: new module
6661         * modules/usleep: New file.
6662         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6663         * lib/usleep.c (usleep): Likewise.
6664         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6665         * modules/unistd (Makefile.am): Substitute witnesses.
6666         * lib/unistd.in.h (usleep): Add declaration.
6667         * doc/pastposix-functions/usleep.texi (usleep): Document this.
6668         * MODULES.html.sh (Date and time): Likewise.
6669         * modules/usleep-tests (Depends-on): New test.
6670         * tests/test-usleep.c: New file.
6671
6672         chown: work around OpenBSD bug
6673         * lib/chown.c (rpl_chown): Work around the bug.
6674         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6675         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6676         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6677         * modules/chown (Depends-on): Add stdbool.
6678         * modules/lchown (Depends-on): Likewise.
6679         * doc/posix-functions/chown.texi (chown): Document the bug.
6680         * doc/posix-functions/lchown.texi (lchown): Likewise.
6681         * tests/test-lchown.h (test_chown): Relax test.
6682
6683         mkstemp: avoid conflict with C++ keyword template
6684         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6685         * lib/mkostemp.c (mkostemp): Likewise.
6686         * lib/mkostemps.c (mkostemps): Likewise.
6687         * lib/mkstemp.c (mkstemp): Likewise.
6688         * lib/mkstemps.c (mkstemps): Likewise.
6689
6690         xalloc-die-tests: optimize
6691         * tests/test-xalloc-die.sh: Reduce number of processes.
6692
6693 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6694
6695         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
6696         patch from ludo@gnu.org (Ludovic Courtès).
6697
6698 2009-11-17  Jim Meyering  <meyering@redhat.com>
6699
6700         version-etc: use proper license string
6701         * modules/version-etc (License): Use LGPL, not LGPLv3+.
6702         * modules/version-etc-fsf: Likewise.
6703
6704 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6705
6706         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
6707         printed to stdout.  Deal with EOL differences.
6708
6709 2009-11-17  Eric Blake  <ebb9@byu.net>
6710
6711         unsetenv: work around Solaris bug
6712         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6713         * lib/unsetenv.c (rpl_unsetenv): Work around it.
6714         Reported by Jim Meyering.
6715
6716         vasnprintf: avoid compiler warnings
6717         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6718         variables.
6719         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6720
6721 2009-11-17  Simon Josefsson  <simon@josefsson.org>
6722
6723         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6724         settings since xalloc-die is no longer the self test,
6725         xalloc-die.sh is.
6726
6727 2009-11-17  Jim Meyering  <meyering@redhat.com>
6728
6729         test-xalloc-die.sh: make the code agree with the commit log
6730         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6731         at the end, just in case you happen to have a test-xalloc-die
6732         program in some other PATH directory.
6733
6734         test-xalloc-die.sh: fix a portability bug
6735         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6736         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6737         Otherwise, argv[0] (as often seen in diagnostics) would be too
6738         system-dependent, sometimes with, and sometimes without the leading "./".
6739
6740         version-etc-fsf: relax license to LGPLv3+
6741         * modules/version-etc-fsf (License): Relax license.
6742
6743 2009-11-16  Eric Blake  <ebb9@byu.net>
6744
6745         xalloc-die-tests: avoid printing null pointer
6746         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6747         shell script.
6748         * tests/test-xalloc-die.c (program_name): Declare.
6749         * tests/test-xalloc-die.sh (tmpfiles): New file.
6750
6751         setenv, unsetenv: work around various bugs
6752         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6753         (setenv) [HAVE_SETENV]: Work around bugs.
6754         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6755         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6756         for bugs.
6757         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6758         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6759         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6760         * modules/stdlib (Makefile.am): Update substitutions.
6761         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6762         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6763         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6764         * modules/setenv-tests: New test.
6765         * modules/unsetenv-tests: Likewise.
6766         * tests/test-setenv.c: New file.
6767         * tests/test-unsetenv.c: Likewise.
6768
6769 2009-11-16  Jim Meyering  <meyering@redhat.com>
6770
6771         version-etc: relax license to LGPLv3+
6772         * modules/version-etc (License): Relax license.
6773
6774         better AC_REQUIRE expanded-before-required-warning avoidance
6775         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6776         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6777         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
6778         which is no longer needed.
6779
6780 2009-11-16  Eric Blake  <ebb9@byu.net>
6781
6782         test-freading: clean up temporary file
6783         * tests/test-freading.c (main): Remove file on success, and use
6784         ASSERT more liberally.
6785         Reported by Jim Meyering.
6786
6787 2009-11-16  Jim Meyering  <meyering@redhat.com>
6788
6789         avoid new AC_REQUIRE expanded-before-required warnings
6790         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6791         merely using it.
6792         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6793         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6794
6795 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6796
6797         * tests/test-xalloc-die.c: New file.
6798         * modules/xalloc-die-tests: New file.
6799         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6800         XFAIL_TESTS so it can be appended by modules.
6801
6802 2009-11-15  Simon Josefsson  <simon@josefsson.org>
6803
6804         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
6805         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6806
6807 2009-11-14  Eric Blake  <ebb9@byu.net>
6808
6809         fnmatch: avoid compiler warning
6810         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6811         to silence compiler warning about mismatch signedness in ?:.
6812         Reported by Robert Millan.
6813
6814         intprops: add double-inclusion guard
6815         * lib/intprops.h: Allow idempotent includes.
6816         Suggested by Bruce Korb.
6817
6818         openat: detect Solaris fchownat bug
6819         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
6820         penalizing glibc chownat when only lchownat is broken.
6821         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6822         trailing slash bugs.
6823         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6824         * modules/openat-tests (Files): Include more files.
6825         (Depends-on): Add mgetgroups, sleep, stat-time.
6826         (configure.ac): Add additional checks.
6827         (Makefile.am): Build new test.
6828         * tests/test-fchownat.c: New file.
6829
6830         lchown: detect Solaris and FreeBSD bug
6831         * lib/lchown.c (rpl_lchown): Work around bug.
6832         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6834         * modules/unistd (Makefile.am): Populate it.
6835         * lib/unistd.in.h (lchown): Update declaration.
6836         * doc/posix-functions/lchown.texi (lchown): Document the bug.
6837         * modules/lchown-tests: New file.
6838         * tests/test-lchown.h (test_lchown): Likewise.
6839         * tests/test-lchown.c (main): Likewise.
6840
6841         chown: detect Solaris and FreeBSD bug
6842         * lib/chown.c (rpl_chown): Work around bug.
6843         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6844         (gl_PREREQ_CHOWN): Delete.
6845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6846         * modules/unistd (Makefile.am): Populate it.
6847         * lib/unistd.in.h (chown): Update declaration.
6848         * lib/lchown.c (chown): Update client.
6849         * modules/lchown (Depends-on): Add lstat.
6850         * doc/posix-functions/chown.texi (chown): Document the bug.
6851         * doc/posix-functions/getgroups.texi (getgroups): Document
6852         getgroups pitfall.
6853         * modules/chown-tests: New file.
6854         * tests/test-chown.h (test_chown): Likewise.
6855         * tests/test-chown.c (main): Likewise.
6856
6857 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
6858
6859         gnulib-tool: correctly detect absence of m4 directories
6860         * gnulib-tool: Avoid extra newline on data passed to wc -l.
6861
6862 2009-11-14  Jim Meyering  <meyering@redhat.com>
6863
6864         maint.mk: Prohibit inclusion of "xalloc.h" without use.
6865         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6866
6867 2009-11-14  John W. Eaton  <jwe@gnu.org>
6868
6869         strftime.h: wrap funtion declaration in extern "C" block
6870         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6871
6872 2009-11-13  Eric Blake  <ebb9@byu.net>
6873
6874         getgroups: avoid compiler warning
6875         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6876
6877         getgroups: work around FreeBSD bug
6878         * lib/getgroups.c (rpl_getgroups): Work around the bug.
6879         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6880         * doc/posix-functions/getgroups.texi (getgroups): Document it.
6881         * tests/test-getgroups.c (main): Fix buffer overrun.
6882
6883         getgroups: avoid compilation failure
6884         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6885         * modules/getgroups (Depends-on): Add stdint.
6886
6887 2009-11-13  Jim Meyering  <meyering@redhat.com>
6888
6889         test-getgroups: avoid compilation failure
6890         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6891
6892 2009-11-13  Eric Blake  <ebb9@byu.net>
6893
6894         mgetgroups: new module, taken from coreutils
6895         * modules/mgetgroups: New file.
6896         * lib/mgetgroups.h: Likewise.
6897         * lib/mgetgroups.c (mgetgroups): Likewise.
6898         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6899         * MODULES.html.sh (Users and groups): Mention it.
6900
6901         getgroups: don't expose GETGROUPS_T to user
6902         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
6903         an element at a time if GETGROUPS_T is wrong size.
6904         * lib/getugroups.h (getugroups): Change signature.
6905         * lib/unistd.in.h (getgroups): Likewise.
6906         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6907         signature needs fixing.
6908         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6909         AC_TYPE_GETGROUPS.
6910         * modules/group-member (Depends-on): Add getgroups.
6911         * lib/group-member.c (group_info, get_group_info): Use gid_t.
6912         (group_member): Rely on getgroups replacement.
6913         * lib/getugroups.c (getugroups): Use gid_t.
6914         * tests/test-getgroups.c (main): Likewise.
6915         * NEWS: Mention the signature change.
6916         * doc/posix-functions/getgroups.texi (getgroups): Mention the
6917         problem with signature.
6918         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6919         GETGROUPS_T is still useful for setgroups.
6920
6921         getgroups, getugroups: provide stubs for mingw
6922         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6923         * lib/getugroups.c (getugroups): Likewise.
6924         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6925         function.  Modernize replacement scheme.
6926         (gl_PREREQ_GETGROUPS): Delete.
6927         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6928         * modules/getgroups (configure.ac): Declare witness.
6929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6930         * modules/unistd (Depends-on): Substitute witness.
6931         * lib/unistd.in.h (getgroups): Declare replacement.
6932
6933         getgroups: avoid calling exit
6934         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6935         drop xalloc.
6936         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6937         dependencies.
6938         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6939         exiting, in the rare case of malloc failure.
6940
6941         getgroups: fix logic error
6942         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6943         has more than 20 groups.
6944         * modules/getgroups-tests: New test.
6945         * tests/test-getgroups.c: New file.
6946
6947 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6948
6949         * tests/test-base64.c: Improve.
6950
6951 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6952
6953         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6954         Blake <ebb9@byu.net>.
6955
6956 2009-11-13  Simon Josefsson  <simon@josefsson.org>
6957
6958         * tests/test-xvasprintf.c: Add %s%s related checks.
6959
6960 2009-11-12  Eric Blake  <ebb9@byu.net>
6961
6962         version-etc: match standards.texi style
6963         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6964         and use <> only for URLs.
6965
6966 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
6967
6968         fts: do not fail on a submount during traversal
6969         * lib/fts.c (fts_build): Read the stat info again after opening
6970         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6971         Original report at http://bugzilla.redhat.com/501848.
6972
6973 2009-11-12  Jim Meyering  <meyering@redhat.com>
6974
6975         bootstrap: sync from coreutils
6976         * build-aux/bootstrap (bootstrap_epilogue): New function.
6977         Use git_modules_config in one more place.  This make bootstrap's
6978         --gnulib-srcdir option more useful for testing.
6979
6980         bootstrap: generalize autoheader check
6981         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6982         AC_CONFIG_HEADERS.
6983
6984 2009-11-11  Eric Blake  <ebb9@byu.net>
6985
6986         mkfifoat: use new modules for Solaris and BSD bugs
6987         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6988         * lib/mkfifoat.c (mknodat): Split...
6989         * lib/mknodat.c (mknodat): ...into new file.
6990         * modules/mkfifoat (Files): Ship new file.
6991         (Depends-on): Add mkfifo, mknod.
6992         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6993         (Depends-on): Add symlink.
6994         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
6995         redundant with test_mkfifo.h.
6996         (do_mkfifoat, do_mknodat): New helpers.
6997
6998         mknod: new module
6999         * modules/mknod: New file.
7000         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
7001         * lib/mknod.c (mknod): Likewise.
7002         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7003         defaults.
7004         * modules/sys_stat (Makefile.am): Substitute them.
7005         * lib/sys_stat.in.h (mknod): Declare replacement.
7006         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7007         Document it.
7008         * doc/posix-functions/mknod.texi (mknod): Likewise.
7009         * modules/mknod-tests: New test.
7010         * tests/test-mknod.c: Likewise.
7011
7012         mkfifo: new module
7013         * modules/mkfifo: New file.
7014         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
7015         * lib/mkfifo.c (mkfifo): Likewise.
7016         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
7017         defaults.
7018         * modules/sys_stat (Makefile.am): Substitute them.
7019         * lib/sys_stat.in.h (mkfifo): Declare replacement.
7020         * MODULES.html.sh (Support for systems lacking POSIX:2008):
7021         Document it.
7022         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
7023         * modules/mkfifo-tests: New test.
7024         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
7025         from test-mkfifoat.c.
7026         * tests/test-mkfifo.c: New file.
7027
7028         readlink: detect FreeBSD bug
7029         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
7030         slash on symlink.
7031         * doc/posix-functions/readlink.texi (readlink): Document the bug.
7032         * tests/test-readlink.h (test_readlink): Enhance test.
7033
7034         symlink: detect FreeBSD bug
7035         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
7036         slash on symlink.
7037         * doc/posix-functions/symlink.texi (symlink): Document the bug.
7038         * tests/test-symlink.h (test_symlink): Enhance test.
7039
7040 2009-11-10  Eric Blake  <ebb9@byu.net>
7041
7042         link: detect FreeBSD bug
7043         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
7044         symlink.
7045         * doc/posix-functions/link.texi (link): Document the bug.
7046         * tests/test-link.h (test_link): Enhance test.
7047         * tests/test-linkat.c (main): Update caller.
7048
7049         unlink, remove: detect FreeBSD bug
7050         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
7051         slash on symlink.
7052         * doc/posix-functions/unlink.texi (unlink): Document the bug.
7053         * doc/posix-functions/remove.texi (remove): Likewise.
7054         * tests/test-unlink.h (test_unlink): Enhance test.
7055         * tests/test-remove.c (main): Likewise.
7056
7057 2009-11-09  Eric Blake  <ebb9@byu.net>
7058
7059         rename: detect FreeBSD bug
7060         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
7061         slash on symlink.
7062         * modules/renameat-tests (Depends-on): Add filenamecat.
7063         * tests/test-rename.h (test_rename): Allow one more errno.
7064         * tests/test-renameat.c (main): Likewise.
7065         * doc/posix-functions/rename.texi (rename): Document the bug.
7066
7067         open: detect FreeBSD bug
7068         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
7069         symlink.
7070         * doc/posix-functions/open.texi (open): Document the bug.
7071         * doc/posix-functions/utimes.texi (utimes): Likewise.
7072         * tests/test-open.h (test_open): Add parameters, and test symlink
7073         handling.
7074         * tests/test-open.c (main): Adjust caller.
7075         * tests/test-fcntl-safer.c (main): Likewise.
7076         * modules/open-tests (Depends-on): Add stdbool, symlink.
7077         * modules/fcntl-safer-tests (Depends-on): Likewise.
7078         * tests/test-openat.c (main): Add test-open tests.
7079
7080         stat: detect FreeBSD bug
7081         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
7082         symlink.
7083         * doc/posix-functions/stat.texi (stat): Document the bug.
7084         * tests/test-stat.h (test_stat_func): Add argument.
7085         * tests/test-stat.c (main): Adjust caller.
7086         * tests/test-fstatat.c (main): Likewise.
7087         * modules/stat-tests (Depends-on): Add stdbool, symlink.
7088         Reported by Jim Meyering.
7089
7090 2009-11-09  James Youngman  <jay@gnu.org>
7091
7092         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
7093         * lib/strftime.c: Correct placement of #include "ignore-value.h".
7094
7095 2009-11-08  Jim Meyering  <meyering@redhat.com>
7096
7097         utimens: remove invalid futimesat call
7098         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
7099         It used the file descriptor of the target file as the DIR_FD
7100         parameter and NULL as the file name.  That caused failure with
7101         errno == EFAULT on FreeBSD-8.0-rc2
7102
7103 2009-11-07  Eric Blake  <ebb9@byu.net>
7104
7105         fflush, freadseek: use fseeko, not fseek
7106         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
7107         (clear_ungetc_buffer): Avoid potential problems on large files.
7108         * lib/freadseek.c (freadseek): Likewise.
7109         * modules/freadseek (Depends-on): Add fseeko.
7110         * modules/fseek (configure.ac): Set a witness.
7111         * tests/test-fflush.c (main): Use fseeko.
7112         * tests/test-fpurge.c (fseek): Disable link warning.
7113         * tests/test-freadable.c (fseek): Likewise.
7114         * tests/test-freading.c (fseek): Likewise.
7115         * tests/test-fseeko.c (fseek): Likewise.
7116         * tests/test-ftell.c (fseek): Likewise.
7117         * tests/test-ftello.c (fseek): Likewise.
7118         * tests/test-fwritable.c (fseek): Likewise.
7119         * tests/test-fwriting.c (fseek): Likewise.
7120
7121 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7122
7123         * modules/memchr (Depends-on): Drop getpagesize dependency.
7124
7125 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7126
7127         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
7128         Reported by Ludovic Courtès.
7129         * build-aux/pmccabe2html: Improve example usage.
7130         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
7131
7132 2009-11-06  Jim Meyering  <meyering@redhat.com>
7133
7134         do-release-commit-and-tag: New module.
7135         Automate the release-commit and tag process.
7136         * build-aux/do-release-commit-and-tag: New script, from coreutils.
7137         * modules/do-release-commit-and-tag: New file.
7138         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7139
7140 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7141
7142         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
7143         because test-select.c uses inet_pton.
7144
7145 2009-11-06  Simon Josefsson  <simon@josefsson.org>
7146
7147         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
7148         GETADDRINFO_LIB.  Bump serial number.
7149         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
7150         Suggested by Eric Blake <ebb9@byu.net>.
7151
7152 2009-11-05  Eric Blake  <ebb9@byu.net>
7153
7154         strtod: detect darwin bug
7155         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
7156         Reported by Leo Davis.
7157
7158         freopen-safer: new module
7159         * modules/freopen-safer: New module.
7160         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
7161         * lib/freopen-safer.c (freopen_safer): New file.
7162         * lib/stdio-safer.h (freopen_safer): New declaration.
7163         * lib/stdio--.h (freopen): New override.
7164         * MODULES.html.sh (File stream based Input/Output): Mention it.
7165         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
7166         freopen-safer module.
7167         * doc/posix-functions/stderr.texi (stderr): Likewise.
7168         * doc/posix-functions/stdin.texi (stdin): Likewise.
7169         * doc/posix-functions/stdout.texi (stdout): Likewise.
7170         * modules/freopen-safer-tests: New test.
7171         * tests/test-reopen-safer.c: New file.
7172
7173 2009-11-05  Jim Meyering  <meyering@redhat.com>
7174
7175         maint.mk: Prohibit inclusion of "close-stream.h" without use.
7176         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
7177
7178 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7179
7180         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
7181
7182 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7183
7184         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
7185
7186 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7187
7188         Fix link error.
7189         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7190         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7191
7192 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7193
7194         * tests/test-func.c: Also test value of __func__.
7195
7196 2009-11-05  Simon Josefsson  <simon@josefsson.org>
7197
7198         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
7199         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
7200
7201 2009-11-05  Bruno Haible  <bruno@clisp.org>
7202
7203         Fix link error.
7204         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
7205         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
7206         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
7207
7208 2009-11-05  Bruno Haible  <bruno@clisp.org>
7209
7210         Tests for module 'inet_pton'.
7211         * modules/inet_pton-tests: New file.
7212         * tests/test-inet_pton.c: New file.
7213
7214 2009-11-05  Bruno Haible  <bruno@clisp.org>
7215
7216         Tests for module 'inet_ntop'.
7217         * modules/inet_ntop-tests: New file.
7218         * tests/test-inet_ntop.c: New file.
7219
7220 2009-11-04  Eric Blake  <ebb9@byu.net>
7221
7222         stdlib-safer: wrap all mkstemp variants
7223         * modules/mkostemp (configure.ac): Set witness.
7224         * modules/mkostemps (configure.ac): Likewise.
7225         * modules/mkstemps (configure.ac): Likewise.
7226         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
7227         (mkstemps_safer): Wrap more functions.
7228         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
7229         wrapping.
7230         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
7231         (mkstemps_safer): Implement the wrappers.
7232
7233         mkstemps, mkostemps: new modules
7234         * modules/mkostemps: New module.
7235         * modules/mkstemps: Likewise.
7236         * lib/mkostemps.c (mkostemps): New file.
7237         * lib/mkstemps.c (mkstemps): Likewise.
7238         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
7239         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
7240         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
7241         * modules/stdlib (Makefile.am): Substitute them.
7242         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
7243         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
7244         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
7245         * doc/gnulib.texi (Glibc stdlib.h): Include them.
7246         * MODULES.html.sh (File system functions): Mention them.
7247
7248         tempname: resync from glibc
7249         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
7250         same values for __GT_FILE as glibc.  Abort even when assertions
7251         are disabled.
7252         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
7253         match its value otherwise.  Allow idempotent inclusion.
7254         * lib/mkdtemp.c (mkdtemp): Adjust caller.
7255         * lib/mkostemp.c (mkostemp): Likewise.
7256         * lib/mkstemp.c (mkstemp): Likewise.
7257         * lib/tmpfile.c (tmpfile): Likewise.
7258         * NEWS: Document this.
7259
7260         utimens: fix use of futimens on older Linux
7261         * lib/utimens.c (fdutimens): Use updated, rather than original,
7262         timespec to avoid bug in older Linux kernel.
7263         Reported by Simon Josefsson.
7264
7265 2009-11-04  Bruno Haible  <bruno@clisp.org>
7266
7267         Make num_processors more flexible and consistent.
7268         * lib/nproc.h (enum nproc_query): New type.
7269         (num_processors): Add a 'query' argument.
7270         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
7271         (num_processors): Add a 'query' argument. Test the value of the
7272         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
7273         mingw, count the number of CPUs available for the current process.
7274         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
7275         Check for sched_getaffinity and sched_getaffinity_np.
7276         * modules/nproc (Depends-on): Add c-ctype, extensions.
7277         * NEWS: Mention the change.
7278
7279 2009-11-03  Bruno Haible  <bruno@clisp.org>
7280
7281         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
7282
7283 2009-11-03  Jim Meyering  <meyering@redhat.com>
7284
7285         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
7286         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
7287         if it is defined.
7288
7289 2009-11-02  Eric Blake  <ebb9@byu.net>
7290
7291         mktime, timegm: share common declaration
7292         * lib/mktime-internal.h: New file.
7293         * lib/mktime.c: Use it rather than open-coding a declaration.
7294         * lib/timegm.c: Likewise.
7295         * modules/mktime (Files): Ship it.
7296         * modules/timegm (Files): Likewise.
7297         Suggested by Bruno Haible.
7298
7299         test-update-copyright: update test to match script changes
7300         * tests/test-update-copyright.sh: Avoid hard-coding perl
7301         location.  Don't update *.bak created by earlier runs.
7302
7303 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
7304             Simon Josefsson  <simon@josefsson.org>
7305             Bruno Haible  <bruno@clisp.org>
7306
7307         Fix link error on Solaris 8.
7308         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
7309         also in libnsl. Define also INET_PTON_LIB.
7310         * modules/inet_pton (Link): New section.
7311
7312 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7313             Bruno Haible  <bruno@clisp.org>
7314
7315         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
7316         * modules/inet_ntop (Link): New section.
7317         Reported by Boyan Kasarov <bkasarov@gmail.com>.
7318
7319 2009-11-02  Eric Blake  <ebb9@byu.net>
7320
7321         maint: avoid compiler warnings in m4 macros
7322         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
7323         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
7324
7325 2009-11-02  Simon Josefsson  <simon@josefsson.org>
7326
7327         * m4/pmccabe2html.m4: Remove file.
7328         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
7329         function.  Change maintainer.
7330         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
7331         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
7332         Courtès).
7333
7334 2009-10-31  Eric Blake  <ebb9@byu.net>
7335
7336         fseeko: fix m4 regression
7337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
7338         regression from 2009-10-27.
7339         Reported by Ralf Wildenhues.
7340
7341 2009-10-31  Jim Meyering  <meyering@redhat.com>
7342
7343         inttostr: aesthetics and improved (compile-time) safety
7344         Define inttype_is_signed rather than inttype_is_unsigned,
7345         since the sole use is via "#if inttype_is_signed".
7346         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
7347         inttype_is_unsigned.
7348         * lib/offtostr.c (inttype_is_signed): Likewise.
7349         * lib/uinttostr.c (inttype_is_signed): Likewise.
7350         * lib/umaxtostr.c (inttype_is_signed): Likewise.
7351         * lib/inttostr.c (inttostr): Use verify to cross-check the
7352         inttype_is_signed value and the signedness of the actual type.
7353         * modules/inttostr (Depends-on): Add verify.
7354
7355 2009-10-30  Eric Blake  <ebb9@byu.net>
7356
7357         build: avoid compiler warnings
7358         * lib/fchmodat.c (lchmod): Mark unused variables.
7359         * lib/getopt.c (_getopt_initialize): Likewise.
7360         * lib/mktime.c (__mktime_internal): Provide prototype.
7361         * lib/inttostr.c (inttostr): Avoid compiler warning even with
7362         older gcc that do not understand #pragma GCC diagnostic.
7363         * lib/uinttostr.c (inttype_is_unsigned): Define.
7364         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
7365
7366 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
7367
7368         stat: fix compilation on AIX
7369         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
7370         only see struct stat64.
7371
7372 2009-10-30  Eric Blake  <ebb9@byu.net>
7373
7374         exclude: make more robust
7375         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
7376         rather than masking a coding bug.
7377         Suggested by Bruno Haible.
7378
7379 2009-10-30  Jim Meyering  <meyering@redhat.com>
7380
7381         perl scripts: remove #!/usr/bin/perl in favor of more portable...
7382         Rather than putting #!/usr/bin/perl on the first line,
7383         start with a variant of what's recommended by "man perlrun" that
7384         invokes the first "perl" program from your shell's search path.
7385         * build-aux/gitlog-to-changelog: Replace #!... as above.
7386         Add a "Local Variables" perl mode setting.
7387         Prompted by a patch from Ludovic Courtès.
7388         Improved by Eric Blake.
7389         * build-aux/useless-if-before-free: Likewise.
7390         * build-aux/announce-gen: Likewise.
7391         * build-aux/update-copyright: Likewise.
7392
7393 2009-10-29  Eric Blake  <ebb9@byu.net>
7394
7395         filenamecat-lgpl: adjust clients
7396         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
7397         filenamecat.
7398         * modules/renameat (Depends-on): Likewise.
7399
7400         filenamecat: split into filenamecat-lgpl
7401         * modules/filenamecat-lgpl: New module.
7402         * modules/filenamecat (Files): Move library-safe files into
7403         filenamecat-lgpl.
7404         (Depends-on): Add filenamecat-lgpl.
7405         (configure.ac): Declare witness.
7406         * lib/filenamecat.h (file_name_concat): Only declare when using
7407         GPL module.
7408         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
7409         Move...
7410         * lib/filenamecat-lgpl.c: ...into new file.
7411         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
7412         (gl_FILE_NAME_CONCAT): Use it.
7413         * MODULES.html.sh (File system functions): Mention new module.
7414
7415         argp: avoid memory leak
7416         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
7417         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
7418         base_name, since the latter malloc()s and can call exit().
7419         Leak introduced 2006-07-03.
7420
7421         dirname-lgpl: adjust clients that don't need full dirname
7422         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
7423         * modules/filenamecat (Depends-on): Likewise.
7424         * modules/linkat (Depends-on): Likewise.
7425         * modules/mkancesdirs (Depends-on): Likewise.
7426         * modules/mkdir (Depends-on): Likewise.
7427         * modules/openat (Depends-on): Likewise.
7428         * modules/savewd (Depends-on): Likewise.
7429         * modules/rename (Depends-on): Likewise.
7430         (License): Relax license.
7431         * modules/mkdir-tests (Depends-on): Drop progname.
7432         (Makefile.am): Delete unneeded LDADD.
7433         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
7434
7435         dirname: split into dirname-lgpl
7436         * modules/dirname-lgpl: New module.
7437         * modules/dirname (Files): Move library-safe files into
7438         dirname-lgpl.
7439         (Depends-on): Add dirname-lgpl.
7440         (configure.ac): Declare witness.
7441         * modules/double-slash-root (License): Relax license.
7442         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
7443         module.
7444         * lib/dirname.c (dir_len, mdir_name): Move...
7445         * lib/dirname-lgpl.c: ...into new file.
7446         * lib/basename.c (last_component, base_len): Move...
7447         * lib/basename-lgpl.c: ...into new file.
7448         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7449         (gl_DIRNAME): Use it.
7450         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7451         Mention new module.
7452         * modules/dirname-tests (Depends-on): Add progname.
7453         * tests/test-dirname.c (program_name): Delete.
7454
7455         mkdir: make safe for libraries
7456         * modules/mkdir (Depends-on): Drop xalloc.
7457         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7458         exit.
7459
7460         tests: avoid some compiler warnings
7461         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7462         literals.
7463         * tests/test-memchr.c (main): Avoid type mismatch.
7464         * tests/test-arpa_inet.c (main): Avoid unused parameters.
7465         * tests/test-base64.c (main): Likewise.
7466         * tests/test-getdelim.c (main): Likewise.
7467         * tests/test-gethostname.c (main): Likewise.
7468         * tests/test-getline.c (main): Likewise.
7469         * tests/test-netinet_in.c (main): Likewise.
7470         * tests/test-select.c (open_server_socket, main): Likewise.
7471         * tests/test-select-stdin.c (main): Likewise.
7472         * tests/test-sockets.c (main): Likewise.
7473         * tests/test-strsignal.c (main): Likewise.
7474         * tests/test-sys_select.c (main): Likewise.
7475         * tests/test-sys_socket.c (main): Likewise.
7476         * tests/test-u64.c (main): Likewise.
7477         * tests/test-xfprintf-posix.c (main): Likewise.
7478         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7479
7480         sockets: avoid compiler warning
7481         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7482
7483         maint: detect usage(1) and other suspicious exits
7484         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7485
7486 2009-10-29  Jim Meyering  <meyering@redhat.com>
7487
7488         timespec: long-to-int truncation could make timespec_cmp malfunction
7489         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7490         a multiple of 2^32 nanoseconds as no difference.
7491
7492 2009-10-28  Jim Meyering  <meyering@redhat.com>
7493
7494         fprintftime: wrap macro code argument in "do {...} while(0)"
7495         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7496         cpy macro must be a statement that can be followed by a semicolon.
7497         Now that the else clause contains a comment and is hence longer
7498         than one line, I require curly braces.  That in turn requires
7499         that we wrap this code block in the standard do...while(0).
7500
7501         fprintftime: remove stray semicolon from previous change
7502         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7503
7504         fprintftime: avoid a warning about ignored fwrite return value
7505         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7506         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7507         that is unsafe.
7508         * modules/fprintftime (Depends-on): Add ignore-value.
7509
7510         exclude: avoid an unwarranted warning
7511         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7512
7513 2009-10-27  Eric Blake  <ebb9@byu.net>
7514
7515         fseek: avoid compilation failure when fflush is replaced
7516         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7517         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7518         module is in use.
7519         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7520         module is not in use; since REPLACE_FSEEK worked otherwise.
7521         (GNULIB_FTELLO): Likewise for ftell.
7522         Reported by Ian Beckwith and others.
7523
7524 2009-10-27  Bruno Haible  <bruno@clisp.org>
7525
7526         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7527         Reported by Jim Meyering.
7528
7529 2009-10-27  Jim Meyering  <jim@meyering.net>
7530             Bruno Haible  <bruno@clisp.org>
7531
7532         Avoid warning despite dropping the return value of fwrite.
7533         * lib/unicodeio.c: Include ignore-value.h.
7534         (fwrite_success_callback): Explicitly ignore fwrite's return value.
7535         * modules/unicodeio (Depends-on): Add ignore-value.
7536
7537 2009-10-26  Eric Blake  <ebb9@byu.net>
7538
7539         areadlinkat: fix fallback path
7540         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7541         pointer and zero.
7542
7543 2009-10-22  Pádraig Brady  <P@draigBrady.com>
7544
7545         Use a better IO block size for modern systems
7546         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7547         * lib/md2.c: Likewise.
7548         * lib/md4.c: Likewise.
7549         * lib/md5.c: Likewise.
7550         * lib/sha1.c: Likewise.
7551         * lib/sha256.c: Likewise.
7552         * lib/sha512.c: Likewise.
7553
7554 2009-10-22  Eric Blake  <ebb9@byu.net>
7555
7556         tests: avoid several compiler warnings
7557         * tests/test-getcwd.c (main): Avoid buffer underflow.
7558         * tests/test-getdate.c (main): String literals are not safe with
7559         putenv, so use setenv.  Declare unused argument.
7560         * modules/getdate-tests (Depends-on): Add setenv.
7561         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
7562         problems with string literals in char *.
7563         * tests/test-hash.c (main): Avoid shadowing declaration.
7564         (insert_new): Treat string literals as char const *.
7565         * tests/test-getopt.h (test_getopt): Likewise.
7566         (getopt_loop): Alter types to minimize casting elsewhere.
7567         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7568         (test_getopt_long_posix): Likewise.
7569         (do_getopt_long): Add wrapper to minimize casting.
7570         * tests/test-atexit.c (clear_temp_file): Use void.
7571         * tests/test-areadlink-with-size.c (main): Declare unused
7572         arguments.
7573         * tests/test-areadlink.c (main): Likewise.
7574         * tests/test-areadlinkat-with-size.c (main): Likewise.
7575         * tests/test-areadlinkat.c (main): Likewise.
7576         * tests/test-canonicalize-lgpl.c (main): Likewise.
7577         * tests/test-canonicalize.c (main): Likewise.
7578         * tests/test-dirent-safer.c (main): Likewise.
7579         * tests/test-dirname.c (main): Likewise.
7580         * tests/test-dup2.c (main): Likewise.
7581         * tests/test-fchdir.c (main): Likewise.
7582         * tests/test-fcntl-h.c (main): Likewise.
7583         * tests/test-fcntl-safer.c (main): Likewise.
7584         * tests/test-fdopendir.c (main): Likewise.
7585         * tests/test-fdutimensat.c (main): Likewise.
7586         * tests/test-fflush.c (main): Likewise.
7587         * tests/test-filenamecat.c (main): Likewise.
7588         * tests/test-filevercmp.c (main): Likewise.
7589         * tests/test-fopen-safer.c (main): Likewise.
7590         * tests/test-fopen.c (main): Likewise.
7591         * tests/test-fpending.c (main): Likewise.
7592         * tests/test-fpurge.c (main): Likewise.
7593         * tests/test-freading.c (main): Likewise.
7594         * tests/test-fstatat.c (main): Likewise.
7595         * tests/test-fsync.c (main): Likewise.
7596         * tests/test-futimens.c (main): Likewise.
7597         * tests/test-getndelim2.c (main): Likewise.
7598         * tests/test-gettimeofday.c (main): Likewise.
7599         * tests/test-getopt.c (main): Likewise.
7600         * tests/test-i-ring.c (main): Likewise.
7601         * tests/test-inttypes.c (main): Likewise.
7602         * tests/test-link.c (main): Likewise.
7603         * tests/test-lstat.c (main): Likewise.
7604         * tests/test-math.c (main): Likewise.
7605         * tests/test-md5.c (main): Likewise.
7606         * tests/test-memchr2.c (main): Likewise.
7607         * tests/test-memrchr.c (main): Likewise.
7608         * tests/test-mkdir.c (main): Likewise.
7609         * tests/test-mkdirat.c (main): Likewise.
7610         * tests/test-mkfifoat.c (main): Likewise.
7611         * tests/test-open.c (main): Likewise.
7612         * tests/test-openat-safer.c (main): Likewise.
7613         * tests/test-openat.c (main): Likewise.
7614         * tests/test-quotearg.c (main): Likewise.
7615         * tests/test-rawmemchr.c (main): Likewise.
7616         * tests/test-readlink.c (main): Likewise.
7617         * tests/test-remove.c (main): Likewise.
7618         * tests/test-rename.c (main): Likewise.
7619         * tests/test-renameat.c (main): Likewise.
7620         * tests/test-rmdir.c (main): Likewise.
7621         * tests/test-sha1.c (main): Likewise.
7622         * tests/test-signal.c (main): Likewise.
7623         * tests/test-sigaction.c (main): Likewise.
7624         * tests/test-stat.c (main): Likewise.
7625         * tests/test-stat-time.c (main): Likewise.
7626         * tests/test-stddef.c (main): Likewise.
7627         * tests/test-stdint.c (main): Likewise.
7628         * tests/test-stdio.c (main): Likewise.
7629         * tests/test-stdlib.c (main): Likewise.
7630         * tests/test-strchrnul.c (main): Likewise.
7631         * tests/test-strerror.c (main): Likewise.
7632         * tests/test-string.c (main): Likewise.
7633         * tests/test-strtod.c (main): Likewise.
7634         * tests/test-strverscmp.c (main): Likewise.
7635         * tests/test-symlink.c (main): Likewise.
7636         * tests/test-symlinkat.c (main): Likewise.
7637         * tests/test-sys_stat.c (main): Likewise.
7638         * tests/test-sys_time.c (main): Likewise.
7639         * tests/test-time.c (main): Likewise.
7640         * tests/test-unistd.c (main): Likewise.
7641         * tests/test-unlink.c (main): Likewise.
7642         * tests/test-unlinkat.c (main): Likewise.
7643         * tests/test-utimens.c (main): Likewise.
7644         * tests/test-utimensat.c (main): Likewise.
7645         * tests/test-version-etc.c (main): Likewise.
7646         * tests/test-wchar.c (main): Likewise.
7647         * tests/test-wctype.c (main): Likewise.
7648         * tests/test-xprintf-posix.c (main): Likewise.
7649         * tests/test-posixtm.c (main): Likewise.
7650         (STREQ): Delete unused macro.
7651         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
7652         shadowed variables.
7653         * tests/test-memchr.c (main): Likewise.
7654
7655 2009-10-21  Eric Blake  <ebb9@byu.net>
7656
7657         areadlinkat: avoid failure on older glibc
7658         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7659         rather than mis-comparing 0 against FUNC_RESULT of char*.
7660
7661 2009-10-21  Bruno Haible  <bruno@clisp.org>
7662
7663         * modules/stpncpy (License): Relicense under LGPLv2+.
7664         Reported by David Lutterkort <lutter@redhat.com>.
7665
7666 2009-10-20  Eric Blake  <ebb9@byu.net>
7667
7668         utimensat: work around Solaris 9 bug
7669         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7670         has trailing slash bugs.
7671         * tests/test-lutimens.h (test_lutimens): Enhance test.
7672         * tests/test-utimens.h (test_utimens): Likewise.
7673         * doc/posix-functions/utime.texi (utime): Enhance documentation.
7674         * doc/posix-functions/utimes.texi (utimes): Likewise.
7675         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7676         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7677         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7678         * doc/posix-functions/futimens.texi (futimens): Likewise.
7679
7680         fdutimensat: new module
7681         * modules/fdutimensat: New file.
7682         * lib/fdutimensat.c (fdutimensat): Likewise.
7683         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7684         * MODULES.html.sh (File system functions): Mention module.
7685         * modules/fdutimensat-tests: New test.
7686         * tests/test-fdutimensat.c: Likewise.
7687
7688         doc: regenerate INSTALL
7689         * doc/INSTALL: Reflect recent autoconf update.
7690         * doc/INSTALL.ISO: Likewise.
7691         * doc/INSTALL.UTF-8: Likewise.
7692
7693 2009-10-20  Pádraig Brady  <P@draigBrady.com>
7694
7695         acl: warn if ACL support is not detected
7696         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7697
7698 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
7699
7700         * lib/nproc.h: Add extern "C" block for C++.
7701
7702 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
7703             Bruno Haible  <bruno@clisp.org>
7704
7705         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7706         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7707         * doc/posix-functions/isalpha.texi: Likewise.
7708         * doc/posix-functions/isblank.texi: Likewise.
7709         * doc/posix-functions/iscntrl.texi: Likewise.
7710         * doc/posix-functions/isdigit.texi: Likewise.
7711         * doc/posix-functions/isgraph.texi: Likewise.
7712         * doc/posix-functions/islower.texi: Likewise.
7713         * doc/posix-functions/isprint.texi: Likewise.
7714         * doc/posix-functions/ispunct.texi: Likewise.
7715         * doc/posix-functions/isspace.texi: Likewise.
7716         * doc/posix-functions/isupper.texi: Likewise.
7717         * doc/posix-functions/isxdigit.texi: Likewise.
7718
7719 2009-10-18  Bruno Haible  <bruno@clisp.org>
7720
7721         Tests for module 'isblank'.
7722         * modules/isblank-tests: New file.
7723         * tests/test-isblank.c: New file.
7724
7725         New module 'isblank'.
7726         * lib/isblank.c: New file.
7727         * m4/isblank.m4: New file.
7728         * modules/isblank: New file.
7729         * doc/posix-functions/isblank.texi: Mention the new module.
7730
7731 2009-10-18  Bruno Haible  <bruno@clisp.org>
7732
7733         New module 'ctype'.
7734         * lib/ctype.in.h: New file.
7735         * m4/ctype.m4: New file.
7736         * modules/ctype: New file.
7737         * doc/posix-headers/ctype.texi: Mention the new module.
7738
7739 2009-10-18  Jim Meyering  <meyering@redhat.com>
7740
7741         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7742         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7743         right after its initialization, rather than farther down.
7744         Keeping these in close proximity makes it easier to ensure
7745         that each such variable is initialized.  E.g.,
7746
7747             LIB_CLOCK_GETTIME=
7748             AC_SUBST([LIB_CLOCK_GETTIME])
7749
7750         This change also increments these serial numbers.
7751         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7752         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7754
7755 2009-10-18  Bruno Haible  <bruno@clisp.org>
7756
7757         Don't let environment variables perturb build.
7758         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7759         (gl_PREREQ_GETHRXTIME): ... not here.
7760
7761 2009-10-18  Bruno Haible  <bruno@clisp.org>
7762
7763         Avoid symlink attack in localcharset module.
7764         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7765         (O_NOFOLLOW): Define fallback.
7766         (get_charset_aliases): Don't open the file if it is a symbolic link.
7767         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7768         gl_FCNTL_H.
7769         (gl_FCNTL_H): Require it.
7770         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7771         * modules/localcharset (Files): Add m4/fcntl_h.m4.
7772         Reported by Fergal Glynn <fglynn@veracode.com>.
7773
7774 2009-10-18  Bruno Haible  <bruno@clisp.org>
7775
7776         Implement nproc for mingw.
7777         * lib/nproc.c: Include <windows.h>
7778         (num_processors): On native Windows platforms, try GetSystemInfo.
7779
7780 2009-10-18  Bruno Haible  <bruno@clisp.org>
7781
7782         Implement nproc for IRIX.
7783         * lib/nproc.c: Include <sys/sysmp.h>.
7784         (num_processors): On IRIX systems, try sysmp.
7785         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7786
7787 2009-10-18  Bruno Haible  <bruno@clisp.org>
7788
7789         Implement nproc for HP-UX.
7790         * lib/nproc.c: Include <sys/pstat.h>
7791         (num_processors): On HP-UX systems, try pstat_getdynamic.
7792         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7793         pstat_getdynamic.
7794
7795 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
7796             Bruno Haible  <bruno@clisp.org>
7797
7798         Implement nproc for NetBSD, OpenBSD.
7799         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7800         (ARRAY_SIZE): New macro.
7801         (num_processors): On BSD systems, try sysctl of HW_NCPU.
7802         * m4/nproc.m4: New file.
7803         * modules/nproc (Files): Add m4/nproc.m4.
7804         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7805         (Makefile.am): Instead, augment lib_SOURCES.
7806
7807 2009-10-18  Bruno Haible  <bruno@clisp.org>
7808
7809         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7810         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7811         sys/param.h.
7812
7813 2009-10-16  Eric Blake  <ebb9@byu.net>
7814
7815         utimensat: new module
7816         * modules/utimensat: New file.
7817         * lib/utimensat.c (utimensat): Likewise.
7818         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7819         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7820         so we can work around Linux bugs.
7821         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7822         * modules/sys_stat (Makefile.am): Substitute them.
7823         * lib/sys_stat.in.h (utimensat): Declare it.
7824         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7825         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7826         * modules/utimensat-tests: New test.
7827         * tests/test-utimensat.c: Likewise.
7828
7829         utimens: let lutimens work on non-symlinks
7830         * lib/utimens.c (lutimens): Fall back to utimens rather than
7831         failing with ENOSYS, when file is not a symlink.
7832         (utimens): Reduce redirection.
7833         * tests/test-lutimens.h (test_lutimens): Update test to cover
7834         non-symlinks.
7835         * tests/test-utimens.h (test_utimens): Update test to cover
7836         symlinks.
7837         * tests/test-utimens.c (main): Update caller.
7838
7839         utimens: cache whether utimensat syscall works
7840         * lib/utimens.c (utimensat_works_really): New cache variable.
7841         (fdutimens, lutimens): Use it to avoid failing syscall.
7842
7843         test-stat-time, test-utimens: improve portability
7844         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7845         ext4 on alpha, and for cygwin.
7846         * tests/test-utimens-common.h: New file.
7847         (nap): Factor delays into single function.
7848         * tests/test-lutimens.h (test_lutimens): Use new header.
7849         * tests/test-futimens.h (test_futimens): Likewise.
7850         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
7851         timestamps to occur from same machine, as was done previously for
7852         test_utimens.
7853         * modules/utimens-tests (Files): Ship new file.
7854         * modules/futimens-tests (Files): Likewise.
7855         Reported in part by Jim Meyering.
7856
7857         sys_stat: sort replacement declarations
7858         * lib/sys_stat.in.h: Sort declarations.
7859         * lib/futimens.c (futimens): Fix typo.
7860
7861 2009-10-15  Jim Meyering  <meyering@redhat.com>
7862
7863         don't let environment settings perturb build
7864         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7865         could cause a configure-time and/or build-time malfunction.
7866         Typically, a configure-time function-in-library test is performed
7867         via code like this:
7868
7869           LIB_VAR=
7870           AC_SUBST([LIB_VAR])
7871           prefix_saved_LIBS=$LIBS
7872             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7873                        [test "$ac_cv_search_FUNC" = "none required" ||
7874                         LIB_VAR=$ac_cv_search_FUNC])
7875           LIBS=$prefix_saved_LIBS
7876
7877         However, in each of the files affected by this change, the LIB_VAR=
7878         initialization was omitted.  Thus, when set in the environment, its
7879         value would propagate into generated Makefiles when FUNC is not found
7880         in LIB_NAME.
7881         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7882         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7883         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7884
7885 2009-10-14  Eric Blake  <ebb9@byu.net>
7886
7887         fchdir: avoid infinite recursion in mingw
7888         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7889         recursing.
7890
7891         test-stat-time: port to mingw
7892         * tests/test-stat-time.c (force_unlink): Return a value.
7893         (test_ctime) [W32]: Fix compilation error.
7894         (nap): Don't call usleep with too large an argument.  Use
7895         force_unlink.
7896         * doc/pastposix-functions/usleep.texi (usleep): Document the
7897         portability issue.
7898
7899 2009-10-13  Jim Meyering  <meyering@redhat.com>
7900
7901         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7902         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7903         * modules/pipe-filter-ii: Likewise.
7904         * modules/sys_socket-tests: Likewise.
7905         * modules/tsearch-tests: Likewise.
7906         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7907         (check): Depend on it.
7908
7909 2009-10-12  Eric Blake  <ebb9@byu.net>
7910
7911         utimens-tests: port to NFS file systems
7912         * tests/test-utimens.h (test_utimens): Refactor utimecmp
7913         comparisons to avoid spurious failures from timestamp drift
7914         between NFS machines.
7915
7916 2009-10-12  Eric Blake  <ebb9@byu.net>
7917
7918         stat-time-tests: minor cleanups
7919         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7920         * tests/test-stat-time.c (nap): Separate assignment from call.
7921         Suggested by Paolo Bonzini and Bruno Haible.
7922
7923         sys_stat: guarantee struct timespec
7924         * lib/sys_stat.in.h (includes): Always include <time.h>
7925         * modules/sys_stat (Depends-on): Add time.
7926         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7927         mode_t permission values.
7928         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7929         get at subsecond timestamps.
7930
7931 2009-10-10  Eric Blake  <ebb9@byu.net>
7932
7933         futimens: new module
7934         * modules/futimens: New file.
7935         * lib/futimens.c (futimens): Likewise.
7936         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7937         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7938         we can work around Linux bugs.
7939         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7940         * modules/sys_stat (Makefile.am): Substitute them.
7941         * lib/sys_stat.in.h (futimens): Declare it.
7942         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7943         * doc/posix-functions/futimens.texi (futimens): Likewise.
7944         * modules/futimens-tests: New test.
7945         * tests/test-futimens.c: Likewise.
7946
7947         utimens: introduce fdutimens
7948         * lib/utimens.h (fdutimens): New prototype.
7949         * lib/utimens.c (gl_futimens): Move guts...
7950         (fdutimens): ...to new interface.
7951         * tests/test-utimens.c (do_fdutimens): Use it.
7952
7953         utimens: add UTIME_NOW and UTIME_OMIT support
7954         * lib/utimens.c (validate_timespec, update_timespec): New helper
7955         functions.
7956         (gl_futimens, lutimens): Use them.
7957         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7958         stdbool, sys_stat.
7959         (Link): Mention resulting library dependency.
7960         * modules/utimecmp (Link): Likewise.
7961         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7962         (Makefile.am): Pick up library dependency.
7963         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7964         definition.
7965         * tests/test-sys_stat.c: Test the definitions.
7966         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7967         * NEWS: Document library dependency.
7968
7969         utimecmp: support symlink timestamps
7970         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
7971         hashing when possible.  Use pathconf when available.
7972         (SYSCALL_RESOLUTION): Recognize tighter resolution.
7973         * modules/utimecmp (Depends-on): Add lstat.
7974
7975         utimens: add lutimens interface
7976         * lib/utimens.c (lutimens): New function.
7977         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7978         * lib/utimens.h (lutimens): Declare new interface.
7979         * tests/test-utimens.c (main): Enhance test.
7980         * tests/test-lutimens.h (test_lutimens): New file.
7981         * modules/utimens-tests (Files): Distribute it.
7982         (Depends-on): Add symlink.
7983         (configure.ac): Check for usleep.
7984
7985         utimens: validate futimens usage
7986         * lib/utimens.c (gl_futimens): Require valid fd up front, using
7987         fewer syscalls on failure later on.  Avoid compiler warning on
7988         mingw.
7989         * modules/utimens (Depends-on): Add dup2.
7990
7991         utimens: add test
7992         * modules/utimens-tests: New test.
7993         * tests/test-utimens.h: New file.
7994         * tests/test-futimens.h: Likewise.
7995         * tests/test-utimens.c: Likewise.
7996
7997         doc: mention timestamp portability issues
7998         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7999         instead.
8000         * doc/posix-functions/utime.texi (utime): Likewise.
8001         * doc/posix-functions/utimes.texi (utimes): Likewise.
8002         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
8003         instead.
8004         * doc/posix-functions/futimens.texi (futimens): Mention utimens
8005         module.
8006         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
8007         Mention weakness with symlink timestamps.
8008         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
8009         to utimensat/futimens instead.
8010         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
8011
8012         test-dup2: enhance test
8013         * tests/test-dup2.c (main): Also check AT_FDCWD.
8014
8015         test-stat-time: avoid more spurious failures
8016         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
8017         xfs; and avoid race if the two timestamps cross quantization edge.
8018
8019         relocatable: prefer 'file system' over 'filesystem'
8020         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
8021         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
8022         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
8023         * doc/relocatable.texi (Enabling Relocatability): Likewise.
8024         * lib/relocatable.c (compute_curr_prefix): Likewise.
8025
8026 2009-10-10  Jim Meyering  <meyering@redhat.com>
8027
8028         stat-time-tests: check for the usleep function
8029         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
8030
8031 2009-10-10  Bruno Haible  <bruno@clisp.org>
8032
8033         * modules/xnanosleep: Put the Link section after the Include section.
8034
8035 2009-10-09  Eric Blake  <ebb9@byu.net>
8036
8037         dup2: work around FreeBSD 6.1 bug
8038         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
8039         * doc/posix-functions/dup2.texi (dup2): Document it.
8040         Reported by Nelson H. F. Beebe and Jim Meyering.
8041
8042         test-stat-time: port to buggy NFS clients
8043         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
8044         (test_ctime): Also skip test if mtime and ctime are skewed.
8045
8046         maint: prefer 'file system' over 'filesystem'
8047         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8048         * doc/posix-functions/lstat.texi (lstat): Likewise.
8049         * lib/file-has-acl.c (file_has_acl): Likewise.
8050         * lib/fwriteerror.c [TEST]: Likewise.
8051         * tests/test-areadlink.h (test_areadlink): Likewise.
8052         * tests/test-areadlinkat-with-size.c (main): Likewise.
8053         * tests/test-areadlinkat.c (main): Likewise.
8054         * tests/test-canonicalize-lgpl.c (main): Likewise.
8055         * tests/test-canonicalize.c (main): Likewise.
8056         * tests/test-fstatat.c (main): Likewise.
8057         * tests/test-linkat.c (main): Likewise.
8058         * tests/test-lstat.h (test_lstat_func): Likewise.
8059         * tests/test-mkdir.h (test_mkdir): Likewise.
8060         * tests/test-readlink.h (test_readlink): Likewise.
8061         * tests/test-remove.c (main): Likewise.
8062         * tests/test-rename.h (test_rename): Likewise.
8063         * tests/test-renameat.c (main): Likewise.
8064         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8065         * tests/test-symlink.h (test_symlink): Likewise.
8066         * tests/test-symlinkat.c (main): Likewise.
8067         * tests/test-unlink.h (test_unlink_func): Likewise.
8068         * tests/test-unlinkat.c (main): Likewise.
8069
8070         maint: make realtime library usage explicit
8071         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
8072         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
8073         * modules/settime (Link): Likewise.
8074         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
8075
8076         test-stat-time: speed up execution
8077         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
8078         warning on mingw.
8079         (nap): New helper function.
8080         (prepare_test): Use it to reduce sleep time.
8081         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
8082         execution.
8083         * modules/stat-time-tests (configure.ac): Check for usleep.
8084
8085 2009-10-09  Jim Meyering  <meyering@redhat.com>
8086
8087         selinux-h: always use getfilecon wrappers
8088         * lib/getfilecon.c: New file.
8089         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
8090         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
8091         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
8092         (fgetfilecon): Provide a stub.
8093         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
8094         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
8095         file unconditionally.
8096         When <selinux/selinux.h> is found, arrange to use wrappers.
8097         * modules/selinux-h (Files): Add getfilecon.c.
8098         (Makefile.am): Substitute include-next-related bits
8099         into the now-always-generated selinux/selinux.h file.
8100         * doc/glibc-functions/lgetfilecon.texi: New file.
8101         * doc/glibc-functions/fgetfilecon.texi: New file.
8102         * doc/glibc-functions/getfilecon.texi: New file.
8103         * doc/glibc-functions/getfilecon-desc.texi: New file.
8104         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
8105         which to pull in the new files.
8106         * MODULES.html.sh (Misc): Add selinux-h.
8107
8108 2009-10-08  Jim Meyering  <meyering@redhat.com>
8109
8110         unistd: fix comment typo
8111         * lib/unistd.in.h (euidaccess): Fix a comment typo.
8112
8113 2009-10-08  Eric Blake  <ebb9@byu.net>
8114
8115         areadlink: use SIZE_MAX consistently
8116         * modules/areadlink (Depends-on): Add stdint.
8117         * modules/areadlink-with-size (Depends-on): Likewise.
8118         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
8119         gives NULL; drop sys/types, since unistd gives size_t; and add
8120         stdint for SIZE_MAX.
8121         (SIZE_MAX): Rely on headers.
8122         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
8123         and add stdint.
8124         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
8125         (SIZE_MAX): Likewise.
8126         (INITIAL_BUF_SIZE): Turn into enum.
8127         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
8128
8129 2009-10-08  Jim Meyering  <meyering@redhat.com>
8130
8131         areadlinkat: avoid compilation failure
8132         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
8133         Fix typo in comment.
8134
8135 2009-10-07  Eric Blake  <ebb9@byu.net>
8136
8137         areadlinkat-with-size: new module
8138         * modules/areadlinkat-with-size: New module.
8139         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
8140         * lib/areadlink.h (areadlinkat): Declare it.
8141         * MODULES.html.sh (File system functions): Mention it.
8142         * modules/areadlinkat-with-size-tests: New test.
8143         * tests/test-areadlinkat-with-size.c: New file.
8144
8145         xreadlinkat: new module
8146         * modules/xreadlinkat: New module.
8147         * lib/xreadlinkat.c (xreadlinkat): New file.
8148         * lib/xreadlink.h (xreadlinkat): Declare it.
8149         * MODULES.html.sh (File system functions): Mention it.
8150
8151         areadlinkat: new module
8152         * lib/at-func.c (FUNC_FAIL): New define.
8153         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
8154         * modules/areadlinkat: New module.
8155         * lib/linkat.c (areadlinkat): Move...
8156         * lib/areadlinkat.c (areadlinkat): ...to new file.
8157         * lib/areadlink.h (areadlinkat): Declare it.
8158         * modules/linkat (Depends-on): Add areadlinkat.
8159         * MODULES.html.sh (File system functions): Mention it.
8160         * modules/areadlinkat-tests: New test.
8161         * tests/test-areadlinkat.c: New file.
8162
8163         areadlink, areadlink-with-size: add tests
8164         * modules/areadlink-tests: New test.
8165         * modules/areadlink-with-size-tests: Likewise.
8166         * tests/test-areadlink.h: New file.
8167         * tests/test-areadlink.c: Likewise.
8168         * tests/test-areadlink-with-size.c: Likewise.
8169
8170         maint: minor cleanups
8171         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
8172         _UNUSED_PARAMETER_ instead.
8173         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
8174         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
8175         * modules/linkat-tests (Files): Distribute test-link.h.
8176
8177         openat, utimens: whitespace cleanup
8178         * lib/openat.c: Prefer space throughout, rather than mix of 8
8179         spaces vs. tabs.
8180         * lib/at-func.c: Likewise.
8181         * lib/utimens.c: Likewise.
8182
8183         openat: avoid using wrong fd
8184         * lib/openat.c (openat_permissive): Reject user's fd if saving the
8185         working directory chooses same fd.
8186         * lib/at-func.c (AT_FUNC_NAME): Likewise.
8187
8188         mkdir, mkdirat: fix cygwin 1.5.x bug
8189         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
8190         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
8191         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
8192         bug.
8193         (gl_PREREQ_MKDIR): Delete unused macro.
8194         * modules/mkdir (Files): Track file rename.
8195         (configure.ac): Update macro name.
8196         * modules/openat (Depends-on): Add mkdir.
8197         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
8198
8199         mkdir, mkdirat: add tests
8200         * modules/mkdir-tests: New test.
8201         * tests/test-mkdir.h: New file.
8202         * tests/test-mkdir.c: Likewise.
8203         * tests/test-mkdirat.c: Likewise.
8204         * modules/openat-tests (Files): Add new files.
8205         (Makefile.am): Run new test.
8206
8207 2009-10-06  Eric Blake  <ebb9@byu.net>
8208
8209         doc: tweak *at function documentation
8210         * doc/posix-functions/faccessat.texi (faccessat): Mention
8211         known issue with replacement.
8212         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
8213         * doc/posix-functions/linkat.texi (linkat): Likewise.
8214         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8215         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8216         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8217         * doc/posix-functions/renameat.texi (renameat): Likewise.
8218         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
8219
8220         openat: fix GNU/Hurd bug in unlinkat
8221         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
8222         broken.
8223         * doc/posix-functions/unlink.texi (unlink): Document this.
8224         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
8225
8226         fdopendir: fix GNU/Hurd bug
8227         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
8228         allowing non-directory fds.
8229         * lib/fdopendir.c (rpl_fdopendir): Work around it.
8230         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8231         * modules/dirent (Makefile.am): Substitute it.
8232         * lib/dirent.in.h (fdopendir): Declare replacement.
8233         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
8234         * tests/test-fdopendir.c (main): Test something other than
8235         /dev/null, since on Hurd that behaves like a directory.
8236
8237         test-symlink: port to GNU/Hurd
8238         * tests/test-symlink.h (test_symlink): Relax expected errno.
8239
8240         doc: tweak more cygwin information
8241         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
8242         now compatible with glibc.
8243         * doc/posix-functions/getopt.texi (getopt): Likewise.
8244
8245         getopt-gnu: add another test
8246         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
8247         guarantee behavior relied on by m4.
8248         * tests/test-getopt.c (main): Use it.
8249         * modules/getopt-posix-tests (Depends-on): Add setenv.
8250         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
8251
8252         getopt: fix compilation on darwin
8253         * lib/getopt.in.h (includes): Leave breadcrumbs during system
8254         include.
8255         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
8256         Reported by Ludovic Courtès.
8257
8258 2009-10-06  Bruno Haible  <bruno@clisp.org>
8259
8260         * modules/size_max (Description): Discourage its use.
8261         Reported by Simon Josefsson.
8262
8263 2009-10-06  Jim Meyering  <meyering@redhat.com>
8264
8265         linkat: avoid compilation failure
8266         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
8267
8268 2009-10-05  Eric Blake  <ebb9@byu.net>
8269
8270         linkat: support Linux 2.6.17
8271         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
8272         linkat on Linux, but allow cache variable override.
8273         * lib/linkat.c (rpl_linkat): Define override.
8274         * modules/linkat (Depends-on): Add symlinkat.
8275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
8276         * modules/unistd (Makefile.am): Substitute it.
8277         * lib/unistd.in.h (linkat): Declare replacement.
8278         Reported by Pádraig Brady.
8279
8280         quotearg: port test to systems with C.UTF-8 locale
8281         * tests/test-quotearg.c (struct result_strings): Add another
8282         member, differentiating between C.ASCII and C.UTF-8 handling.
8283         (compare_strings): Add parameter.
8284         (main): Adjust all callers.
8285
8286         getopt: avoid clash with FreeBSD _getopt_internal
8287         * lib/getopt.in.h (_getopt_internal): Override the name.
8288         * lib/getopt_int.h (includes): Pick up any overrides.
8289         Reported by Reuben Thomas.
8290
8291         hash: allow C89 compilation
8292         * lib/hash.c (check_tuning): Move declaration before statement.
8293         Reported by Reuben Thomas.
8294
8295 2009-10-05  Karl Berry  <karl@gnu.org>
8296
8297         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
8298
8299 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
8300             Bruno Haible  <bruno@clisp.org>
8301
8302         * lib/uname.c (uname): Use a table-driven algorithm to compute
8303         Windows NT versions.
8304
8305 2009-10-04  Bruno Haible  <bruno@clisp.org>
8306
8307         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
8308         program_invocation_short_name.
8309         * modules/progname (configure.ac): Test for presence of
8310         program_invocation_short_name.
8311         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8312
8313 2009-10-04  Bruno Haible  <bruno@clisp.org>
8314
8315         * lib/progname.c (set_program_name): Fix comment.
8316         Reported by Jim Meyering.
8317
8318 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8319             Bruno Haible  <bruno@clisp.org>
8320
8321         * lib/uname.c: Include <string.h>.
8322         (uname): Do only one call to GetVersionEx in the common case.
8323
8324 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
8325             Bruno Haible  <bruno@clisp.org>
8326
8327         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
8328         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
8329         (uname): Add support for Windows CE and various non-x86 CPU types.
8330
8331 2009-10-03  Bruno Haible  <bruno@clisp.org>
8332
8333         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
8334         invocation to tests/configure.ac.
8335         Reported by Ian Beckwith <ianb@erislabs.net>.
8336
8337 2009-10-02  Eric Blake  <ebb9@byu.net>
8338
8339         fchdir: avoid compiler warning
8340         * lib/fchdir.c (canonicalize_file_name)
8341         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
8342
8343         test-open: support mingw errno values
8344         * tests/test-open.h (test_open): Relax test.
8345         * tests/test-fopen.h (test_fopen): Likewise.
8346         * tests/test-openat-safer.c (main): Likewise.
8347
8348         open: fix opening directory on mingw
8349         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
8350
8351         test-open: on GNU/Hurd, /dev/null is a directory
8352         * tests/test-fopen.h (main): Rename...
8353         (test_fopen): ...to this.  Use a guaranteed non-directory when
8354         confirming open behavior on trailing slash.
8355         * tests/test-openat-safer.c (main): Likewise.
8356         * tests/test-open.h (main): Likewise....
8357         (test_open): ...to this.
8358         * tests/test-fopen.c (main): Adjust caller.
8359         * tests/test-fopen-safer.c (main): Likewise.
8360         * tests/test-open.c (main): Likewise.
8361         * tests/test-fcntl-safer.c (main): Likewise.
8362         Reported by Samuel Thibault.
8363
8364         rename, fchdir: don't ignore chdir failure
8365         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
8366         * lib/rename.c (rpl_rename) [W32]: Likewise.
8367         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
8368         an empty destination directory if source cannot be renamed,
8369         although there is still possibility for failure.
8370         * doc/posix-functions/rename.texi (rename): Document the race.
8371         Reported by Jim Meyering.
8372
8373         maint: cleanup whitespace in recent commits
8374         * lib/rename.c (rpl_rename): Remove tabs.
8375         * tests/test-link.h (test_link): Likewise.
8376         * lib/fchdir.c (get_name): Likewise.
8377         Reported by Jim Meyering.
8378
8379 2009-10-02  Ben Pfaff  <blp@gnu.org>
8380
8381         relocatable-prog-wrapper: Add missing dependency on
8382         double-slash-root.
8383         * modules/relocatable-prog-wrapper: Add dependency.
8384         Reported by Ian Beckwith <ianb@erislabs.net>.
8385
8386 2009-10-02  Eric Blake  <ebb9@byu.net>
8387
8388         renameat: fix Solaris bugs
8389         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
8390         needed fixing.
8391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
8392         * modules/stdio (Makefile.am): Substitute it.
8393         * lib/stdio.in.h (renameat): Declare replacement.
8394         * lib/renameat.c (rpl_renameat): Implement fix.
8395
8396         renameat: new module
8397         * modules/renameat: New file.
8398         * lib/renameat.c (renameat): Likewise.
8399         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
8400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8401         * modules/stdio (Makefile.am): Substitute them.
8402         * lib/stdio.in.h (renameat): Declare it.
8403         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8404         * doc/posix-functions/renameat.texi (renameat): Likewise.
8405         * modules/renameat-tests: New test.
8406         * tests/test-renameat.c: Likewise.
8407
8408         rename: fix mingw bugs
8409         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
8410         directory overwrite bugs.
8411
8412         rename: fix another cygwin 1.5 bug
8413         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
8414         checks.
8415         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
8416         unnecessary cygwin workarounds.  Also work around bug with moving
8417         full directory onto an empty one.
8418         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
8419
8420         rename-dest-slash: merge into rename module
8421         * modules/rename-dest-slash (Status): Mark obsolete.
8422         (Depends-on): Add rename.
8423         (Files): Let rename do it all.
8424         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
8425         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
8426         * m4/rename-dest-slash.m4: ...so this file can be deleted.
8427         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
8428         * lib/rename.c (rpl_rename): Update comments.
8429
8430         rename: fix cygwin 1.5.x bugs
8431         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
8432         * lib/rename.c (rpl_rename): Work around them.
8433         * modules/rename (Depends-on): Add same-inode.
8434
8435         rename: fix Solaris 10 bug
8436         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8437         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
8438         was the only bug.
8439
8440         rename: fix Solaris 9 bug
8441         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
8442         on non-directory.  Avoid calling exit.
8443         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
8444         strdup.
8445         * modules/rename-tests (Depends-on): Drop lstat.
8446         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
8447         (gl_PREREQ_RENAME): Delete unused macro.
8448
8449         rename-dest-slash: fix NetBSD bug
8450         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8451         links.
8452         * modules/rename-dest-slash (Depends-on): Add same-inode.
8453
8454         rename-tests: new test, exposes several platform bugs
8455         * modules/rename-tests: New file.
8456         * tests/test-rename.h: Likewise.
8457         * tests/test-rename.c: Likewise.
8458         * doc/posix-functions/rename.texi (rename): Improve documentation,
8459         including bugs that will eventually be fixed in gnulib.
8460
8461 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
8462
8463         * lib/uname.c: Include <stdlib.h>
8464         (uname): Assume version info is available.
8465
8466 2009-10-02  Jim Meyering  <meyering@redhat.com>
8467
8468         gnu-web-doc-update: correct --help output
8469         * build-aux/gnu-web-doc-update: Make --help output relevant.
8470
8471         gnu-web-doc-update: add standard options
8472         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8473
8474         gnu-web-doc-update: New module.
8475         Use this script to automatically update the on-line web documentation
8476         for your GNU project at http://www.gnu.org/software/$pkg/manual/
8477         * modules/gnu-web-doc-update: New file, from coreutils.
8478         * build-aux/gnu-web-doc-update: New script.
8479
8480 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
8481
8482         link: LoadLibrary is not needed.
8483         * lib/link.c: Use GetModuleHandle.
8484
8485 2009-10-01  Eric Blake  <ebb9@byu.net>
8486
8487         getopt: bump serial number
8488         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8489         change.
8490
8491         tests: tighten link, rmdir, and remove tests
8492         * tests/test-link.h (includes): No need to use <config.h> here.
8493         Clean up if directory hard link was created, otherwise test for
8494         trailing '.'.
8495         * tests/test-linkat.c (main): Simplify.
8496         * tests/test-remove.c (main): Enhance test for trailing '.'.
8497         * tests/test-rmdir.h (test_rmdir_func): Likewise.
8498
8499 2009-10-01  Jim Meyering  <meyering@redhat.com>
8500
8501         maint.mk: requiring "make major" was annoying, for a "minor" release.
8502         What is intended is "stable", to contrast with alpha and beta,
8503         so require "make stable", not "make major".
8504         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8505         (get_tool_versions): Likewise.
8506         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8507
8508 2009-09-30  Ben Pfaff  <blp@gnu.org>
8509
8510         Fix broken build of replacement for Windows tmpfile().
8511         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8512         flags argument added along with the 'mkostemp' module.
8513
8514 2009-09-28  Bruno Haible  <bruno@clisp.org>
8515
8516         Avoid identifier clash with POSIX function 'remove' defined as a macro.
8517         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8518         to 'remove_elt'.
8519         (gl_list_remove): Update.
8520         * lib/gl_list.c (gl_list_remove): Update.
8521         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8522         to 'remove_elt'.
8523         (gl_oset_remove): Update.
8524         * lib/gl_list.c (gl_oset_remove): Update.
8525         Reported by Eric Blake.
8526
8527 2009-09-28  Eric Blake  <ebb9@byu.net>
8528
8529         doc: mention yet more cygwin 1.7 status
8530         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8531         cygwin.
8532         * doc/glibc-functions/execvpe.texi (execvpe): New file.
8533         * doc/gnulib.texi (Glibc unistd.h): Mention it.
8534
8535         argp: fix test failure
8536         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8537         that are not upper-case.  Pass correct range to tolower.
8538
8539 2009-09-27  Jim Meyering  <meyering@redhat.com>
8540
8541         test-yesno: work around sparc-dash here-document infelicity
8542         Without this change, the literal \177 byte in a here document
8543         would make dash 0.5.5.1-3 access uninitialized memory.
8544         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8545         Instead, use a marker, "@", and filter through tr to create the desired
8546         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8547
8548 2009-09-27  Bruno Haible  <bruno@clisp.org>
8549
8550         Disable untested support for new flavours of ACLs on AIX.
8551         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8552         progress.
8553         * lib/set-mode-acl.c (qset_acl): Likewise.
8554
8555 2008-12-07  Bruno Haible  <bruno@clisp.org>
8556
8557         Add support for new flavours of ACLs on AIX. (Untested.)
8558         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8559         (file_has_acl): Add support for newer AIX.
8560         * lib/set-mode-acl.c (qset_acl): Likewise.
8561         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8562         Rainer Tammer <tammer@tammer.net>.
8563
8564 2009-09-26  Eric Blake  <ebb9@byu.net>
8565
8566         argp: fix compilation of getopt
8567         * lib/getopt.in.h (includes): Use different guard than glibc.
8568         Reported by Sergey Poznyakoff.
8569
8570         doc: mention more cygwin 1.7 status
8571         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8572         bug.
8573         * doc/posix-functions/execl.texi (execl): Likewise.
8574         * doc/posix-functions/execle.texi (execle): Likewise.
8575         * doc/posix-functions/execlp.texi (execlp): Likewise.
8576         * doc/posix-functions/execv.texi (execv): Likewise.
8577         * doc/posix-functions/execve.texi (execve): Likewise.
8578         * doc/posix-functions/execvp.texi (execvp): Likewise.
8579         * doc/glibc-functions/canonicalize_file_name.texi
8580         (canonicalize_file_name): Cygwin 1.7 now provides this.
8581         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8582         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8583         on AT_SYMLINK_NOFOLLOW.
8584
8585 2009-09-24  Eric Blake  <ebb9@byu.net>
8586
8587         test-linkat: make test more robust
8588         * tests/test-linkat.c (main): Avoid collision with EEXIST.
8589
8590         getopt: fix inclusion guards for cygwin
8591         * modules/getopt-posix (Depends-on): Add include-next.
8592         (Makefile.am): Substitute more items in replacement header.
8593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8594         <getopt.h>.
8595         * lib/getopt.in.h (includes): Use split inclusion guard, and
8596         prefer <getopt.h> over include <unistd.h> when one is present.
8597         (option): Also override name of 'struct option'.
8598
8599         same-inode: revert prior change; it is not yet ready
8600         * NEWS: Undo mention of this change.
8601         * lib/same-inode.h (same-inode.h): Undo tri-state change.
8602         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8603         * lib/cycle-check.c (cycle_check): Likewise.
8604         * lib/same.c (same_name): Likewise.
8605         * lib/at-func2.c (at_func2): Likewise.
8606
8607 2009-09-23  Eric Blake  <ebb9@byu.net>
8608
8609         linkat: new module
8610         * modules/linkat: New file.
8611         * lib/at-func2.c (at_func2): Likewise.
8612         * lib/linkat.c (linkat): Likewise.
8613         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8614         * lib/openat-priv.h (at_func2): Add declaration.
8615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8616         * modules/unistd (Makefile.am): Substitute them.
8617         * lib/unistd.in.h (linkat): Declare it.
8618         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8619         * doc/posix-functions/linkat.texi (linkat): Likewise.
8620         * doc/posix-functions/link.texi (link): Tweak wording.
8621         * tests/test-link.c (main): Move guts...
8622         * tests/test-link.h (test_link): ...into new file.
8623         * modules/linkat-tests: New test.
8624         * tests/test-linkat.c: Likewise.
8625         * modules/link-tests (Files): Ship new file.
8626         (Depends-on): Add stdbool.
8627
8628         dirname: add library-safe mdir_name
8629         * lib/dirname.h (mdir_name): New prototype.
8630         * lib/dirname.c (dir_name): Move guts...
8631         (mdir_name): ...to new function that avoids xalloc_die.
8632
8633         fchdir: another mingw fix
8634         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8635         * lib/fchdir.c (get_name): New helper method; skips canonicalize
8636         on mingw (where it has not yet been ported), and make it optional
8637         elsewhere.
8638         (_gl_register_fd): Use it.
8639
8640         same-inode: make SAME_INODE tri-state, to port to mingw
8641         * NEWS: Mention this change.
8642         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8643         st_ino always being 0.
8644         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8645         * lib/cycle-check.c (cycle_check): Likewise.
8646         * lib/same.c (same_name): Likewise.
8647
8648         lstat: avoid mingw compilation error
8649         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8650         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8651         lstat ourselves.
8652         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8653         was adequate.
8654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8655         the checks for lstat.
8656         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8657
8658         link: fix test failure on Solaris 9
8659         * lib/link.c (rpl_link): Don't assume link will catch bogus
8660         trailing slash on source.
8661
8662         test-symlinkat: enhance test
8663         * tests/test-readlink.c (main): Move guts...
8664         * tests/test-readlink.h (test_readlink): ...into new file.
8665         * tests/test-symlink.c (main): Move guts...
8666         * tests/test-symlink.h (test_symlink): ...into new file.
8667         * tests/test-symlinkat.c (main): Use new files for further
8668         coverage.
8669         (do_symlink, do_readlink): New helper functions.
8670         * modules/symlink-tests (Files): Ship new file.
8671         (Depends-on): Add stdbool.
8672         * modules/readlink-tests (Files): Ship new file.
8673         (Depends-on): Add stdbool.
8674         * modules/symlinkat-tests (Files): Use new files.
8675
8676 2009-09-23  Eric Blake  <ebb9@byu.net>
8677
8678         readlink: document portability issue with symlink length
8679         * doc/posix-functions/lstat.texi (lstat): Mention that some file
8680         systems have bogus st_size on symlinks, and mention the
8681         areadlink-with-size module.
8682         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8683         * doc/posix-functions/readlink.texi (readlink): Mention the
8684         areadlink module, and ERANGE failure.
8685         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8686         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8687
8688         readlink: fix Solaris 9 bug with trailing slash
8689         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8690         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8691         * doc/posix-functions/readlink.texi (readlink): Document this.
8692         * modules/readlink-tests: New test.
8693         * tests/test-readlink.c: Likewise.
8694
8695         readlink: fix cygwin 1.5.x bug with return type
8696         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8697         * lib/unistd.in.h (readlink): Use ssize_t.
8698         * lib/readlink.c (readlink): Likewise.
8699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8700         * modules/unistd (Makefile.am): Substitute it.
8701         * lib/unistd.in.h (readlink): Declare replacement.
8702         * doc/posix-functions/readlink.texi (readlink): Document this.
8703
8704         symlink: use throughout gnulib
8705         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8706         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8707         symlink is not used.
8708         * modules/symlinkat (Depends-on): Add symlink.
8709         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8710         * modules/canonicalize-tests (Depends-on): Likewise.
8711         * modules/lstat-tests (Depends-on): Likewise.
8712         * modules/openat-tests (Depends-on): Likewise.
8713         * modules/remove-tests (Depends-on): Likewise.
8714         * modules/rmdir-tests (Depends-on): Likewise.
8715         * modules/unlink-tests (Depends-on): Likewise.
8716         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8717         * tests/test-canonicalize.c (symlink): Likewise.
8718         * tests/test-fstatat.c (symlink): Likewise.
8719         * tests/test-lstat.c (symlink): Likewise.
8720         * tests/test-remove.c (symlink): Likewise.
8721         * tests/test-rmdir.c (symlink): Likewise.
8722         * tests/test-unlink.c (symlink): Likewise.
8723         * tests/test-unlinkat.c (symlink): Likewise.
8724
8725         symlink: new module, for Solaris 9 bug
8726         * modules/symlink: New file.
8727         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8728         * lib/symlink.c: Likewise.
8729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8730         * modules/unistd (Makefile.am): Substitute them.
8731         * lib/unistd.in.h (symlink): Declare replacement.
8732         * MODULES.html.sh (File system functions): Mention it.
8733         * doc/posix-functions/symlink.texi (symlink): Likewise.
8734         * modules/symlink-tests: New test.
8735         * tests/test-symlink.c: Likewise.
8736
8737 2009-09-23  Bruno Haible  <bruno@clisp.org>
8738
8739         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8740         when needed.
8741         Test case: gnulib-tool --import --with-tests atexit inttypes.
8742         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8743
8744 2009-09-23  Bruno Haible  <bruno@clisp.org>
8745
8746         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8747         subcommand, not in a subshell.
8748
8749 2009-09-22  Eric Blake  <ebb9@byu.net>
8750
8751         unistd: sort replacement declarations
8752         * lib/unistd.in.h: Sort declarations.
8753
8754         open, openat: minor optimization
8755         * lib/open.c (open): If open succeeded, len is non-zero.
8756         * lib/openat.c (rpl_openat): Likewise.
8757
8758         link-follow: ensure correct result
8759         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8760         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8761         distinguish between possible failures.
8762
8763 2009-09-21  Eric Blake  <ebb9@byu.net>
8764
8765         fts: avoid compiler warning
8766         * lib/fts.c (dirent_inode_sort_may_be_useful)
8767         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8768
8769 2009-09-19  Bruno Haible  <bruno@clisp.org>
8770
8771         * lib/progreloc.c (canonicalize_file_name): New declaration.
8772
8773 2009-09-19  Eric Blake  <ebb9@byu.net>
8774
8775         link: fix quoting
8776         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8777
8778         openat: fix openat bugs on Solaris 9
8779         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8780         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8781         * modules/openat (Depends-on): Add open.
8782         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8783         * modules/fcntl-h (Makefile.am): Substitute it.
8784         * lib/fcntl.in.h (openat): Declare replacement.
8785         * doc/posix-functions/openat.texi (openat): Document this.
8786
8787         openat: move fstatat and unlinkat into correct files
8788         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8789         compiled.
8790         * lib/openat.c (fstatat, unlinkat): Move...
8791         * lib/fstatat.c (fstatat): ...into correct files.
8792         * lib/unlinkat.c (unlinkat): Likewise.
8793
8794         openat: fix unlinkat bugs on Solaris 9
8795         * lib/unlinkat.c (unlinkat): New file.
8796         * modules/openat (Depends-on): Add unlink.
8797         (Files): Distribute it.
8798         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8799         trailing slash behavior is broken.
8800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8801         * modules/unistd (Makefile.am): Substitute it.
8802         * lib/unistd.in.h (unlinkat): Declare replacement.
8803         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8804
8805         openat: fix fstatat bugs on Solaris 9
8806         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8807         stat.
8808         * doc/posix-functions/fstatat.texi (fstatat): Document this.
8809
8810         test-unlinkat: enhance test, to expose Solaris 9 bug
8811         * tests/test-unlink.c (main): Factor guts...
8812         * tests/test-unlink.h (test_rmdir_func): ...into new file.
8813         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8814         * tests/test-rmdir.c (main): Adjust caller.
8815         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
8816         (unlinker): New helper function.
8817         (rmdirat): Enhance check.
8818         * modules/rmdir-tests (Depends-on): Add stdbool.
8819         * modules/unlink-tests (Depends-on): Likewise.
8820         (Files): Add test-unlink.h.
8821         * modules/openat-tests (Files): Likewise.
8822         (Depends-on): Add unlinkdir.
8823
8824         test-fstatat: new test, to expose Solaris 9 bugs
8825         * tests/test-stat.c (main): Factor guts...
8826         * tests/test-stat.h (test_stat_func): ...into new file.
8827         * tests/test-lstat.c (main): Factor guts...
8828         * tests/test-lstat.h (test_lstat_func): ...into new file.
8829         * tests/test-fstatat.c: New file.
8830         * modules/stat-tests (Files): Add test-stat.h.
8831         * modules/lstat-tests (Files): Add test-lstat.h.
8832         (Depends-on): Add stdbool.
8833         * modules/openat-tests (Depends-on): Add pathmax.
8834         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8835         (Makefile.am): Run new test.
8836
8837         remove: new module, for mingw and Solaris 9 bugs
8838         * modules/remove: New file.
8839         * lib/remove.c: Likewise.
8840         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8842         * modules/stdio (Makefile.am): Use them.
8843         * lib/stdio.in.h (remove): Declare replacement.
8844         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8845         * doc/posix-functions/remove.texi (remove): Likewise.
8846         * modules/remove-tests: New test.
8847         * tests/test-remove.c: Likewise.
8848
8849         unlink: new module, for Solaris 9 bug
8850         * modules/unlink: New file.
8851         * lib/unlink.c: Likewise.
8852         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8854         * modules/unistd (Makefile.am): Use them.
8855         * lib/unistd.in.h (stat): Declare replacement.
8856         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8857         * doc/posix-functions/unlink.texi (unlink): Likewise.
8858         * modules/unlink-tests: New test.
8859         * tests/test-unlink.c: Likewise.
8860
8861         lstat: fix Solaris 9 bug
8862         * lib/lstat.c (lstat): Also check for trailing slash on
8863         non-symlink, non-directories.  Use stat module to simplify logic.
8864         * doc/posix-functions/lstat.texi (lstat): Document it.
8865         * modules/lstat-tests (Depends-on): Add errno, same-inode.
8866         (configure.ac): Check for symlink.
8867         * tests/test-lstat.c (main): Add more tests.
8868
8869         stat: add as dependency to other modules
8870         * modules/chown (Depends-on): Add stat.
8871         * modules/euidaccess (Depends-on): Likewise.
8872         * modules/fchdir (Depends-on): Likewise.
8873         * modules/isdir (Depends-on): Likewise.
8874         * modules/link (Depends-on): Likewise.
8875         * modules/lstat (Depends-on): Likewise.
8876         * modules/mkdir-p (Depends-on): Likewise.
8877         * modules/modechange (Depends-on): Likewise.
8878         * modules/open (Depends-on): Likewise.
8879         * modules/readlink (Depends-on): Likewise.
8880         * modules/same (Depends-on): Likewise.
8881
8882         stat: fix Solaris 9 bug
8883         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8884         slash.
8885         * lib/stat.c (rpl_stat): Work around it.
8886         * doc/posix-functions/stat.texi (stat): Update documentation.
8887
8888         stat: new module, for mingw bug
8889         * modules/stat: New file.
8890         * lib/stat.c: Likewise.
8891         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8892         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8893         * modules/sys_stat (Makefile.am): Use them.
8894         * lib/sys_stat.in.h (stat): Declare replacement.
8895         * lib/openat.c (fstatat): Deal with lstat and stat being function
8896         macros.
8897         * modules/openat (Depends-on): Add inline.
8898         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8899         * doc/posix-functions/stat.texi (stat): Likewise.
8900         * modules/stat-tests: New test.
8901         * tests/test-stat.c: Likewise.
8902
8903 2009-09-19  Jim Meyering  <meyering@redhat.com>
8904
8905         syntax-check: detect unnecessary inclusion of canonicalize.h
8906         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8907
8908 2009-09-19  Eric Blake  <ebb9@byu.net>
8909
8910         canonicalize-lgpl: adjust clients to use correct header
8911         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8912         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8913         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8914         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8915         * lib/progreloc.c (includes): Likewise.
8916
8917 2009-09-19  Jim Meyering  <meyering@redhat.com>
8918
8919         test-posixtm.c: correct a comment
8920         * tests/test-posixtm.c: Correct first-line comment.
8921         Spotted by Eric Blake.
8922
8923 2009-09-16  Jim Meyering  <meyering@redhat.com>
8924
8925         posixtm-tests: make T const-correct; add a test case
8926         * tests/test-posixtm.c (T): Declare const.
8927         Add a test for -(2^31+1).
8928         Remove useless can-succeed-only-in-2002 test.
8929
8930         posixtm-tests: adjust the sole failing test
8931         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8932         expected output matches what mktime now produces.  Cross-checked via
8933         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8934
8935         posixtm: move #ifdef'd tests into a new module
8936         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
8937         * tests/test-posixtm.c: ... this new file.
8938         * modules/posixtm-tests: New module.
8939
8940 2009-09-19  Eric Blake  <ebb9@byu.net>
8941
8942         openat: simplify use of at-func.c
8943         * lib/at-func.c (includes): Include prerequisites here, to
8944         simplify requirements on client files.
8945         * lib/openat-priv.h: Add double-inclusion guard.
8946         * lib/faccessat.c (includes): Simplify.
8947         * lib/fchmodat.c (includes): Likewise.
8948         * lib/fchownat.c (includes): Likewise.
8949         * lib/mkdirat.c (includes): Likewise.
8950         * lib/mkfifoat.c (includes): Likewise.
8951         * lib/symlinkat.c (includes): Likewise.
8952
8953         openat: allow return of fd 0
8954         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8955         * modules/save-cwd (Depends-on): Replace fcntl-safer with
8956         unistd-safer.
8957         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8958         <fcntl.h>; this module does not leak fds.
8959         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8960         must be allowed to return 0, leaving openat_safer to add the
8961         safety.
8962         (openat_permissive): Avoid writing to just-opened fd 2 if
8963         restoring the current directory fails.
8964         * lib/openat-die.c (openat_restore_fail): Add comment.
8965         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8966         (save_cwd): Guarantee safe fd, but without use of open_safer.
8967         * tests/test-openat.c: New test.
8968         * modules/openat-tests (Files, Makefile.am): Distribute and build
8969         new file.
8970
8971         relocatable-prog-wrapper: fix build
8972         * modules/relocatable-prog-wrapper (Files): Update name of
8973         canonicalize m4 file, broken on 2009-09-17.
8974         Reported by emad hajjar <aleppos@hotmail.com>.
8975
8976 2009-09-19  Bruno Haible  <bruno@clisp.org>
8977
8978         * lib/safe-alloc.h: Use the standard header with GPL copyright.
8979         * lib/safe-alloc.c: Likewise.
8980         Reported by Ian Beckwith <ianb@erislabs.net>.
8981
8982 2009-09-18  Bruno Haible  <bruno@clisp.org>
8983
8984         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8985         Reported by <erobles@sensacd.com.mx>.
8986
8987 2009-09-17  Eric Blake  <ebb9@byu.net>
8988
8989         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8990         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8991         slashes when checking if last component is missing.
8992         * tests/test-canonicalize.c (main): Test this.
8993
8994         canonicalize, canonicalize-lgpl: honor // if distinct from /
8995         * modules/canonicalize (Files): Add double-slash-root.m4.
8996         * modules/canonicalize-lgpl (Files): Likewise.
8997         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8998         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8999         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
9000         fallback definition.
9001         (canonicalize_filename_mode): Use it to protect //.
9002         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
9003         (__realpath): Likewise.
9004         * tests/test-canonicalize.c (main): Test this.
9005         * tests/test-canonicalize-lgpl.c (main): Likewise.
9006         * modules/canonicalize-tests (Depends-on): Add same-inode.
9007         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
9008
9009         canonicalize-lgpl: fix glibc bug with trailing slash
9010         * m4/canonicalize-lgpl.m4: Move contents...
9011         * m4/canonicalize.m4: ...here.
9012         (gl_CANONICALIZE_LGPL): Factor realpath check...
9013         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
9014         glibc 2.3.5 bug, fixed 2005-04-27.
9015         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
9016         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
9017         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
9018         * modules/canonicalize-lgpl (Files): Manage file rename.
9019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9020         * modules/stdlib (Makefile.am): Substitute witness.
9021         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
9022         is needed.
9023         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
9024         replacement is required.
9025         * lib/canonicalize.c (canonicalize_file_name): Likewise.
9026         * doc/glibc-functions/canonicalize_file_name.texi
9027         (canonicalize_file_name): Document this.
9028         * doc/posix-functions/realpath.texi (realpath): Likewise.
9029
9030         canonicalize-lgpl: reject non-directory with trailing slash
9031         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
9032         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
9033         catches failures in glibc 2.3.5.
9034         * tests/test-canonicalize.c (main): Likewise.
9035
9036         canonicalize-lgpl: use native realpath if it works
9037         * lib/canonicalize-lgpl.c (realpath): Guard with
9038         FUNC_REALPATH_WORKS.
9039         * lib/stdlib.in.h (realpath): Make declaration optional based on
9040         HAVE_REALPATH.
9041         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
9042         native realpath works.
9043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
9044         * modules/stdlib (Makefile.am): Substitute witness.
9045
9046         canonicalize, canonicalize-lgpl: use <stdlib.h>
9047         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
9048         (Include): Mention <stdlib.h>.
9049         (configure.ac): Mention functions we provide.
9050         * modules/canonicalize (configure.ac): Likewise.
9051         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
9052         realpath if canonicalize_file_name is missing.
9053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
9054         * modules/stdlib (Makefile.am): Substitute witnesses.
9055         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
9056         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
9057         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
9058         * NEWS: Document this.
9059         * doc/glibc-functions/canonicalize_file_name.texi
9060         (canonicalize_file_name): Likewise.
9061         * doc/posix-functions/realpath.texi (realpath): Likewise.
9062         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
9063
9064         test-canonicalize: consolidate into single C program
9065         * tests/test-canonicalize.sh: Delete; move setup into...
9066         * tests/test-canonicalize.c (main): ...the program, making it
9067         easier to run in debugger.  Add some tests.
9068         * modules/canonicalize-tests (Files): Remove unused file.
9069         (Depends-on): Add progname.
9070         (configure.ac, Makefile.am): Simplify.
9071
9072         test-canonicalize-lgpl: consolidate into single C program
9073         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
9074         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
9075         easier to run in debugger.  Add some tests.
9076         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
9077         (configure.ac, Makefile.am): Simplify.
9078
9079         canonicalize: avoid resolvepath
9080         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
9081         unnecessary checks.
9082         * lib/canonicalize.c (includes): Simplify.
9083         (canonicalize_file_name): Drop resolvepath implementation.
9084         * modules/canonicalize (Depends-on): Drop filenamecat.
9085
9086         canonicalize: don't lose errno
9087         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
9088         over calls to free.
9089
9090         canonicalize: simplify errno handling
9091         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
9092         assignment.
9093
9094         canonicalize, canonicalize-lgpl: update module dependencies
9095         * modules/canonicalize (Depends-on): Add extensions, lstat,
9096         pathmax, stdlib.
9097         (Files): Drop pathmax.h.
9098         (configure.ac): Adjust macro name.
9099         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
9100         lstat, stdlib, sys_stat.
9101         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
9102         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
9103         extensions.
9104         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
9105         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
9106         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
9107         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
9108         declaration, if available.
9109         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
9110         we can rely on the readlink module.
9111         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
9112         (includes): Use <unistd.h> unconditionally.
9113
9114 2009-09-17  Eric Blake  <ebb9@byu.net>
9115
9116         maint: make Include sections of modules consistent
9117         * modules/alloca: Use only header name; no need to list #include.
9118         * modules/alloca-opt: Likewise.
9119         * modules/arpa_inet: Likewise.
9120         * modules/canon-host: Likewise.
9121         * modules/configmake: Likewise.
9122         * modules/dirent: Likewise.
9123         * modules/eealloc: Likewise.
9124         * modules/environ: Likewise.
9125         * modules/fchdir: Likewise.
9126         * modules/fcntl: Likewise.
9127         * modules/fcntl-h: Likewise.
9128         * modules/gethrxtime: Likewise.
9129         * modules/gettime: Likewise.
9130         * modules/ignore-value: Likewise.
9131         * modules/inet_ntop: Likewise.
9132         * modules/inet_pton: Likewise.
9133         * modules/inttypes: Likewise.
9134         * modules/isnand-nolibm: Likewise.
9135         * modules/isnanf-nolibm: Likewise.
9136         * modules/mbchar: Likewise.
9137         * modules/mbfile: Likewise.
9138         * modules/mbiter: Likewise.
9139         * modules/mbuiter: Likewise.
9140         * modules/netdb: Likewise.
9141         * modules/netinet_in: Likewise.
9142         * modules/nproc: Likewise.
9143         * modules/pagealign_alloc: Likewise.
9144         * modules/poll: Likewise.
9145         * modules/printf-frexp: Likewise.
9146         * modules/pthread: Likewise.
9147         * modules/putenv: Likewise.
9148         * modules/random_r: Likewise.
9149         * modules/relocatable-prog: Likewise.
9150         * modules/search: Likewise.
9151         * modules/select: Likewise.
9152         * modules/selinux-h: Likewise.
9153         * modules/settime: Likewise.
9154         * modules/signal: Likewise.
9155         * modules/size_max: Likewise.
9156         * modules/socklen: Likewise.
9157         * modules/ssize_t: Likewise.
9158         * modules/stdarg: Likewise.
9159         * modules/stdbool: Likewise.
9160         * modules/stddef: Likewise.
9161         * modules/stdint: Likewise.
9162         * modules/stdio: Likewise.
9163         * modules/stdlib: Likewise.
9164         * modules/string: Likewise.
9165         * modules/strings: Likewise.
9166         * modules/sys_file: Likewise.
9167         * modules/sys_ioctl: Likewise.
9168         * modules/sys_select: Likewise.
9169         * modules/sys_socket: Likewise.
9170         * modules/sys_stat: Likewise.
9171         * modules/sys_time: Likewise.
9172         * modules/sys_times: Likewise.
9173         * modules/sys_utsname: Likewise.
9174         * modules/sys_wait: Likewise.
9175         * modules/sysexits: Likewise.
9176         * modules/time: Likewise.
9177         * modules/times: Likewise.
9178         * modules/tmpfile: Likewise.
9179         * modules/trim: Likewise.
9180         * modules/unistd: Likewise.
9181         * modules/wchar: Likewise.
9182         * modules/wctype: Likewise.
9183
9184 2009-09-17  Bruno Haible  <bruno@clisp.org>
9185
9186         Make getdate.y compile on QNX and NetBSD 5 / i386.
9187         * m4/getdate.m4 (gl_GETDATE): Conditionally define
9188         TIME_T_FITS_IN_LONG_INT.
9189         * lib/getdate.y (long_time_t): New type.
9190         (relative_time): Change type of 'seconds' field to long_time_t.
9191         (get_date): Update types of local variables. Check against overflow
9192         during conversion from long_time_t to time_t.
9193         Reported by Matt Kraai <kraai@ftbfs.org>
9194         and Hasso Tepper <hasso@netbsd.org>.
9195
9196 2009-09-17  Bruno Haible  <bruno@clisp.org>
9197
9198         * modules/COPYING: Update copyright years.
9199         * modules/README: Likeiwse.
9200         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
9201         Reported by Ian Beckwith <ianb@erislabs.net>.
9202
9203 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9204
9205         * users.txt: Update references for gnuit package.
9206
9207 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
9208
9209         * m4/getdelim.m4: Fix typo in copyright line.
9210
9211 2009-09-17  Bruno Haible  <bruno@clisp.org>
9212
9213         * lib/atoll.c: Use the standard header with GPL copyright.
9214         * lib/argz.in.h: Likewise.
9215         * lib/glob.c: Likewise.
9216         * lib/glob-libc.h: Likewise.
9217         * lib/random_r.c: Likewise.
9218         * lib/siglist.h: Likewise.
9219         * lib/strsignal.c: Likewise.
9220         Reported by Ian Beckwith <ianb@erislabs.net>.
9221
9222 2009-09-17  Eric Blake  <ebb9@byu.net>
9223
9224         rmdir: ensure correct dependency order
9225         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
9226
9227 2009-09-17  Bruno Haible  <bruno@clisp.org>
9228
9229         Disable assertion that fails on NetBSD 5 / i386.
9230         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
9231         Reported by Sam Steingold <sds@gnu.org>
9232         and Hasso Tepper <hasso@netbsd.org>.
9233
9234 2009-09-16  Eric Blake  <ebb9@byu.net>
9235
9236         unlinkdir: port to mingw
9237         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
9238         on which no one can unlink a directory.
9239
9240         stdlib: sort witness names
9241         * modules/stdlib (Makefile.am): Sort replacements.
9242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
9243         * lib/stdlib.in.h: Likewise.
9244
9245         parse-duration-tests: avoid link failure
9246         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
9247         LIBINTL.
9248         Reported by Tom G. Christensen.
9249
9250         openat-tests: ensure unlinkat behaves like rmdir
9251         * tests/test-rmdir.c (main): Factor guts...
9252         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
9253         * modules/rmdir-tests (Files): Ship new file.
9254         * modules/openat-tests: New test.
9255         * tests/test-unlinkat.c: Likewise.
9256
9257         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
9258         * modules/rmdir-errno (Status, Notice): Now obsolete.
9259
9260         rmdir: work around cygwin 1.5.x and mingw bugs
9261         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
9262         * lib/rmdir.c (rmdir): Work around it.
9263         * modules/rmdir (Status, Notice): No longer obsolete.
9264         (Files): Add dos.m4.
9265         (Depends-on): Add unistd.
9266         (configure.ac): Set witnesses.
9267         (License): Relax to LGPLv2+.
9268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
9269         * modules/unistd (Makefile.am): Substitute witnesses.
9270         * lib/unistd.in.h (rmdir): Declare replacement.
9271         * doc/posix-functions/rmdir.texi (rmdir): Document this.
9272         * modules/rmdir-tests: New tests.
9273         * tests/test-rmdir.c: Likewise.
9274
9275 2009-09-15  Eric Blake  <ebb9@byu.net>
9276
9277         fchdir: improve use of replacement functions
9278         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
9279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
9280         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
9281         REPLACE_CLOSEDIR.
9282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
9283         * modules/sys_stat (Makefile.am): Substitute correct witness.
9284         * modules/dirent (Makefile.am): Likewise.
9285         * modules/unistd (Makefile.am): Likewise.
9286         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
9287         * lib/unistd.in.h (dup): Likewise.
9288         * lib/sys_stat.in.h (fstat): Likewise.
9289
9290         maint: ignore gnulib-tool temp files
9291         * .gitignore: Ignore files created during gnulib-tool --test.
9292
9293 2009-09-13  Jim Meyering  <meyering@redhat.com>
9294
9295         posixtm: don't reject a time that specify "60" as the number of seconds
9296         * lib/posixtm.c (posixtime): The code to reject invalid dates
9297         would also reject a time specified with the .60 suffix.
9298         But POSIX allows that, in order to accommodate leap seconds.
9299         So don't reject it.
9300         (main): Adjust tests accordingly.
9301         * modules/posixtm (Depends-on): Add stpcpy.
9302
9303 2009-09-11  Jim Meyering  <meyering@redhat.com>
9304
9305         announce-gen: include [$release_type] in emitted Subject:
9306         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
9307         e.g., [stable] in the emitted Subject: line.
9308
9309 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9310
9311         Remove obsolete macros from several modules.
9312         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
9313         obsolete Autoconf macros with their modern counterparts.
9314         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
9315         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
9316         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
9317         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
9318         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
9319         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9321         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9322         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9323         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
9324         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9325         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9326         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9327         * m4/sockets.m4 (gl_SOCKETS): Likewise.
9328         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
9329         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
9330         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
9331         * m4/time_r.m4 (gl_TIME_R): Likewise.
9332         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9333         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
9334         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
9335
9336         Fix copyright header in build-aux scripts.
9337         * build-aux/git-version-gen: Fix copyright header to match GPLv3
9338         recommendation.
9339         * build-aux/ncftpput-ftp: Likewise.
9340         * build-aux/update-copyright: Likewise.
9341
9342 2009-09-09  Eric Blake  <ebb9@byu.net>
9343
9344         test-link: allow Linux choice of errno
9345         * tests/test-link.c (main): Relax test for alternate error.
9346
9347         strndup: fix improper m4 caching
9348         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
9349         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
9350         (gl_PREREQ_STRNDUP): Delete.
9351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
9352         * modules/string (Makefile.am): Substitute it.
9353         * lib/string.in.h (strndup): Modernize prototype.
9354
9355         getcwd: port to mingw
9356         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
9357         different from the POSIX assumptions made throughout the getcwd
9358         module; fortunately, the mingw getcwd does not need replacement.
9359         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
9360         * modules/getcwd-tests: New test.
9361         * tests/test-getcwd.c: Likewise.
9362
9363         link: fix platform bugs
9364         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
9365         * lib/link.c (link): Work around them.  Fix related mingw bug.
9366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
9367         * modules/unistd (Makefile.am): Substitute it.
9368         * lib/unistd.in.h (link): Declare replacement.
9369         * doc/posix-functions/link.texi (link): Document this.
9370         * modules/link (Depends-on): Add strdup-posix, sys_stat.
9371
9372         test-link: consolidate into single C program, test more cases
9373         * tests/test-link.sh: Delete.
9374         * tests/test-link.c: Test more error conditions.  Exposes bugs on
9375         at least Cygwin and Solaris.
9376         * modules/link-tests (Files): Remove unused file.
9377         (Depends-on): Add errno, sys_stat.
9378         (Makefile.am): Simplify.
9379
9380 2009-09-08  Bruno Haible  <bruno@clisp.org>
9381
9382         Work around towlower, towupper bug on mingw.
9383         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
9384         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
9385         * doc/posix-functions/towlower.texi: Mention the mingw bug.
9386         * doc/posix-functions/towupper.texi: Likewise.
9387         Reported by Eric Blake.
9388
9389 2009-09-08  Jim Meyering  <meyering@redhat.com>
9390
9391         build: don't try to run autoheader if we don't use it
9392         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
9393         is not used in configure.ac.
9394
9395 2009-09-08  Eric Blake  <ebb9@byu.net>
9396
9397         euidaccess: fix compilation error
9398         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
9399
9400         rawmemchr: relax license
9401         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
9402         okay.
9403         Reported by Jim Meyering.
9404
9405         mkfifoat: new module
9406         * modules/mkfifoat: New file.
9407         * lib/mkfifoat.c: Likewise.
9408         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
9409         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
9410         * modules/sys_stat (Makefile.am): Use them.
9411         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
9412         * MODULES.html.sh (File system functions): Mention module.
9413         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
9414         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
9415         * modules/mkfifoat-tests: New test.
9416         * tests/test-mkfifoat.c: Likewise.
9417
9418         strchrnul: relax license
9419         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
9420         okay.
9421         Reported by Jim Meyering.
9422
9423 2009-09-08  Eric Blake  <ebb9@byu.net>
9424
9425         fstatat: fix compilation on Solaris
9426         * lib/fstatat.c (includes): Add fcntl.h.
9427         Reported by Pádraig Brady.
9428
9429 2009-09-07  Eric Blake  <ebb9@byu.net>
9430
9431         rename: modernize replacement
9432         * modules/rename (Depends-on): Add stdio.
9433         (configure.ac): Declare witness.
9434         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
9435         stdio take care of replacement.
9436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
9437         * modules/stdio (Makefile.am): Substitute them.
9438         * lib/stdio.in.h (rename): Declare replacement.
9439         * lib/rename.c (includes): Allow cross-compilation to non-windows
9440         machines.
9441         * doc/posix-functions/rename.texi (rename): Improve
9442         documentation.
9443
9444         stdio: sort witness names
9445         * modules/stdio (Makefile.am): Sort replacements.
9446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9447         * lib/stdio.in.h: Likewise.
9448
9449         getcwd: minor cleanups
9450         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9451         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9452
9453         openat: provide more convenience names
9454         * modules/faccessat (configure.ac): Add C witness.
9455         * lib/unistd.in.h (readlinkat): Fix typo.
9456         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9457         convenience wrappers.
9458         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9459         wrappers in syntax checks.
9460
9461 2009-09-06  Eric Blake  <ebb9@byu.net>
9462
9463         doc: fix comments in recent patches
9464         * lib/faccessat.c: Mention correct function.
9465         * lib/fchmodat.c: Likewise.
9466         * lib/fchownat.c: Likewise.
9467         * lib/symlinkat.c: Likewise.
9468         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9469         constants.
9470
9471         faccessat, symlinkat: continue cleanup of previous patch
9472         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9473         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9474         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9476         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9477         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9478         set.
9479
9480 2009-09-06  Bruno Haible  <bruno@clisp.org>
9481
9482         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9483         (fstatat): Declare if GNULIB_FSTATAT is set.
9484         (mkdirat): Declare if GNULIB_MKDIRAT is set.
9485         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9486         (unlinkat): Declare if GNULIB_UNLINKAT is set.
9487         * modules/fcntl-h (Files): Remove m4/openat.m4.
9488         * modules/sys_stat (Files): Remove m4/openat.m4.
9489         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9490         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9491         * modules/unistd (Files): Remove m4/openat.m4.
9492         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9493         GNULIB_OPENAT.
9494         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9495         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9497         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9498         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9499         gl_OPENAT_DEFAULTS.
9500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9501         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9502         Don't require gl_OPENAT_DEFAULTS.
9503         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9504         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9505         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9506         (gl_OPENAT_DEFAULTS): Remove macro.
9507
9508 2009-09-06  Bruno Haible  <bruno@clisp.org>
9509
9510         * modules/openat (configure.ac): Remove unneeded witness.
9511
9512 2009-09-06  Bruno Haible  <bruno@clisp.org>
9513
9514         Set errno to ENOSYS when a function is entirely unsupported.
9515         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9516         EOPNOTSUPP.
9517         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9518         * modules/chown (Depends-on): Remove errno.
9519
9520 2009-09-06  Bruno Haible  <bruno@clisp.org>
9521
9522         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9523
9524 2009-09-06  Bruno Haible  <bruno@clisp.org>
9525
9526         * lib/sys_stat.in.h: Fix preprocessor command indentation.
9527
9528 2009-09-06  Ben Pfaff  <blp@gnu.org>
9529             Bruno Haible  <bruno@clisp.org>
9530
9531         Work around a glibc bug in strtok_r.
9532         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9533         Undefine if UNDEFINE_STRTOK_R is set.
9534         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9536         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9537         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9538         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9539         UNDEFINE_STRTOK_R.
9540         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9541
9542 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
9543
9544         exclude: minor fix
9545         * lib/exclude.c: Include wctype.h
9546
9547 2009-09-06  Akim Demaille  <demaille@gostai.com>
9548
9549         bootstrap: improve error message
9550         * build-aux/bootstrap (find_tool): Upon failure, report the list
9551         of candidates.
9552         Honor the initial value of the envvar.
9553
9554 2009-09-05  Eric Blake  <ebb9@byu.net>
9555
9556         symlinkat: new module
9557         * modules/symlinkat: New file.
9558         * lib/symlinkat.c: Likewise.
9559         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9561         * modules/unistd (Makefile.am): Use them.
9562         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9563         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9564         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9565         * MODULES.html.sh (File system functions): Mention module.
9566         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9567         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9568         * modules/symlinkat-tests: New test.
9569         * tests/test-symlinkat.c: Likewise.
9570
9571         test-openat-safer: add more checks
9572         * tests/test-openat-safer.c (main): Check more code paths.
9573
9574 2009-09-05  Jim Meyering  <meyering@redhat.com>
9575
9576         syntax-check: detect unnecessary inclusion of openat.h
9577         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9578
9579 2009-09-05  Bruno Haible  <bruno@clisp.org>
9580
9581         Support towlower, towupper.
9582         * doc/posix-functions/towlower.texi: Mention module wctype.
9583         * doc/posix-functions/towupper.texi: Likewise.
9584         * lib/wctype.in.h (towlower, towupper): New functions.
9585         * tests/test-wctype.c: Include stdio.h, stdlib.h.
9586         (ASSERT): New macro.
9587         (e): New variable.
9588         (main): Test also towlower, towupper. Test WEOF argument.
9589         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9590
9591 2009-09-05  Bruno Haible  <bruno@clisp.org>
9592
9593         Fix conversion behaviour when the input is invalid.
9594         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9595         mark occurring in first pass of indirect conversion.
9596         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9597         input.
9598         Found by clang's static analyzer.
9599
9600 2009-09-05  Bruno Haible  <bruno@clisp.org>
9601
9602         * tests/test-striconveh.c (main): Test indirect conversion on platforms
9603         where direct conversion is possible.
9604
9605 2009-09-04  Eric Blake  <ebb9@byu.net>
9606
9607         openat: fail with ENOENT on empty name
9608         * lib/openat-proc.c (openat_proc_name): Special-case the empty
9609         buffer.
9610
9611         link-follow: fix logic bug in prior patch
9612         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9613         reversed sense of yes and no in prior patch.  Avoid confusing
9614         compilation failure with desired semantics.
9615
9616         link-follow: accomodate mingw and cross-compilation
9617         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9618         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
9619         cross-compilation results to -1, to make linkat easier to
9620         implement when cross-compiling.  Trivially support mingw.
9621         * modules/link-follow (configure.ac): Call new name.
9622         * NEWS: Mention this.
9623
9624 2009-09-03  Eric Blake  <ebb9@byu.net>
9625
9626         faccessat: compile replacement
9627         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9628         needed.
9629
9630         fts: fix compilation error
9631         * lib/fts.c (includes): Re-add "openat.h", for
9632         openat_needs_fchdir.
9633
9634         faccessat: new module
9635         * modules/faccessat: New file.
9636         * lib/faccessat.c: Likewise.
9637         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9639         * modules/unistd (Makefile.am): Use it.
9640         * lib/unistd.in.h (faccessat): Declare it.
9641         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9642         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9643         * MODULES.html.sh (File system functions): Mention it.
9644         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9645         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9646
9647         euidaccess: prefer POSIX over non-standard implementation
9648         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9649         * lib/euidaccess.c (euidaccess): Use it if available.
9650
9651         openat: make template easier to use
9652         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9653         AT_FUNC_F2 to be undefined.
9654         (VALIDATE_FLAG): New macro; use it to reject bad flags.
9655         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9656         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9657         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9658         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9659         Likewise.
9660         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9661         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9662         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9663         Likewise.
9664
9665         openat: declare in POSIX headers
9666         * NEWS: Mention this.
9667         * modules/openat (configure.ac): Declare witnesses.
9668         (Depends-on): Add fcntl-h, sys_stat, unistd.
9669         (Include): Mention correct headers.
9670         * modules/fcntl-h (Depends-on): Add link-warning.
9671         (Files): Add openat.m4.
9672         (Makefile.am): Substitute witnesses.
9673         * modules/sys_stat (Files, Makefile.am): Likewise.
9674         * modules/unistd (Files, Makefile.am): Likewise.
9675         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9676         (gl_OPENAT_DEFAULTS): New macro.
9677         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9679         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9680         (SYS_STAT_H): Remove unused variable.
9681         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9682         * lib/fcntl--.h (includes): Remove unneeded header.
9683         * lib/openat-safer.c (includes): Likewise.
9684         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9685         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9686         appropriate headers.
9687         (__OPENAT_PREFIX): Delete.
9688         * lib/fcntl.in.h (openat): Provide declaration.
9689         (AT_FDCWD): Fix Solaris bug.
9690         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9691         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9692         * lib/fchmodat.c (includes):  Adjust to find declaration.
9693         * lib/fchownat.c (includes): Likewise.
9694         * lib/mkdirat.c (includes): Likewise.
9695         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
9696         still visible.
9697
9698 2009-09-02  Eric Blake  <ebb9@byu.net>
9699
9700         errno: use consistently
9701         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9702         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9703         * lib/canonicalize.c (ELOOP): Likewise.
9704         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9705         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9706         * lib/lchown.c (EOPNOTSUPP): Likewise.
9707         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9708         * lib/savewd.c (ESTALE): Likewise.
9709         * lib/settime.c (ENOSYS): Likewise.
9710         * lib/utimens.c (ENOSYS): Likewise.
9711         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9712         * lib/chdir-safer.c (ELOOP): Likewise.
9713         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9714         * modules/c-stack (Depends-on): Add errno.
9715         * modules/canonicalize (Depends-on): Likewise.
9716         * modules/chdir-safer (Depends-on): Likewise.
9717         * modules/fdopendir (Depends-on): Likewise.
9718         * modules/inet_ntop (Depends-on): Likewise.
9719         * modules/inet_pton (Depends-on): Likewise.
9720         * modules/lchown (Depends-on): Likewise.
9721         * modules/openat (Depends-on): Likewise.
9722         * modules/savewd (Depends-on): Likewise.
9723         * modules/settime (Depends-on): Likewise.
9724         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9725
9726         fts: avoid leaking fds
9727         * modules/fts (Depends-on): Add cloexec.
9728         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9729         flag.
9730
9731         fts: make directory fds more robust
9732         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9733         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9734
9735         backupfile, chdir-long, fts, savedir: make safer
9736         * lib/backupfile.c (includes): Use "dirent--.h", since
9737         numbered_backup can write to stderr during readdir.
9738         * lib/savedir.c (includes): Likewise.
9739         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9740         emulation can write to stderr on failure.
9741         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9742         * lib/getcwd.c: Document why opendir_safer is unused.
9743         * lib/glob.c: Likewise.
9744         * lib/scandir.c: Likewise.
9745         * lib/openat-proc.c: Likewise, for open_safer.
9746         * modules/backupfile (Depends-on): Add dirent-safer.
9747         * modules/savedir (Depends-on): Likewise.
9748         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9749         * modules/chdir-long (Depends-on): Add openat-safer.
9750
9751         openat-safer: new module
9752         * modules/openat-safer: New file.
9753         * lib/openat-safer.c: Likewise.
9754         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9755         * lib/fcntl-safer.h (openat_safer): Declare.
9756         * lib/fcntl--.h (openat): Override.
9757         * MODULES.html.sh (File descriptor based I/O): Mention it.
9758         * lib/openat.h: Add double-inclusion guards.
9759         * lib/openat.c (includes): Only include "fcntl-safer.h", not
9760         "fcntl--.h", so we can implement openat.
9761         * modules/openat-safer-tests: New test.
9762         * tests/test-openat-safer.c: New file.
9763
9764         dirent-safer: new module
9765         * modules/dirent-safer: New file.
9766         * lib/dirent--.h: Likewise.
9767         * lib/dirent-safer.h: Likewise.
9768         * lib/opendir-safer.c: Likewise.
9769         * m4/dirent-safer.m4: Likewise.
9770         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9771         * modules/dirent-safer-tests: New test.
9772         * tests/test-dirent-safer.c: New file.
9773         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9774
9775         fdopendir: optimize on mingw
9776         * lib/unistd.in.h (_gl_directory_name): New prototype.
9777         * lib/fchdir.c (_gl_directory_name): Implement it.
9778         (fchdir): Use it to simplify implementation.
9779         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9780         fchdir, when available, to avoid calling [f]chdir().
9781
9782         fdopendir: split into its own module
9783         * lib/openat.c (fdopendir): Move...
9784         * lib/fdopendir.c: ...into new file.
9785         * modules/fdopendir: New module.
9786         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9787         * modules/openat (Depends-on): Add fdopendir.
9788         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9789         fdopendir here.
9790         * modules/savedir (Depends-on): Only need fdopendir, not full
9791         openat.
9792         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9793         * lib/openat.h (fdopendir): Drop prototype.
9794         * lib/dirent.in.h (fdopendir): Provide prototype.
9795         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9796         * modules/dirent (Makefile.am): Substitute them.
9797         * MODULES.html.sh (File system functions): Mention it.
9798         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9799         * modules/fdopendir-tests: New file.
9800         * tests/test-fdopendir.c: Likewise.
9801
9802         fchdir: use more consistent macro convention
9803         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9804         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9805         REPLACE_FCHDIR, rather than relying on config.h macros.
9806         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9807         inside a single make-time REPLACE_FCHDIR block, rather than using
9808         the config.h FCHDIR_REPLACEMENT.
9809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9810         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
9811         Manage fstat replacement.
9812         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9813         REPLACE_FCHDIR.
9814         * modules/sys_stat (Files): Add m4/unistd_h.m4.
9815         (Makefile.am): Substitute REPLACE_FCHDIR.
9816         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9817         FCHDIR_REPLACEMENT.
9818         * lib/dup-safer.c (dup_safer): Likewise.
9819         * lib/dup2.c (rpl_dup2): Likewise.
9820         * lib/dup3.c (rpl_dup3): Likewise.
9821         * lib/open.c (rpl_open): Likewise.
9822
9823         fchdir: simplify error handling, and support dup3
9824         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
9825         stdbool, malloc-posix, realloc-posix.
9826         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9827         (ensure_dirs_slot): Return false on allocation failure.
9828         (rpl_dup2): Delete.
9829         (_gl_register_dup): New function.
9830         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9831         (_gl_register_fd): Close fd on allocation failure.
9832         * lib/fcntl.in.h (_gl_register_fd): Update signature.
9833         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9834         prototype.
9835         (rpl_dup2_fchdir): Delete prototype.
9836         * lib/open.c (open): Update caller.
9837         * lib/dup2.c (dup2): Track fchdir metadata.
9838         * lib/dup3.c (dup3): Likewise.
9839         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9840         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9841
9842 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9843
9844         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9845         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9846         don't pass arguments to AC_OUTPUT.
9847
9848 2009-09-02  Bruno Haible  <bruno@clisp.org>
9849
9850         * modules/mkdtemp (License): Relicense under LGPLv2+.
9851         Reported by Paolo Bonzini.
9852
9853 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9854
9855         Replace uses of obsolete autoconf macros in Jim's modules.
9856         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9857         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9858         can evoke a warning from autoconf when run with -Wobsolete
9859         enabled.  They were declared obsolete for good reasons (see
9860         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9861         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9862         should not continue using the deprecated macros.
9863         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9864         obsolete Autoconf macros with modern counterparts.
9865         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9866         * m4/dos.m4 (gl_AC_DOS): Likewise.
9867         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9868         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9869         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9870         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9871         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9872         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9873         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9874         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9875         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9876         Likewise.
9877         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9878         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9879         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9880         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9881         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9882         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9883
9884 2009-09-01  Eric Blake  <ebb9@byu.net>
9885
9886         fchdir: fix off-by-one bug in previous patch
9887         * lib/fchdir.c (rpl_fstat): Use correct bounds.
9888         (_gl_unregister_fd): Delete useless if.
9889
9890 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
9891
9892         maint.mk: sort the list of syntax-check rules
9893         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9894         easier to get a sense of progress when the rules are run sequentially
9895         and take a long time.
9896
9897 2009-09-01  Simon Josefsson  <simon@josefsson.org>
9898
9899         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9900         * modules/netinet_in: Likewise.
9901         * modules/sys_file: Likewise.
9902         * modules/sys_ioctl: Likewise.
9903         * modules/sys_select: Likewise.
9904         * modules/sys_socket: Likewise.
9905         * modules/sys_stat: Likewise.
9906         * modules/sys_time: Likewise.
9907         * modules/sys_times: Likewise.
9908         * modules/sys_utsname: Likewise.
9909         * modules/sys_wait: Likewise.
9910
9911 2009-09-01  Jim Meyering  <meyering@redhat.com>
9912
9913         fts: help ensure that return values are not ignored
9914         * lib/fts_.h (__GNUC_PREREQ): Define.
9915         (__attribute_warn_unused_result__): Define.
9916         (fts_children, fts_close, fts_open, fts_read): Declare with
9917         __attribute_warn_unused_result__.
9918
9919         fts: fts_close now fails also when closing a dir file descriptor fails
9920         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9921         and propagate to caller, along with errno.
9922
9923         announce-gen: correct formatting in --help output
9924         * build-aux/announce-gen (usage): Move the one-line description in
9925         --help output "up", to where it belongs, just after Usage:.
9926
9927 2009-08-31  Eric Blake  <ebb9@byu.net>
9928
9929         fchdir: port to mingw
9930         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9931         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9932         opened, then use a substitute.
9933         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9934         replacement.
9935         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9936         (_gl_register_fd): No need to check stat if open already filters
9937         all directories.
9938         (fchdir): Fix error condition to match POSIX.
9939         * modules/fchdir (Depends-on): Add sys_stat.
9940         * doc/posix-functions/open.texi (open): Document the limitation.
9941         * modules/fchdir-tests: New file.
9942         * tests/test-fchdir.c: Likewise.
9943
9944         canonicalize: allow cross-testing from cygwin to mingw
9945         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9946         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9947         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9948         Likewise.
9949         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9950         target does not support symlinks.
9951         * tests/test-canonicalize-lgpl.sh: Likewise.
9952
9953         chown: avoid compilation warning on mingw
9954         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9955         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9956         mingw.
9957         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9958         * modules/chown (Depends-on): Add errno.
9959
9960 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9961
9962         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9963         command.
9964
9965 2009-08-31  Jim Meyering  <meyering@redhat.com>
9966
9967         canonicalize: remove useless initialization
9968         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9969         initialization of local, "end".
9970
9971 2009-08-30  Bruno Haible  <bruno@clisp.org>
9972
9973         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9974         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9975         ENOSYS.
9976
9977 2009-08-30  Bruno Haible  <bruno@clisp.org>
9978
9979         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9980         /usr/xpg4/bin/tr when it exists.
9981         * tests/test-pipe-filter-gi1.sh: Likewise.
9982
9983 2009-08-30  Bruno Haible  <bruno@clisp.org>
9984
9985         Work around deficient /usr/bin/id program on Solaris.
9986         * tests/test-file-has-acl.sh (ID): New variable.
9987         * tests/test-set-mode-acl.sh (ID): Likewise.
9988         * tests/test-copy-acl.sh (ID): Likewise.
9989         * tests/test-copy-file.sh (ID): Likewise.
9990
9991 2009-08-30  Bruno Haible  <bruno@clisp.org>
9992
9993         New module 'xstriconveh'.
9994         * lib/xstriconveh.h: New file.
9995         * lib/xstriconveh.c: New file.
9996         * modules/xstriconveh: New file.
9997
9998 2009-08-30  Bruno Haible  <bruno@clisp.org>
9999
10000         Make it easier to use mem_cd_iconveh.
10001         * lib/striconveh.h (iconveh_t): New type.
10002         (iconveh_open, iconveh_close): New declarations.
10003         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10004         with a single 'const iconveh_t *' argument.
10005         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
10006         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
10007         with a single 'const iconveh_t *' argument.
10008         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
10009         * tests/test-striconveh.c (main): Update.
10010         * NEWS: Mention the change.
10011
10012 2009-08-30  Bruno Haible  <bruno@clisp.org>
10013
10014         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
10015         problem.
10016
10017 2009-08-30  Bruno Haible  <bruno@clisp.org>
10018
10019         Work around iconv_open problem on Solaris.
10020         * lib/iconv_open-solaris.gperf: New file.
10021         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
10022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
10023         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
10024         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
10025         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
10026         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
10027
10028 2009-08-29  Jim Meyering  <meyering@redhat.com>
10029
10030         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
10031         * top/maint.mk (cvs-check): Remove target; it was just an alias
10032         to the better-named vc-diff-check.
10033         (maintainer-distcheck): Remove rule.  It was used only from
10034         the (alpha/beta/major) target, and all of its commands but one
10035         were coreutils-specific.
10036         (vc-dist): Remove rule.
10037         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
10038         Run vc-diff-check, not vc-dist.
10039         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
10040
10041 2009-08-27  Bruno Haible  <bruno@clisp.org>
10042
10043         * tests/test-bitrotate.c (main): Remove test that uses a shift count
10044         of 0.
10045
10046 2009-08-27  Bruno Haible  <bruno@clisp.org>
10047
10048         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
10049         compilers.
10050         * doc/func.texi: Document the SunPRO C bug.
10051
10052 2009-08-27  Bruno Haible  <bruno@clisp.org>
10053
10054         Fix link error on Solaris.
10055         * tests/test-parse-duration.c (xstrdup): Remove function.
10056
10057 2009-08-26  Pádraig Brady  <P@draigbrady.com>
10058
10059         ignore-value: handle pointer types, too
10060         * lib/ignore-value.h (__attribute__): Remove definition.
10061         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
10062         of a more concise and more-often effective "(void) i" statement.
10063         (ignore_ptr): New function to suppress warnings from functions that
10064         return pointers, and to make it explicit that one function doesn't
10065         handle all cases.
10066
10067 2009-08-25  Bruno Haible  <bruno@clisp.org>
10068
10069         dup2: work around a Linux bug.
10070         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
10071         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
10072         * doc/posix-functions/dup2.texi: Mention the Linux bug.
10073         Reported by Simon Josefsson.
10074
10075 2009-08-25  Jim Meyering  <meyering@redhat.com>
10076
10077         libguestfs uses gnulib
10078         * users.txt: Add libguestfs.
10079
10080 2009-08-24  Eric Blake  <ebb9@byu.net>
10081
10082         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
10083         * lib/pipe2.c (includes): Add binary-io.h.
10084         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
10085
10086 2009-08-24  Bruno Haible  <bruno@clisp.org>
10087
10088         Tolerate declared but missing accept4 syscall.
10089         * lib/accept4.c (accept4): Invoke original accept4 function first, if
10090         available.
10091         * lib/sys_socket.in.h (accept4): If the function is already present,
10092         override it.
10093         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
10094         * modules/accept4 (Makefile.am): Compile accept4.c always.
10095         Reported by Paolo Bonzini and Eric Blake.
10096
10097 2009-08-23  Bruno Haible  <bruno@clisp.org>
10098
10099         New module 'accept4'.
10100         * lib/sys_socket.in.h (accept4): New declaration.
10101         * lib/accept4.c: New file.
10102         * m4/accept4.m4: New file.
10103         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10104         GNULIB_ACCEPT4, HAVE_ACCEPT4.
10105         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
10106         HAVE_ACCEPT4.
10107         * modules/accept4: New file.
10108         * doc/glibc-functions/accept4.texi: Mention the new module.
10109
10110 2009-08-24  Jim Meyering  <meyering@redhat.com>
10111
10112         progname: also set global program_invocation_name, when possible
10113         Before this change, a libtool-enabled program that calls glibc's
10114         error function would report the program name as
10115         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
10116         * modules/progname (configure.ac): Check for a declaration of
10117         program_invocation_name.
10118         * lib/progname.c:  Include <errno.h>.
10119         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
10120         Set program_invocation_name.
10121
10122 2009-08-23  Bruno Haible  <bruno@clisp.org>
10123
10124         * lib/dup3.c: Include <string.h>.
10125
10126 2009-08-23  Bruno Haible  <bruno@clisp.org>
10127
10128         * lib/dup3.c (dup3): Test only once whether the system actually exists.
10129         * lib/pipe2.c (pipe2): Likewise.
10130         Suggested by Eric Blake.
10131
10132 2009-08-23  Bruno Haible  <bruno@clisp.org>
10133
10134         Tolerate declared but missing dup3 syscall.
10135         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
10136         * lib/unistd.in.h (dup3): If the function is already present,
10137         override it.
10138         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
10139         * modules/dup3 (Makefile.am): Compile dup3.c always.
10140         Reported by Paolo Bonzini.
10141
10142 2009-08-23  Bruno Haible  <bruno@clisp.org>
10143
10144         Tolerate declared but missing pipe2 syscall.
10145         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
10146         available.
10147         * lib/unistd.in.h (pipe2): If the function is already present,
10148         override it.
10149         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
10150         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
10151         Reported by Paolo Bonzini.
10152
10153 2009-08-23  Bruno Haible  <bruno@clisp.org>
10154
10155         * lib/pipe2.c (pipe2): Move #ifs inside function.
10156
10157 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10158
10159         quotearg: document limitations of quote_these_too
10160         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
10161         those limitations are created.
10162         * lib/quotearg.h (set_char_quoting): Document that digits and
10163         letters that are special after backslash are not permitted.
10164         (quotearg_char): Cross-reference set_char_quoting documentation.
10165
10166 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
10167
10168         quotearg: implement custom_quoting_style
10169         * lib/quotearg.c: (struct quoting_options): Add left_quote and
10170         right_quote fields.
10171         (set_custom_quoting): New public function.
10172         (quotearg_buffer_restyled): Add left_quote and right_quote
10173         arguments, handle them very much like locale quoting, and update
10174         all uses.
10175         (quotearg_n_custom): New public function.
10176         (quotearg_n_custom_mem): New public function.
10177         (quotearg_custom): New public function.
10178         (quotearg_custom_mem): New public function.
10179         * lib/quotearg.h: Prototype and document new public functions.
10180         (enum quoting_style): For escape_quoting_style and
10181         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
10182         ignored even though they're otherwise like c_quoting_style.
10183         Add custom_quoting_style member and document with comparison to
10184         clocale_quoting_style.
10185         * tests/test-quotearg.c (custom_quotes): New array.
10186         (custom_results): New array.
10187         (main): Extend to test custom quoting.
10188
10189 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10190
10191         quotearg: fix right quote escaping when it's in quote_these_too
10192         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
10193         quote, be sure to prepend only one backslash.
10194         * tests/test-quotearg.c (use_quote_double_quotes): New function.
10195         (main): Test it.
10196
10197 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
10198
10199         quotearg-tests: test escaping of embedded locale quotes
10200         * tests/test-quotearg.c (struct result_strings): Add member for
10201         new input.
10202         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
10203         (inputs): Add new input.
10204         (results_g): Add expected results.
10205         (flag_results): Likewise.
10206         (locale_results): Likewise.
10207         (compare_strings): Check those.
10208
10209 2009-08-23  Bruno Haible  <bruno@clisp.org>
10210
10211         Tests for module 'dup3'.
10212         * modules/dup3-tests: New file.
10213         * tests/test-dup3.c: New file.
10214
10215         New module 'dup3'.
10216         * lib/unistd.in.h (dup3): New declaration.
10217         * lib/dup3.c: New file.
10218         * m4/dup3.m4: New file.
10219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
10220         HAVE_DUP3.
10221         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
10222         * modules/dup3: New file.
10223         * doc/glibc-functions/dup3.texi: Mention the new module.
10224
10225 2009-08-23  Bruno Haible  <bruno@clisp.org>
10226
10227         Tweak the dup2 test.
10228         * tests/test-dup2.c (main): Create the test file empty. Verify that an
10229         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
10230         the test file is still empty. Fix argument order of lseek.
10231
10232 2009-08-23  Bruno Haible  <bruno@clisp.org>
10233
10234         Avoid test link errors when the modules getopt-gnu, gettext are used.
10235         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
10236         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10237
10238 2009-08-23  Bruno Haible  <bruno@clisp.org>
10239
10240         Fix getdtablesize() on mingw.
10241         * lib/getdtablesize.c (getdtablesize): Implement differently.
10242         * lib/unistd.in.h (getdtablesize): Improve comment.
10243
10244 2009-08-23  Bruno Haible  <bruno@clisp.org>
10245
10246         New module 'mkostemp'.
10247         Based on Ulrich Drepper's 2007-08-10 change in glibc.
10248         * lib/stdlib.in.h (mksotemp): New declaration.
10249         * lib/mkostemp.c: New file, from glibc with modifications.
10250         * lib/tempname.h (GT_FILE): Remove outdated comment.
10251         (gen_tempname): Add flags argument.
10252         * lib/tempname.c (__GT_BIGFILE): Remove macro.
10253         (__GT_FILE): Map to 1.
10254         (small_open, large_open): Remove macros.
10255         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
10256         * lib/mkstemp.c (mkstemp): Update.
10257         * lib/mkdtemp.c (mkdtemp): Likewise.
10258         * m4/mkostemp.m4: New file.
10259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
10260         HAVE_MKOSTEMP.
10261         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
10262         HAVE_MKOSTEMP.
10263         * modules/mkostemp: New file, based on modules/mkstemp.
10264         * doc/glibc-functions/mkostemp.texi: Mention the new module.
10265         * NEWS: Mention the change.
10266
10267 2009-08-23  Bruno Haible  <bruno@clisp.org>
10268
10269         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
10270         Reported by Eric Blake.
10271
10272 2009-08-23  Bruno Haible  <bruno@clisp.org>
10273
10274         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
10275         Reported by Eric Blake.
10276
10277 2009-08-23  Bruno Haible  <bruno@clisp.org>
10278
10279         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
10280         * modules/pipe2 (Depends-on): Likewise.
10281
10282 2009-08-23  Eric Blake  <ebb9@byu.net>
10283
10284         fcntl-h: add O_TTY_INIT support
10285         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
10286         * tests/test-fcntl-h.c (o): Test it.
10287         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10288
10289         fcntl-h: rename from fcntl, in preparation for fcntl(2)
10290         * modules/fcntl: Move <fcntl.h> header replacement...
10291         * modules/fcntl-h: ...to new name, so as not to collide with
10292         like-named function.
10293         * tests/test-fcntl.c: Rename...
10294         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
10295         * modules/fcntl-tests: Rename...
10296         * modules/fcntl-h-tests: ...to this.  Update test file name.
10297         * modules/chdir-long (Depends-on): Update clients.
10298         * modules/chdir-safer (Depends-on): Likewise.
10299         * modules/fcntl-safer (Depends-on): Likewise.
10300         * modules/fts (Depends-on): Likewise.
10301         * modules/mkancesdirs (Depends-on): Likewise.
10302         * modules/mkdir-p (Depends-on): Likewise.
10303         * modules/open (Depends-on): Likewise.
10304         * modules/savewd (Depends-on): Likewise.
10305         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
10306         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
10307
10308 2009-08-22  Bruno Haible  <bruno@clisp.org>
10309
10310         * modules/binary-io (License): Relicense under LGPL.
10311         * modules/pipe2 (License): Likewise.
10312
10313 2009-08-22  Bruno Haible  <bruno@clisp.org>
10314
10315         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
10316         return value.
10317         * lib/pipe-filter-gi.c (filter_init): Likewise.
10318         Reported by Eric Blake.
10319
10320 2009-08-22  Bruno Haible  <bruno@clisp.org>
10321
10322         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
10323         * modules/pipe (Depends-on): Add pipe2.
10324
10325 2009-08-22  Bruno Haible  <bruno@clisp.org>
10326
10327         Tests for module 'pipe2'.
10328         * modules/pipe2-tests: New file.
10329         * tests/test-pipe2.c: New file.
10330
10331         New module 'pipe2'.
10332         * lib/unistd.in.h (pipe2): New declaration.
10333         * lib/pipe2.c: New file.
10334         * m4/pipe2.m4: New file.
10335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
10336         HAVE_PIPE2.
10337         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
10338         * modules/pipe2: New file.
10339         * doc/glibc-functions/pipe2.texi: Mention the new module.
10340
10341 2009-08-22  Bruno Haible  <bruno@clisp.org>
10342
10343         Reference some new glibc functions.
10344         * doc/glibc-functions/accept4.texi: New file.
10345         * doc/glibc-functions/dup3.texi: New file.
10346         * doc/glibc-functions/mkostemp.texi: New file.
10347         * doc/glibc-functions/pipe2.texi: New file.
10348         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
10349         (Glibc sys/socket.h): Refer to accept4.
10350         (Glibc unistd.h): Refer to dup3, pipe2.
10351         Reported by Eric Blake.
10352
10353 2009-08-22  Jim Meyering  <meyering@redhat.com>
10354             Bruno Haible  <bruno@clisp.org>
10355
10356         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
10357         This makes it so packages using automake-1.11's silent-rules option
10358         can print e.g., a single "GEN    configmake.h" line, rather than
10359         the 30+ statements that perform the job.  If you want to see the
10360         actual commands, you can still run "make V=1".
10361         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
10362         so that make output is abbreviated when those variables are defined
10363         appropriately.
10364         * modules/argz: Likewise.
10365         * modules/arpa_inet: Likewise.
10366         * modules/byteswap: Likewise.
10367         * modules/configmake: Likewise.
10368         * modules/dirent: Likewise.
10369         * modules/errno: Likewise.
10370         * modules/fcntl: Likewise.
10371         * modules/float: Likewise.
10372         * modules/fnmatch: Likewise.
10373         * modules/getopt-posix: Likewise.
10374         * modules/glob: Likewise.
10375         * modules/iconv_open: Likewise.
10376         * modules/inttypes: Likewise.
10377         * modules/localcharset: Likewise.
10378         * modules/locale: Likewise.
10379         * modules/math: Likewise.
10380         * modules/netdb: Likewise.
10381         * modules/netinet_in: Likewise.
10382         * modules/poll: Likewise.
10383         * modules/posix_spawnp-tests: Likewise.
10384         * modules/sched: Likewise.
10385         * modules/search: Likewise.
10386         * modules/selinux-h: Likewise.
10387         * modules/signal: Likewise.
10388         * modules/spawn: Likewise.
10389         * modules/stdarg: Likewise.
10390         * modules/stdbool: Likewise.
10391         * modules/stddef: Likewise.
10392         * modules/stdint: Likewise.
10393         * modules/stdio: Likewise.
10394         * modules/stdlib: Likewise.
10395         * modules/string: Likewise.
10396         * modules/strings: Likewise.
10397         * modules/sys_file: Likewise.
10398         * modules/sys_ioctl: Likewise.
10399         * modules/sys_select: Likewise.
10400         * modules/sys_socket: Likewise.
10401         * modules/sys_stat: Likewise.
10402         * modules/sys_time: Likewise.
10403         * modules/sys_times: Likewise.
10404         * modules/sys_utsname: Likewise.
10405         * modules/sys_wait: Likewise.
10406         * modules/sysexits: Likewise.
10407         * modules/time: Likewise.
10408         * modules/unistd: Likewise.
10409         * modules/wchar: Likewise.
10410         * modules/wctype: Likewise.
10411
10412 2009-08-22  Jim Meyering  <meyering@redhat.com>
10413
10414         announce-gen: detect write failure
10415         * build-aux/announce-gen: Add Coda at end.
10416         Remove equivalent-but-more-verbose block at top.
10417
10418 2009-08-19  Akim Demaille  <demaille@gostai.com>
10419
10420         bootstrap: --help to stdout.
10421         * bootstrap (usage): Don't send --help to stderr.
10422         Use a here doc instead of a long string.
10423
10424 2009-08-21  Eric Blake  <ebb9@byu.net>
10425
10426         test-popen-safer: split from test-popen
10427         * tests/test-popen.c (main): Move...
10428         * tests/test-popen.h: ...into new file.
10429         * tests/test-popen-safer2.c: New file.
10430         * modules/popen-tests (Files): Add test-popen.h.
10431         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
10432         Suggested by Bruno Haible.
10433
10434         test-fcntl-safer: split from test-open
10435         * tests/test-open.c (main): Move...
10436         * tests/test-open.h: ...into new file.
10437         * tests/test-fcntl-safer.c: New file.
10438         * modules/open-tests (Files): Add test-open.h.
10439         * modules/fcntl-safer-tests: New file.
10440         Suggested by Bruno Haible.
10441
10442         test-fopen-safer: split from test-fopen
10443         * tests/test-fopen.c (main): Move...
10444         * tests/test-fopen.h: ...into new file.
10445         * tests/test-fopen-safer.c: New file.
10446         * modules/fopen-tests (Files): Add test-fopen.h.
10447         * modules/fopen-safer-tests: New file.
10448         Suggested by Bruno Haible.
10449
10450 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10451
10452         popen-safer: test O_CLOEXEC at run-time.
10453         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10454
10455 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
10456
10457         fcntl: move more flags to the header
10458         * lib/cloexec.c: Do not define FD_CLOEXEC here.
10459         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10460         * lib/fcntl.in.h: Do both things here.
10461
10462 2009-08-21  Jim Meyering  <meyering@redhat.com>
10463
10464         consistently remove $@-t before redirecting to it
10465         * modules/argz: Remove $@-t and $@ before redirecting to the former.
10466         * modules/alloca-opt: Likewise.
10467         * modules/byteswap: Likewise.
10468         * modules/fnmatch: Likewise.
10469         * modules/getopt-posix: Likewise.
10470         * modules/glob: Likewise.
10471         * modules/poll: Likewise.
10472         * modules/posix_spawnp-tests: Likewise.
10473         * modules/sys_socket: Likewise.
10474         * modules/sysexits: Likewise.
10475
10476 2009-08-21  Eric Blake  <ebb9@byu.net>
10477
10478         popen: simplify access to original popen
10479         * lib/popen.c (rpl_popen): No need to worry about popen being a
10480         macro.
10481         Reported by Bruno Haible.
10482
10483 2009-08-20  Eric Blake  <ebb9@byu.net>
10484
10485         build: avoid some compiler warnings
10486         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10487         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10488         type.
10489         (new_exclude_segment, excluded_file_pattern_p)
10490         (excluded_file_name_p): Reduce scope.
10491         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10492         old-style declaration.
10493
10494 2009-08-20  Simon Josefsson  <simon@josefsson.org>
10495
10496         * tests/test-exclude1.sh: Handle Windows EOL.
10497         * tests/test-exclude2.sh: Likewise.
10498         * tests/test-exclude3.sh: Likewise.
10499         * tests/test-exclude4.sh: Likewise.
10500         * tests/test-exclude5.sh: Likewise.
10501         * tests/test-exclude6.sh: Likewise.
10502         * tests/test-exclude7.sh: Likewise.
10503
10504 2009-08-19  Akim Demaille  <demaille@gostai.com>
10505
10506         bootstrap: find sha1sum when named gsha1sum.
10507         * bootstrap (find_tool): New.
10508         ($SHA1SUM): New.
10509         Use it.
10510
10511 2009-08-20  Jim Meyering  <meyering@redhat.com>
10512
10513         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10514         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10515         expression that converts "." in a file name to "\." in the resulting
10516         regexp.  Start with a dummy statement, so that prior shell variable
10517         definitions are expanded portably.  Reported by Simon Josefsson.
10518
10519 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
10520
10521         Fix polling for writeability of a screen buffer.
10522         * lib/poll.c: Distinguish input and screen buffers for the
10523         Win32 implementation.
10524         * lib/select.c: Likewise.
10525
10526 2009-08-19  Eric Blake  <ebb9@byu.net>
10527
10528         popen-safer: prevent popen from clobbering std descriptors
10529         * modules/popen-safer: New file.
10530         * lib/popen-safer.c: Likewise.
10531         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10532         * lib/stdio--.h (popen): Provide override.
10533         * lib/stdio-safer.h (popen_safer): Provide declaration.
10534         * tests/test-popen.c (includes): Partially test this.
10535         * modules/popen-safer-tests: New file, for more tests.
10536         * tests/test-popen-safer.c: Likewise.
10537         * MODULES.html.sh (file stream based Input/Output): Mention it.
10538
10539         tests: test some of the *-safer modules
10540         * modules/fopen-safer (Depends-on): Add fopen.
10541         * modules/fcntl-safer (Depends-on): Add fcntl.
10542         * modules/stdlib-safer (Depends-on): Add stdlib.
10543         (configure.ac): Set indicator.
10544         * modules/unistd-safer (configure.ac): Likewise.
10545         * modules/tmpfile-safer (configure.ac): Likewise.
10546         (Depends-on): Add tmpfile.
10547         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10548         active.
10549         * tests/test-fopen.c (includes): Test safer versions when they are
10550         in use.
10551         * tests/test-open.c (includes): Likewise.
10552
10553         popen: fix cygwin 1.5 bug when stdin closed
10554         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10555         * modules/popen: New file.
10556         * modules/popen-tests: Likewise.
10557         * tests/test-popen.c: Likewise.
10558         * m4/popen.m4: Likewise.
10559         * lib/popen.c: Likewise.
10560         * lib/stdio.in.h (popen): New declaration.
10561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10562         * modules/stdio (Makefile.am): Likewise.
10563         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10564
10565 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
10566
10567         maint.mk: give full control over update-copyright exclusions
10568         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10569         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10570         (update-copyright): Don't force inclusion of top-level
10571         ChangeLog.  Don't force exclusion of all COPYING files, but make
10572         them the default exclusion instead.
10573
10574 2009-08-16  Bruno Haible  <bruno@clisp.org>
10575
10576         Fix test failures on Solaris 10.
10577         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10578         tests when Solaris iconv() is used.
10579         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10580         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10581         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10582         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10583         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10584
10585 2009-08-16  Bruno Haible  <bruno@clisp.org>
10586
10587         Fix test failures on Solaris 10.
10588         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10589         'tr' program and pass it as first argument.
10590         * tests/test-pipe-filter-gi1.sh: Likewise.
10591         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10592         program as first argument.
10593         * tests/test-pipe-filter-gi1.c (main): Likewise.
10594
10595 2009-08-16  Eric Blake  <ebb9@byu.net>
10596
10597         fpurge: fix previous commits
10598         * modules/fpurge (Makefile.am): Make replacement conditional,
10599         partially reverting 2007-04-29 change; missed in previous
10600         attempt.
10601         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10602         is missing.
10603
10604 2009-08-16  Bruno Haible  <bruno@clisp.org>
10605
10606         Clarify fpurge's effect on the file position.
10607         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10608         * tests/test-fpurge.c (main): Make a second pass for checking the file
10609         position.
10610
10611 2009-08-16  Bruno Haible  <bruno@clisp.org>
10612
10613         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10614         declaration of fpurge is missing.
10615         * tests/test-fpurge.c (main): Check that the file has not more contents
10616         than expected. Close the file before removing it.
10617
10618 2009-08-15  Eric Blake  <ebb9@byu.net>
10619
10620         fpurge: don't wrap working cygwin implementation
10621         * lib/fpurge.c (fpurge): Fix comment typo.
10622         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10623         1.7 to avoid replacement.
10624         * tests/test-fpurge.c (main): Enhance test.
10625
10626 2009-08-15  Eric Blake  <ebb9@byu.net>
10627         and Jim Meyering  <meyering@redhat.com>
10628
10629         test-update-copyright: skip if perl is insufficient
10630         * tests/test-update-copyright.sh: Failure to run maintainer tool
10631         should not cause testsuite failure on cygwin 1.5.
10632
10633 2009-08-14  Eric Blake  <ebb9@byu.net>
10634
10635         doc: mention more functions added in cygwin 1.7.0
10636         * doc/posix-headers/limits.texi (limits.h): Update for recent
10637         cygwin additions.
10638         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10639         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10640         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10641         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10642         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10643
10644 2009-08-14  Eric Blake  <ebb9@byu.net>
10645
10646         maint.mk: simplify update-copyright rule
10647         * top/maint.mk (update-copyright-local): Delete, and document how
10648         to do it in cfg.mk instead.
10649         (update-copyright-exclude-regexp): Delete, and document how to do
10650         it in .x-update-copyright instead.
10651         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
10652         exclude ChangeLog.
10653
10654 2009-08-14  Bruno Haible  <bruno@clisp.org>
10655
10656         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10657
10658 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10659
10660         maint.mk: support update-copyright-env
10661         * top/maint.mk (update-copyright-env): Define place-holder.
10662         (update-copyright): Expand $(update-copyright-env) before
10663         invoking update-copyright.
10664
10665 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10666
10667         update-copyright: implement forced reformatting
10668         * build-aux/update-copyright: Implement and document
10669         UPDATE_COPYRIGHT_FORCE.
10670         * tests/test-update-copyright.sh: Test it.
10671
10672 2009-08-14  Eric Blake  <ebb9@byu.net>
10673         and Bruno Haible  <bruno@clisp.org>
10674
10675         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10676         * tests/test-locale.c: Revert previous patch related to NULL.
10677         * tests/test-stdio.c: Likewise.
10678         * tests/test-stdlib.c: Likewise.
10679         * tests/test-string.c: Likewise.
10680         * tests/test-unistd.c: Likewise.
10681         * modules/time-tests (Depends-on): Add verify.
10682         * modules/wchar-tests (Depends-on): Likewise.
10683         * tests/test-time.c: Test for NULL compliance.
10684         * tests/test-wchar.c: Likewise.
10685         * modules/locale (Depends-on): Add stddef.
10686         * modules/stdio (Depends-on): Likewise.
10687         * modules/stdlib (Depends-on): Likewise.
10688         * modules/string (Depends-on): Likewise.
10689         * modules/time (Depends-on): Likewise.
10690         * modules/unistd (Depends-on): Likewise.
10691         * modules/wchar (Depends-on): Likewise.
10692         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10693         * lib/stdlib.in.h (includes): Likewise.
10694         * lib/string.in.h (includes): Likewise.
10695         * lib/time.in.h (includes): Likewise.
10696         * lib/unistd.in.h (includes): Likewise.
10697         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10698         replaced.
10699         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10700         * m4/stddef_h.m4: New file.
10701         * modules/stddef: Likewise.
10702         * lib/stddef.in.h: Likewise.
10703         * modules/stddef-tests: Likewise.
10704         * tests/test-stddef.c: Likewise.
10705         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10706         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10707         * doc/posix-headers/locale.texi (locale.h): Likewise.
10708         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10709         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10710         * doc/posix-headers/string.texi (string.h): Likewise.
10711         * doc/posix-headers/time.texi (time.h): Likewise.
10712         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10713         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10714
10715 2009-08-14  Eric Blake  <ebb9@byu.net>
10716
10717         doc: improve git diff of texinfo files
10718         * .gitattributes: Add rule for *.texi files, with hint on how to
10719         use it.
10720         Copied from m4, and based on a report by Bruno Haible.
10721
10722 2009-08-14  Bruno Haible  <bruno@clisp.org>
10723
10724         Disable multithread support by default on Cygwin 1.5.x for real.
10725         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10726
10727 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
10728
10729         update-copyright: much ado about intervals
10730         * build-aux/update-copyright: Implement and document
10731         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10732         of copyright year intervals.
10733         Also, document UPDATE_COPYRIGHT_YEAR.
10734         * tests/test-update-copyright.sh: Test it.
10735
10736         update-copyright: convert 2-digit to 4-digit years
10737         * build-aux/update-copyright: Implement and document.
10738         * tests/test-update-copyright.sh: Update.
10739
10740 2009-08-14  Jim Meyering  <meyering@redhat.com>
10741
10742         test-exclude: avoid coreutils "make check" failure
10743         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10744         just as in test-argmatch.c.
10745
10746 2009-08-13  Eric Blake  <ebb9@byu.net>
10747
10748         test-dup2: fix bad assumption
10749         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10750         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10751
10752         test-version-etc: fix CRLF portability issue
10753         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10754         recognize \r.
10755         * tests/test-argp-version-etc-1.sh: Likewise.
10756
10757         getopt: update client modules
10758         * modules/argp (Depends-on): Use getopt-gnu.
10759         * modules/git-merge-changelog (Depends-on): Likewise.
10760         * modules/long-options (Depends-on): Likewise.
10761         * modules/xstrtol (Depends-on): Likewise.
10762
10763 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10764
10765         * tests/test-version-etc.sh: Don't fail on different
10766         project/version.  Don't fail on CRLF differences.  Rewrite to use
10767         multiple -e instead of multiple sed forks, suggested by Eric Blake
10768         <ebb9@byu.net>.
10769         * tests/test-argp-version-etc-1.sh: Likewise.
10770
10771 2009-08-13  Simon Josefsson  <simon@josefsson.org>
10772
10773         * tests/test-version-etc.sh: Don't fail on different
10774         project/version.
10775
10776 2009-08-12  Bruno Haible  <bruno@clisp.org>
10777
10778         Tests for modules 'getopt-posix', 'getopt-gnu'.
10779         * modules/getopt-posix-tests: New file.
10780         * tests/test-getopt.c: New file.
10781         * tests/test-getopt.h: New file.
10782         * tests/test-getopt_long.h: New file.
10783
10784         New modules 'getopt-posix', 'getopt-gnu'.
10785         * modules/getopt-gnu: New file, renamed from modules/getopt.
10786         * modules/getopt-posix: New file.
10787         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10788         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10789         (gl_GETOPT): Remove macro.
10790         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10791         Disable the test against BSD systems that declare optreset. Test
10792         against mingw bug. Test against lack of support of optional arguments
10793         on many platforms.
10794         * doc/glibc-headers/getopt.texi: Update module name and list of
10795         relevant platforms.
10796         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10797         'getopt-gnu' and more portability problems.
10798         * NEWS: Mention the changes.
10799
10800 2009-08-12  Bruno Haible  <bruno@clisp.org>
10801
10802         Ensure that optarg etc. get declared by <unistd.h>.
10803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10804         AC_USE_SYSTEM_EXTENSIONS.
10805         * modules/getopt (Depends-on): Add 'extensions'.
10806
10807 2009-08-12  Bruno Haible  <bruno@clisp.org>
10808
10809         Avoid test link errors.
10810         * modules/pipe-filter-ii-tests (Makefile.am): Define
10811         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10812         * modules/pipe-filter-gi-tests (Makefile.am): Define
10813         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10814         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10815
10816 2009-08-12  Bruno Haible  <bruno@clisp.org>
10817
10818         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10819         gl_GETOPT_SUBSTITUTE before.
10820         (gl_GETOPT): Use it.
10821         * m4/argp.m4 (gl_ARGP): Update.
10822         Reported by Sergey Poznyakoff.
10823
10824         * m4/getopt.m4: Reorder macros.
10825         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10826         (gl_GETOPT_SUBSTITUTE): Remove macro.
10827
10828 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10829
10830         Minor improvement in gitlog-to-changelog
10831
10832         * build-aux/gitlog-to-changelog: New option `--format' makes
10833         output format string configurable.
10834
10835 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
10836
10837         Optimize exclude: use hash tables for non-wildcard patterns.
10838
10839         * lib/exclude.c: Include hash.h and mbuiter.h
10840         (struct exclude_pattern, exclude_segment): New data types.
10841         (struct exclude): Rewrite.
10842         (fnmatch_pattern_has_wildcards): New function.
10843         (new_exclude_segment, free_exclude_segment): New functions.
10844         (excluded_file_pattern_p, excluded_file_name_p): New functions.
10845         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10846         * lib/exclude.h (is_fnmatch_pattern): New prototype.
10847         * modules/exclude: Depend on hash and mbuiter.
10848
10849         * modules/exclude-tests: New file.
10850         * tests/test-exclude.c: New file.
10851         * tests/test-exclude1.sh: New file.
10852         * tests/test-exclude2.sh: New file.
10853         * tests/test-exclude3.sh: New file.
10854         * tests/test-exclude4.sh: New file.
10855         * tests/test-exclude5.sh: New file.
10856         * tests/test-exclude6.sh: New file.
10857         * tests/test-exclude7.sh: New file.
10858
10859 2009-08-12  Bruno Haible  <bruno@clisp.org>
10860
10861         Ensure that getopt() gets declared by <unistd.h>.
10862         * lib/unistd.in.h: Conditionally include getopt.h.
10863         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10864         Set GNULIB_UNISTD_H_GETOPT.
10865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10866         GNULIB_UNISTD_H_GETOPT.
10867         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10868
10869 2009-08-12  Bruno Haible  <bruno@clisp.org>
10870
10871         Clarify logic.
10872         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10873         gl_replace_getopt instead of GETOPT_H.
10874
10875 2009-08-12  Bruno Haible  <bruno@clisp.org>
10876
10877         * m4/getopt.m4: Add comments.
10878
10879 2009-08-12  Bruno Haible  <bruno@clisp.org>
10880
10881         Disable multithread support by default on Cygwin 1.5.x.
10882         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10883         set gl_use_threads=no if not specified otherwise.
10884
10885 2009-08-11  Bruno Haible  <bruno@clisp.org>
10886
10887         Avoid compilation error on NetBSD 5.0.
10888         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10889         * tests/test-stdio.c: Likewise.
10890         * tests/test-stdlib.c: Likewise.
10891         * tests/test-string.c: Likewise.
10892         * tests/test-unistd.c: Likewise.
10893         Reported by Greg Troxel <gdt@ir.bbn.com>
10894         at <https://savannah.gnu.org/support/?106973>.
10895
10896 2009-08-11  Bruno Haible  <bruno@clisp.org>
10897
10898         * modules/dup2-tests (Depends-on): Remove close.
10899
10900         Undo 2009-07-19 commit.
10901         * modules/acl-tests (Depends-on): Remove close.
10902         * modules/binary-io-tests (Depends-on): Likewise.
10903         * modules/closein-tests (Depends-on): Likewise.
10904         * modules/flock-tests (Depends-on): Likewise.
10905         * modules/fsync-tests (Depends-on): Likewise.
10906         * modules/lseek-tests (Depends-on): Likewise.
10907         * modules/pipe-tests (Depends-on): Likewise.
10908         * modules/posix_spawn-tests (Depends-on): Likewise.
10909         * modules/posix_spawnp-tests (Depends-on): Likewise.
10910         * modules/stat-time-tests (Depends-on): Likewise.
10911         * modules/yesno-tests (Depends-on): Likewise.
10912
10913 2009-08-10  Bruno Haible  <bruno@clisp.org>
10914
10915         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10916
10917 2009-08-10  Bruno Haible  <bruno@clisp.org>
10918
10919         Fix a gcc warning.
10920         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10921
10922 2009-08-10  Bruno Haible  <bruno@clisp.org>
10923
10924         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10925         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10926         not only the first time.
10927         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10928         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10929         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10930         is 1, not only the the first time.
10931
10932 2009-08-10  Bruno Haible  <bruno@clisp.org>
10933
10934         Make it possible to use module 'gethostname' without module 'close'.
10935         * lib/unistd.in.h (close): Evoke a link error only if
10936         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10938         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10939         * modules/unistd (Makefile.am): Substitute
10940         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10941         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10942         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10943         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10944         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10945         * modules/sys_ioctl (Makefile.am): Substitute
10946         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10947         * modules/socket (configure.ac): On native Windows, set
10948         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10949         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10950         Reported by Sam Steingold <sds@gnu.org>.
10951
10952 2009-08-10  Bruno Haible  <bruno@clisp.org>
10953
10954         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10955         * modules/ioctl (configure.ac): Likewise.
10956
10957 2009-08-10  Bruno Haible  <bruno@clisp.org>
10958
10959         Avoid collision between gnulib wrapper and libintl wrapper.
10960         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10961         already defined in intl/printf.c.
10962         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10963         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10964
10965 2009-08-09  Bruno Haible  <bruno@clisp.org>
10966
10967         Make <sys/select.h> really self-contained, also on Solaris 10.
10968         * lib/sys_select.in.h: Include <string.h>.
10969         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10970         Solaris 10 problem.
10971         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10972         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10973         Reported by Jim Meyering.
10974
10975 2009-08-09  Bruno Haible  <bruno@clisp.org>
10976
10977         Avoid warnings from 'aclocal' that are due to a use of macro name
10978         AM_XGETTEXT_OPTION that is not defined in automake.
10979         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10980         automake.
10981         * modules/error (configure.ac): Likewise.
10982         * modules/propername (configure.ac): Likewise.
10983         * modules/vasprintf (configure.ac): Likewise.
10984         * modules/verror (configure.ac): Likewise.
10985         * modules/xprintf (configure.ac): Likewise.
10986         * modules/xvasprintf (configure.ac): Likewise.
10987
10988 2009-08-08  Bruno Haible  <bruno@clisp.org>
10989
10990         Avoid compilation error in C++ mode.
10991         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10992         Reported by Sam Steingold <sds@gnu.org>.
10993
10994 2009-08-08  Bruno Haible  <bruno@clisp.org>
10995
10996         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10997         for the various Unix platforms.
10998         * doc/posix-headers/limits.texi: Update platforms list regarding
10999         HOST_NAME_MAX.
11000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11001
11002 2009-08-07  Jim Meyering  <meyering@redhat.com>
11003
11004         selinux-at: fix typo in a comment
11005         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
11006         Spotted by Paolo Bonzini.
11007
11008         selinux-at: remove redundant m4 code, add documentation
11009         * modules/selinux-at (configure.ac): Remove redundant code.
11010         LIB_SELINUX is already set via the dependent module, selinux-h.
11011         (Include): Add quotes around selinux-at.h.
11012         * lib/selinux-at.h: Add documentation.
11013         Reported by Bruno Haible in
11014         http://marc.info/?l=gnulib-bug&m=124958988300749
11015
11016 2009-08-07  Bruno Haible  <bruno@clisp.org>
11017
11018         Avoid link error on MacOS X 10.3 and 10.4.
11019         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
11020         on non-ELF systems.
11021         * lib/argp-pv.c (argp_program_version): Likewise.
11022         Reported by Simon Josefsson.
11023
11024 2009-08-07  Simon Josefsson  <simon@josefsson.org>
11025
11026         * tests/test-version-etc.sh: Use $EXEEXT.
11027
11028 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
11029
11030         update-copyright: update documentation to point to maint.mk
11031         * build-aux/update-copyright: Here.
11032
11033 2009-08-06  Jim Meyering  <meyering@redhat.com>
11034
11035         maint.mk: support update-copyright-local
11036         * top/maint.mk (update-copyright-local): Define place-holder.
11037         (update-copyright): Depend on $(update-copyright-local).
11038
11039 2009-08-06  Jim Meyering  <meyering@redhat.com>
11040
11041         selinux-at: new module
11042         Initially written for coreutils, this module will soon be
11043         used by findutils, too.
11044         * MODULES.html.sh [Misc]: Add selinux-at.
11045         * lib/selinux-at.h: New file, from coreutils.
11046         * lib/selinux-at.c: Likewise.
11047         * modules/selinux-at: Likewise.
11048         (License): Change from LGPL to GPL, since it depends
11049         on the GPL'd openat module.
11050
11051         doc: update README
11052         * README: Remove references to cogito.
11053         Remove cvs-repo-updating instructions from 2007.
11054         Don't imply that CVS is better if you have limited disk space.
11055
11056 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11057
11058         update-copyright: support C-style comments
11059         * build-aux/update-copyright: Implement and document.
11060         * tests/test-update-copyright.sh: Test.
11061
11062 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11063
11064         update-copyright: support omitted "(C)"
11065         * build-aux/update-copyright: Implement and document.  Also,
11066         allow variable whitespace before "(C)".
11067         * tests/test-update-copyright.sh: Test.
11068
11069 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11070
11071         update-copyright: don't trip on non-FSF copyright statements
11072         * build-aux/update-copyright: Fix so that the first correctly
11073         formatted FSF copyright statement is recognized no matter what
11074         appears before it.  Update documentation.
11075         * tests/test-update-copyright.sh: Test that.
11076
11077 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11078
11079         update-copyright: clean up code a little
11080         * build-aux/update-copyright: Append "_re" to the name of any
11081         variable holding a regular expression.
11082         Replace "old" and "new" with "stmt" in variable names.
11083         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
11084         handled correctly.
11085         Format code more consistently.
11086
11087 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
11088
11089         update-copyright-tests: improve portability
11090         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
11091         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
11092
11093 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11094
11095         update-copyright: support @copyright{} and &copy;
11096         * build-aux/update-copyright: Implement and document.
11097         * tests/test-update-copyright.sh: Test.
11098
11099 2009-08-04  Jim Meyering  <meyering@redhat.com>
11100
11101         update-copyright-tests: correctly test EOL=\r\n handling
11102         * tests/test-update-copyright.sh: Put \r at the end of some lines
11103         for the dos-eol tests.  Based on a patch by Joel E. Denny.
11104
11105         maint.mk: make update-copyright exclusion list more configurable
11106         * top/maint.mk (update-copyright): Default to excluding COPYING,
11107         but allow an override, in case someone does want to update that file.
11108
11109         maint.mk: don't update copyright date in COPYING
11110         * top/maint.mk (update-copyright): Exclude COPYING.
11111
11112         maint.mk: add a copyright-updating rule
11113         * top/maint.mk (update-copyright): New rule.
11114         Derived from coreutils/Makefile.am.
11115
11116         update-copyright: rename some variables
11117         * build-aux/update-copyright: Rename a few variables for clarity.
11118         Tweak syntax.  List Joel E. Denny as coauthor.
11119
11120 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
11121
11122         update-copyright: fix bug for 2-digit last year and add tests
11123         * build-aux/update-copyright: Fix bug.
11124         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
11125         specified.
11126         * modules/update-copyright-tests: New
11127         * tests/test-update-copyright.sh: New.
11128
11129 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11130
11131         update-copyright: handle leading tabs in line prefix
11132         * build-aux/update-copyright: Count leading tabs as 8 spaces
11133         when computing margin.  This helps with the formatting of
11134         ChangeLogs, for example.
11135         Fix documentation a little.
11136
11137 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11138
11139         update-copyright: support EOL=\r\n
11140         * build-aux/update-copyright: Implement that.
11141
11142 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
11143
11144         update-copyright: automatically format copyright statements
11145         * build-aux/update-copyright: Implement that.
11146         Also, be a little more predictable and safer by always failing
11147         when the full copyright format is not perfectly recognized as an
11148         unbroken whole.  Discussed at
11149         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
11150         Rewrite documentation.
11151
11152 2009-08-03  Bruno Haible  <bruno@clisp.org>
11153
11154         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
11155
11156 2009-08-02  Bruno Haible  <bruno@clisp.org>
11157
11158         Tests for module 'uname'.
11159         * modules/uname-tests: New file.
11160         * tests/test-uname.c: New file.
11161
11162         New module 'uname'.
11163         * lib/uname.c: New file.
11164         * m4/uname.m4: New file.
11165         * modules/uname: New file.
11166         * doc/posix-functions/uname.texi: Mention the new module.
11167
11168 2009-08-02  Bruno Haible  <bruno@clisp.org>
11169
11170         Tests for module 'sys_utsname'.
11171         * modules/sys_utsname-tests: New file.
11172         * tests/test-sys_utsname.c: New file.
11173
11174         New module 'sys_utsname'.
11175         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
11176         * m4/sys_utsname_h.m4: New file.
11177         * modules/sys_utsname: New file.
11178         * doc/posix-headers/sys_utsname.texi: Mention the new module.
11179
11180 2009-08-02  Bruno Haible  <bruno@clisp.org>
11181
11182         Implicitly initialize the sockets library.
11183         * lib/gethostname.c: Include sockets.h.
11184         (rpl_gethostname): Invoke gl_sockets_startup.
11185         * lib/socket.c: Include sockets.h.
11186         (rpl_socket): Invoke gl_sockets_startup.
11187         * modules/gethostname (Depends-on): Add sockets.
11188         * modules/socket (Depends-on): Likewise.
11189         * tests/test-poll.c: Don't include sockets.h.
11190         (main): Don't invoke gl_sockets_startup.
11191         * tests/test-select.c: Don't include sockets.h.
11192         (main): Don't invoke gl_sockets_startup.
11193
11194 2009-08-02  Bruno Haible  <bruno@clisp.org>
11195
11196         Allow multiple calls to gl_sockets_startup.
11197         * lib/sockets.c (initialized_sockets_version): New variable.
11198         (gl_sockets_startup): Do nothing if already called for this or a higher
11199         version.
11200         (gl_sockets_cleanup): Reset initialized_sockets_version.
11201
11202 2009-08-03  Simon Josefsson  <simon@josefsson.org>
11203
11204         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
11205         different project/version.
11206
11207 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
11208             Bruno Haible  <bruno@clisp.org>
11209
11210         Tests for module 'pipe-filter-gi'.
11211         * modules/pipe-filter-gi-tests: New file.
11212         * tests/test-pipe-filter-gi1.sh: New file.
11213         * tests/test-pipe-filter-gi1.c: New file.
11214         * tests/test-pipe-filter-gi2.sh: New file.
11215         * tests/test-pipe-filter-gi2-main.c: New file.
11216         * tests/test-pipe-filter-gi2-child.c: New file.
11217
11218         New module 'pipe-filter-gi'.
11219         * lib/pipe-filter-gi.c: New file.
11220         * modules/pipe-filter-gi: New file.
11221
11222 2009-08-02  Bruno Haible  <bruno@clisp.org>
11223             Paolo Bonzini  <bonzini@gnu.org>
11224
11225         Tests for module 'pipe-filter-ii'.
11226         * modules/pipe-filter-ii-tests: New file.
11227         * tests/test-pipe-filter-ii1.sh: New file.
11228         * tests/test-pipe-filter-ii1.c: New file.
11229         * tests/test-pipe-filter-ii2.sh: New file.
11230         * tests/test-pipe-filter-ii2-main.c: New file.
11231         * tests/test-pipe-filter-ii2-child.c: New file.
11232
11233         New module 'pipe-filter-ii'.
11234         * lib/pipe-filter.h: New file.
11235         * lib/pipe-filter-ii.c: New file.
11236         * lib/pipe-filter-aux.h: New file.
11237         * modules/pipe-filter-ii: New file.
11238
11239 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11240
11241         * lib/gc-libgcrypt.c: Change copyright to FSF.
11242         * lib/gc-gnulib.c: Likewise.
11243
11244 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
11245
11246         * lib/gethostname.c: Include limits.h.
11247
11248 2009-08-02  Simon Josefsson  <simon@josefsson.org>
11249             Bruno Haible  <bruno@clisp.org>
11250
11251         Ensure HOST_NAME_MAX as part of the gethostname module.
11252         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
11253         define also HOST_NAME_MAX.
11254         * tests/test-gethostname.c: Include <limits.h>.
11255         (main): Check also HOST_NAME_MAX.
11256         * doc/posix-headers/limits.texi: Document the mingw problem.
11257
11258 2009-08-02  Bruno Haible  <bruno@clisp.org>
11259
11260         * lib/gethostname.c (gethostname): Fix handling of large len argument.
11261         Add comments.
11262
11263 2009-03-31  Simon Josefsson  <simon@josefsson.org>
11264
11265         * lib/gethostname.c: Add Windows wrapper.
11266         * m4/gethostname.m4: Look for gethostname in -lws2_32.
11267         * modules/gethostname: Depend on sys_socket & errno, for also
11268         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
11269         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
11270
11271 2009-07-31  Jim Meyering  <meyering@redhat.com>
11272
11273         getloadavg: fix symbol name in comment
11274         * lib/getloadavg.c: Correct a typo I introduced when adding
11275         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
11276         Matt Kraai spotted the problem.
11277
11278 2009-07-29  Matt Kraai  <mkraai@beckman.com>
11279
11280         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
11281         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
11282         code also if ! defined N_NAME_POINTER.
11283         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
11284         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
11285         but the n_name member is a 12-byte array.
11286
11287 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
11288
11289         update-copyright: generalize comment handling
11290         * build-aux/update-copyright: Handle copyright statements
11291         within more comment styles.
11292         Document usage.
11293         Report any file with an external copyright holder or parse failure.
11294
11295 2009-07-29  Jim Meyering  <meyering@redhat.com>
11296
11297         mktime: correct setting of REPLACE_MKTIME
11298         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
11299
11300         update-copyright: new module
11301         * modules/update-copyright: New file.
11302         * build-aux/update-copyright: New file.
11303         * MODULES.html.sh (maint+release support): Add update-copyright.
11304
11305 2009-07-27  Bruno Haible  <bruno@clisp.org>
11306
11307         Fix compilation error when <ctime> is used and mktime is replaced.
11308         * lib/time.in.h (mktime): New declaration.
11309         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
11310         REPLACE_MKTIME instead of defining mktime in config.h.
11311         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
11312         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
11313         Reported by Ross McFarland <rwmcfa1@neces.com>.
11314
11315 2009-07-27  Bruno Haible  <bruno@clisp.org>
11316
11317         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
11318         Reported by Matt Kraai <mkraai@beckman.com>.
11319
11320 2009-07-25  Jim Meyering  <meyering@redhat.com>
11321
11322         maint.mk: avoid warnings about missing files
11323         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
11324         diagnostic when .prev-version does not exist.
11325         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
11326         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
11327         nonexistent cfg.mk.
11328         Suggestions from Simon Josefsson.
11329
11330 2009-07-25  Bruno Haible  <bruno@clisp.org>
11331
11332         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
11333         defined as macros. Needed on QNX 6.4.1.
11334         Reported by Matt Kraai <mkraai@beckman.com>.
11335
11336 2009-07-23  Jim Meyering  <meyering@redhat.com>
11337
11338         maint.mk: invoke "make dist" with a working value of XZ_OPT
11339         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
11340
11341 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
11342
11343         Make fseeko.c compile on QNX.
11344         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
11345
11346 2009-07-22  Peter Simons  <simons@cryp.to>
11347
11348         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
11349         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
11350         * lib/md4.h: Likewise.
11351         * lib/md5.h: Likewise.
11352         * lib/sha1.h: Likewise.
11353         * lib/sha256.h: Likewise.
11354         * lib/sha512.h: Likewise.
11355
11356         tests-sha1: don't assign literal string to 'char *' variable
11357         * tests/test-sha1.c (main): Declare locals with "const" to match
11358         attributes of the right hand side.
11359
11360 2009-07-21  Eric Blake  <ebb9@byu.net>
11361
11362         dup2: fix more mingw problems
11363         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
11364         fd to itself.
11365         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11366         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
11367         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
11368         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
11369         care of mingw bugs.
11370
11371 2009-07-21  Jim Meyering  <meyering@redhat.com>
11372
11373         vc-list-files: avoid failure when /bin/sh is dash
11374         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
11375         On some Debian based systems, /bin/sh is a symlink to dash, and running
11376         this command would omit the "/" following each 'tests' prefix:
11377           dash -x build-aux/vc-list-files -C . tests
11378         That is because bash and dash work differently:
11379           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
11380           bash ok
11381           dash odd
11382
11383 2009-07-21  Eric Blake  <ebb9@byu.net>
11384
11385         dup2-tests: test previous patch
11386         * modules/dup2-tests: New file.
11387         * tests/test-dup2.c: Likewise.
11388         * tests/test-open.c (main): Avoid unspecified behavior.
11389         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
11390         test.
11391
11392         dup2: work around mingw and cygwin 1.5 bug
11393         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
11394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
11395         * modules/unistd (Makefile.am): Substitute it.
11396         * lib/unistd.in.h (dup2): Declare the replacement.
11397         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
11398         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
11399         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
11400         * modules/execute (Depends-on): Add dup2.
11401         * modules/fseterr (Depends-on): Likewise.
11402         * modules/pipe (Depends-on): Likewise.
11403         * modules/posix_spawn-internal (Depends-on): Likewise.
11404
11405 2009-07-21  Bruno Haible  <bruno@clisp.org>
11406
11407         * modules/.gitattributes: New file.
11408
11409 2009-07-20  Bruno Haible  <bruno@clisp.org>
11410
11411         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
11412         (main): Use it.
11413
11414 2009-07-20  Eric Blake  <ebb9@byu.net>
11415
11416         test-pipe: make a bit more robust.
11417         * tests/test-pipe.c (myerr): Allow error messages regardless of
11418         what we do to stderr.
11419         (test_pipe): Rearrange to avoid deadlock.
11420         (child_main): Try a larger read, to ensure we avoided deadlock.
11421         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
11422         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
11423         if misused.
11424
11425 2009-07-19  Jim Meyering  <meyering@redhat.com>
11426
11427         fts: avoid false-positive cycle-detection
11428         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
11429         for each new command line argument.
11430
11431 2009-07-19  Bruno Haible  <bruno@clisp.org>
11432
11433         Fix build error on mingw with the modules sys_select and unistd.
11434         * modules/acl-tests (Depends-on): Add close.
11435         * modules/binary-io-tests (Depends-on): Likewise.
11436         * modules/closein-tests (Depends-on): Likewise.
11437         * modules/flock-tests (Depends-on): Likewise.
11438         * modules/fsync-tests (Depends-on): Likewise.
11439         * modules/lseek-tests (Depends-on): Likewise.
11440         * modules/pipe-tests (Depends-on): Likewise.
11441         * modules/posix_spawn-tests (Depends-on): Likewise.
11442         * modules/posix_spawnp-tests (Depends-on): Likewise.
11443         * modules/stat-time-tests (Depends-on): Likewise.
11444         * modules/yesno-tests (Depends-on): Likewise.
11445
11446 2009-07-19  Bruno Haible  <bruno@clisp.org>
11447
11448         Unify conditionals.
11449         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11450         macros, not at the compiler macros.
11451         * lib/pipe.c: Likewise.
11452         * lib/execute.c: Likewise.
11453         * lib/spawni.c: Likewise.
11454
11455 2009-07-19  Bruno Haible  <bruno@clisp.org>
11456
11457         Fix handling of closed stdin/stdout/stderr on mingw.
11458         * lib/w32spawn.h: Include unistd.h.
11459         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11460         file descriptor with O_NOINHERIT flag.
11461         (fd_safer_noinherit): New function, based on fd-safer.c.
11462         (dup_safer_noinherit): New function, based on dup-safer.c.
11463         (undup_safer_noinherit): New function.
11464         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11465         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11466         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11467         instead of fd_safer.
11468         * tests/test-pipe.c: Include <windows.h>.
11469         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11470
11471         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11472         from main.
11473         (test_pipe): Pass an extra argument for disambiguation.
11474         (main): Invoke parent_main or child_main.
11475
11476         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11477         consistently.
11478
11479 2009-07-18  Eric Blake  <ebb9@byu.net>
11480
11481         test-pipe: fix mingw build
11482         * tests/test-pipe.c (main): Avoid fcntl on mingw.
11483
11484 2009-07-18  Bruno Haible  <bruno@clisp.org>
11485
11486         * modules/pipe-tests (Makefile.am): Fix typo.
11487
11488 2009-07-18  Eric Blake  <ebb9@byu.net>
11489
11490         error: fix mingw build
11491         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11492         Reported by Bruno Haible.
11493
11494         error: avoid undefined use of stdout
11495         * lib/error.c (error, error_at_line): Check that fd 1 is open
11496         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
11497         is handling faults and the close_stdout module wants to report the
11498         detection of closed stdout as an error.
11499
11500 2009-07-17  Eric Blake  <ebb9@byu.net>
11501
11502         pipe: be robust in face of closed fds
11503         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11504         should cause child to misbehave.
11505         * modules/pipe-tests: New module.
11506         * tests/test-pipe.c: New file.
11507         * tests/test-pipe.sh: New file.
11508         Reported by Akim Demaille.
11509
11510 2009-07-14  Bruno Haible  <bruno@clisp.org>
11511
11512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11513         Reported by anonymous kc.
11514
11515 2009-07-07  Jim Meyering  <meyering@redhat.com>
11516
11517         maint.mk: don't look for translatable strings in *.m4 or *.mk
11518         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11519         when searching for translatable strings.
11520
11521 2009-07-05  Jim Meyering  <meyering@redhat.com>
11522
11523         remove superfluous parentheses in STREQ definition
11524         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11525         * lib/getugroups.c (STREQ): Likewise.
11526         * lib/fnmatch.c (STREQ): Likewise.
11527         Spotted by Bruno Haible.
11528
11529 2009-07-04  Jim Meyering  <meyering@redhat.com>
11530
11531         argv-iter: new module
11532         * MODULES.html.sh: Add argv-iter.
11533         * lib/argv-iter.c, lib/argv-iter.h: New files.
11534         * modules/argv-iter: New file.
11535         * modules/argv-iter-tests: New file.
11536         * tests/test-argv-iter.c: Test it.
11537
11538 2009-07-04  Bruno Haible  <bruno@clisp.org>
11539
11540         Fix assertion.
11541         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11542         contains more exact copies of a given entry than file2, leave the extra
11543         copies unpaired rather than aborting.
11544         Reported by Eric Blake.
11545
11546 2009-07-02  Bruno Haible  <bruno@clisp.org>
11547
11548         Speedup git-merge-changelog for git cherry-pick.
11549         * lib/git-merge-changelog.c (struct entries_mapping): New type.
11550         (entries_mapping_get): New function, extracted from compute_mapping.
11551         (entries_mapping_reverse_get): New function.
11552         (compute_mapping): Add a 'full' argument. Return the result in a
11553         'struct entries_mapping'.
11554         (main): Update. Access the mappings through entries_mapping_get.
11555         Reported by Eric Blake.
11556
11557 2009-07-02  Bruno Haible  <bruno@clisp.org>
11558
11559         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11560         best_i.
11561
11562 2009-07-02  Bruno Haible  <bruno@clisp.org>
11563
11564         Speed up approximate search for matching ChangeLog entries.
11565         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11566         argument. Call fstrcmp_bounded instead of fstrcmp.
11567         (compute_mapping, try_split_merged_entry, main): Update callers.
11568
11569 2009-07-02  Bruno Haible  <bruno@clisp.org>
11570
11571         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11572
11573 2009-06-30  Bruno Haible  <bruno@clisp.org>
11574
11575         Reduce the number of uc_is_cased calls.
11576         * lib/unicase.h (casing_suffix_context_t): Add
11577         'first_char_except_ignorable' field.
11578         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11579         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11580         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11581         Update initializer.
11582         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11583         case-ignorable characters.
11584         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11585         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11586         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11587         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11588         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11589
11590 2009-06-30  Bruno Haible  <bruno@clisp.org>
11591
11592         Tests for module 'unicase/ignorable'.
11593         * modules/unicase/ignorable-tests: New file.
11594         * tests/unicase/test-ignorable.c: New file, generated by
11595         gen-uni-tables.
11596
11597         Tests for module 'unicase/cased'.
11598         * modules/unicase/cased-tests: New file.
11599         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11600         * tests/unicase/test-predicate-part1.h: New file, derived from
11601         tests/unictype/test-predicate-part1.h.
11602         * tests/unicase/test-predicate-part2.h: New file, same as
11603         tests/unictype/test-predicate-part2.h.
11604
11605         Fix evaluation of "Before C" condition of FINAL_SIGMA.
11606         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11607         (output_casing_properties): New function.
11608         (main): Call it.
11609         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11610         * lib/unicase/cased.c: Include unictype/bitmap.h.
11611         (uc_is_cased): Define through a bitmap lookup.
11612         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11613         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11614         (uc_is_case_ignorable): Define through a bitmap lookup.
11615         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11616         lib/unictype/bitmap.h.
11617         (Depends-on): Add inline. Clean up.
11618         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11619         lib/unictype/bitmap.h.
11620         (Depends-on): Add inline. Clean up.
11621         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11622         recognition.
11623         * tests/unicase/test-u16-tolower.c (main): Likewise.
11624         * tests/unicase/test-u32-tolower.c (main): Likewise.
11625
11626 2009-06-30  Bruno Haible  <bruno@clisp.org>
11627
11628         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11629         * lib/unicase/u16-casemap.c: Likewise.
11630         * lib/unicase/u32-casemap.c: Likewise.
11631
11632 2009-06-29  Bruno Haible  <bruno@clisp.org>
11633
11634         Define u32_casefold as a wrapper around u32_ct_casefold.
11635         * lib/unicase/u32-casefold.c: Update.
11636         * modules/unicase/u32-casefold (Depends-on): Add
11637         unicase/u32-ct-casefold, unicase/empty-prefix-context,
11638         unicase/empty-suffix-context. Clean up.
11639
11640         Define u16_casefold as a wrapper around u16_ct_casefold.
11641         * lib/unicase/u16-casefold.c: Update.
11642         * modules/unicase/u16-casefold (Depends-on): Add
11643         unicase/u16-ct-casefold, unicase/empty-prefix-context,
11644         unicase/empty-suffix-context. Clean up.
11645
11646         Define u8_casefold as a wrapper around u8_ct_casefold.
11647         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11648         * lib/unicase/u8-casefold.c: Update.
11649         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11650         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11651
11652         Define u32_totitle as a wrapper around u32_ct_totitle.
11653         * lib/unicase/u32-totitle.c: Update.
11654         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11655         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11656
11657         Define u16_totitle as a wrapper around u16_ct_totitle.
11658         * lib/unicase/u16-totitle.c: Update.
11659         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11660         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11661
11662         Define u8_totitle as a wrapper around u8_ct_totitle.
11663         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11664         functions.
11665         (FUNC): Delegate to U_CT_TOTITLE.
11666         * lib/unicase/u8-totitle.c: Update.
11667         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11668         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11669
11670         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11671         invocation.
11672         * modules/unicase/u32-tolower (Depends-on): Add
11673         unicase/empty-prefix-context, unicase/empty-suffix-context.
11674
11675         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11676         invocation.
11677         * modules/unicase/u16-tolower (Depends-on): Add
11678         unicase/empty-prefix-context, unicase/empty-suffix-context.
11679
11680         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11681         * modules/unicase/u8-tolower (Depends-on): Add
11682         unicase/empty-prefix-context, unicase/empty-suffix-context.
11683
11684         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11685         invocation.
11686         * modules/unicase/u32-toupper (Depends-on): Add
11687         unicase/empty-prefix-context, unicase/empty-suffix-context.
11688
11689         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11690         invocation.
11691         * modules/unicase/u16-toupper (Depends-on): Add
11692         unicase/empty-prefix-context, unicase/empty-suffix-context.
11693
11694         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11695         * modules/unicase/u8-toupper (Depends-on): Add
11696         unicase/empty-prefix-context, unicase/empty-suffix-context.
11697
11698         New module 'unicase/u32-ct-casefold'.
11699         * lib/unicase/u32-ct-casefold.c: New file.
11700         * modules/unicase/u32-ct-casefold: New file.
11701
11702         New module 'unicase/u16-ct-casefold'.
11703         * lib/unicase/u16-ct-casefold.c: New file.
11704         * modules/unicase/u16-ct-casefold: New file.
11705
11706         New module 'unicase/u8-ct-casefold'.
11707         * lib/unicase/u8-ct-casefold.c: New file.
11708         * lib/unicase/u-ct-casefold.h: New file, derived from
11709         lib/unicase/u-casefold.h.
11710         * modules/unicase/u8-ct-casefold: New file.
11711
11712         New module 'unicase/u32-ct-totitle'.
11713         * lib/unicase/u32-ct-totitle.c: New file.
11714         * modules/unicase/u32-ct-totitle: New file.
11715
11716         New module 'unicase/u16-ct-totitle'.
11717         * lib/unicase/u16-ct-totitle.c: New file.
11718         * modules/unicase/u16-ct-totitle: New file.
11719
11720         New module 'unicase/u8-ct-totitle'.
11721         * lib/unicase/u8-ct-totitle.c: New file.
11722         * lib/unicase/u-ct-totitle.h: New file, derived from
11723         lib/unicase/u-totitle.h.
11724         * modules/unicase/u8-ct-totitle: New file.
11725
11726         New module 'unicase/u32-ct-tolower'.
11727         * lib/unicase/u32-ct-tolower.c: New file.
11728         * modules/unicase/u32-ct-tolower: New file.
11729
11730         New module 'unicase/u16-ct-tolower'.
11731         * lib/unicase/u16-ct-tolower.c: New file.
11732         * modules/unicase/u16-ct-tolower: New file.
11733
11734         New module 'unicase/u8-ct-tolower'.
11735         * lib/unicase/u8-ct-tolower.c: New file.
11736         * modules/unicase/u8-ct-tolower: New file.
11737
11738         New module 'unicase/u32-ct-toupper'.
11739         * lib/unicase/u32-ct-toupper.c: New file.
11740         * modules/unicase/u32-ct-toupper: New file.
11741
11742         New module 'unicase/u16-ct-toupper'.
11743         * lib/unicase/u16-ct-toupper.c: New file.
11744         * modules/unicase/u16-ct-toupper: New file.
11745
11746         New module 'unicase/u8-ct-toupper'.
11747         * lib/unicase/u8-ct-toupper.c: New file.
11748         * modules/unicase/u8-ct-toupper: New file.
11749
11750         Add context arguments to u*_casemap functions.
11751         * lib/unicase/unicasemap.h: Include unicase.h.
11752         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11753         suffix_context arguments.
11754         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11755         functions.
11756         (FUNC): Add prefix_context and suffix_context arguments. Use
11757         uc_is_cased and uc_is_case_ignorable.
11758         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11759         * lib/unicase/u16-casemap.c: Likewise.
11760         * lib/unicase/u32-casemap.c: Likewise.
11761         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11762         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11763         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11764         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11765         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11766         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11767
11768         New module 'unicase/u32-suffix-context'.
11769         * lib/unicase/u32-suffix-context.c: New file.
11770         * modules/unicase/u32-suffix-context: New file.
11771
11772         New module 'unicase/u16-suffix-context'.
11773         * lib/unicase/u16-suffix-context.c: New file.
11774         * modules/unicase/u16-suffix-context: New file.
11775
11776         New module 'unicase/u8-suffix-context'.
11777         * lib/unicase/u8-suffix-context.c: New file.
11778         * lib/unicase/u-suffix-context.h: New file.
11779         * modules/unicase/u8-suffix-context: New file.
11780
11781         New module 'unicase/empty-suffix-context'.
11782         * lib/unicase/empty-suffix-context.c: New file.
11783         * modules/unicase/empty-suffix-context: New file.
11784
11785         New module 'unicase/u32-prefix-context'.
11786         * lib/unicase/u32-prefix-context.c: New file.
11787         * modules/unicase/u32-prefix-context: New file.
11788
11789         New module 'unicase/u16-prefix-context'.
11790         * lib/unicase/u16-prefix-context.c: New file.
11791         * modules/unicase/u16-prefix-context: New file.
11792
11793         New module 'unicase/u8-prefix-context'.
11794         * lib/unicase/u8-prefix-context.c: New file.
11795         * lib/unicase/u-prefix-context.h: New file.
11796         * lib/unicase/context.h: New file.
11797         * modules/unicase/u8-prefix-context: New file.
11798
11799         New module 'unicase/empty-prefix-context'.
11800         * lib/unicase/empty-prefix-context.c: New file.
11801         * modules/unicase/empty-prefix-context: New file.
11802
11803         New module 'unicase/ignorable'.
11804         * lib/unicase/ignorable.c: New file.
11805         * modules/unicase/ignorable: New file.
11806
11807         New module 'unicase/cased'.
11808         * lib/unicase/caseprop.h: New file.
11809         * lib/unicase/cased.c: New file.
11810         * modules/unicase/cased: New file.
11811
11812         New functions for case mapping of substrings.
11813         * lib/unicase.h (casing_prefix_context_t): New type.
11814         (unicase_empty_prefix_context): New variable.
11815         (u8_casing_prefix_context, u16_casing_prefix_context,
11816         u32_casing_prefix_context, u8_casing_prefixes_context,
11817         u16_casing_prefixes_context, u32_casing_prefixes_context): New
11818         declarations.
11819         (casing_suffix_context_t): New type.
11820         (unicase_empty_suffix_context): New variable.
11821         (u8_casing_suffix_context, u16_casing_suffix_context,
11822         u32_casing_suffix_context, u8_casing_suffixes_context,
11823         u16_casing_suffixes_context, u32_casing_suffixes_context,
11824         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11825         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11826         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11827         declarations.
11828
11829 2009-06-28  Jim Meyering  <meyering@redhat.com>
11830
11831         boostrap: indent only with spaces
11832         * build-aux/bootstrap: Indent only with spaces, never TABs.
11833
11834         bootstrap: split long lines
11835         * build-aux/bootstrap: Keep line length < 80.
11836
11837         bootstrap: sync from coreutils
11838         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11839         just as autoreconf does.  Verify a list of prerequisite
11840         package-name,version-number pairs if defined in bootstrap.conf.
11841         Refer to README-prereq, if prerequisites are not satisfied.
11842
11843 2009-06-27  Eric Blake  <ebb9@byu.net>
11844
11845         tests: add test for bogus NULL definition
11846         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11847         * tests/test-stdlib.c: Likewise.
11848         * tests/test-string.c: Likewise.
11849         * tests/test-locale.c: Likewise.
11850         * tests/test-unistd.c: Likewise.
11851         * modules/stdio-tests (Depends-on): Add verify.
11852         * modules/stdlib-tests (Depends-on): Likewise.
11853         * modules/string-tests (Depends-on): Likewise.
11854         * modules/locale-tests (Depends-on): Likewise.
11855         * modules/unistd-tests (Depends-on): Likewise.
11856
11857 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
11858
11859         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11860         self-explaining comment.
11861         * m4/selinux-selinux-h: Update serial.
11862         (gl_LIBSELINUX): New macro, adding a warning for missing development
11863         packages to code extracted from...
11864         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
11865         Add warning for missing development packages here, too.
11866
11867 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
11868
11869         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11870
11871 2009-06-25  Eric Blake  <ebb9@byu.net>
11872
11873         version-etc: fix regression
11874         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11875         gcc.
11876         (version_etc): Use it, to catch bugs with trailing NULL.
11877         * lib/version-etc.c (version_etc_arn): Delete unused argument.
11878         (version_etc_va): Fix logic bug.
11879         * modules/version-etc-tests: Add test.
11880         * tests/test-version-etc.c: New file.
11881         * tests/test-version-etc.sh: Likewise.
11882
11883 2009-06-25  Sam Steingold  <sds@gnu.org>
11884
11885         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11886         mbtowc declaration.
11887
11888 2009-06-25  Eric Blake  <ebb9@byu.net>
11889
11890         fpurge: migrate into <stdio.h>
11891         * lib/fpurge.h: Delete...
11892         * lib/stdio.in.h (fpurge): ...and declare here, instead.
11893         * lib/fpurge.c (fpurge): Change declaring header.
11894         * modules/fpurge (Files): Drop deleted file.
11895         (Depends-on): Add stdio.
11896         (configure.ac): Set witness.
11897         * modules/stdio (Makefile.am): Support fpurge macros.
11898         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11899         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11900         * lib/fflush.c: Update client.
11901         * tests/test-fpurge.c: Likewise.
11902         * NEWS: Mention the change.
11903
11904 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11905
11906         * lib/argp-version-etc.c (program_authors): Add const
11907         qualifier.
11908         * lib/version-etc.c: Fix typos in the comments.
11909         * modules/argp-version-etc: Depends on version-etc.
11910
11911 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11912
11913         argp-version-etc: new module.
11914
11915         * lib/argp-version-etc.c: New file.
11916         * lib/argp-version-etc.h: New file.
11917         * modules/argp-version-etc: New file.
11918         * modules/argp-version-etc-tests: New file.
11919         * tests/test-argp-version-etc.c: New test.
11920         * tests/test-argp-version-etc-1.sh: New test.
11921
11922 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
11923
11924         Provide additional interfaces and documentation for version-etc
11925         module.
11926
11927         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11928         interfaces.
11929         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11930         prototypes.
11931
11932 2009-06-24  Bruno Haible  <bruno@clisp.org>
11933
11934         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11935         HAVE_LIB${NAME} macro.
11936         Reported by Sam Steingold <sds@gnu.org>.
11937
11938 2009-06-23  Simon Josefsson  <simon@josefsson.org>
11939
11940         * modules/hash-tests (test_hash_LDADD): Link to libintl when
11941         needed.
11942
11943 2009-06-21  Bruno Haible  <bruno@clisp.org>
11944
11945         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11946         work.
11947         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11948         together with LIB${NAME}, LTLIB${NAME}.
11949         Reported by Sam Steingold <sds@gnu.org>.
11950
11951 2009-06-20  Jim Meyering  <meyering@redhat.com>
11952
11953         tests: make sc_require_test_exit_idiom more generic
11954         * top/maint.mk (Exit_witness_file): New overridable variable.
11955         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11956         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11957
11958 2009-06-19  Jim Meyering  <meyering@redhat.com>
11959
11960         hash: reverse order of src/dst parameters in an internal interface
11961         * lib/hash.c (transfer_entries): Reverse order of parameters to
11962         put DST before SRC.  Adjust callers.
11963
11964         tests: test-hash: avoid wholesale duplication
11965         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11966         Instead, use a loop and add a single conditional.
11967
11968         tests: test-hash: allow seed selection via a command line argument
11969         * tests/test-hash.c (get_seed): New function.
11970         (main): Use it.
11971
11972 2009-06-19  Eric Blake  <ebb9@byu.net>
11973
11974         hash: avoid memory leak on allocation failure
11975         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11976         failure.  Factor repeated algorithm...
11977         (transfer_entries): ...into new helper routine.
11978         (hash_delete): React to hash_rehash return value.
11979
11980         hash: reduce memory pressure in hash_rehash no-op case
11981         * lib/hash.c (next_prime): Avoid overflow.
11982         (hash_initialize): Factor bucket size computation...
11983         (compute_bucket_size): ...into new helper function.
11984         (hash_rehash): Use new function and open coding to reduce memory
11985         pressure, and avoid a memory leak in USE_OBSTACK code.
11986         Reported by Jim Meyering.
11987
11988 2009-06-18  Eric Blake  <ebb9@byu.net>
11989
11990         hash: make rotation more obvious
11991         * modules/hash (Depends-on): Add bitrotate and stdint.
11992         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11993         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
11994         (SIZE_MAX): Rely on headers for definition.
11995         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11996         (raw_hasher): Use rotr_sz.
11997         Suggested by Jim Meyering.
11998
11999         hash: fix memory leak in last patch
12000         * lib/hash.c (hash_rehash): Avoid memory leak.
12001
12002         hash: avoid no-op rehashing
12003         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
12004
12005         hash: provide default callback functions
12006         * lib/hash.c (raw_hasher, raw_comparator): New functions.
12007         (hash_initialize): Use them as defaults.
12008         * tests/test-hash.c (main): Test this.
12009
12010         hash: minor optimization
12011         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
12012         when possible.
12013         (hash_initialize): Document this promise.
12014         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
12015         * tests/test-hash.c (hash_compare_strings): Test this.
12016
12017 2009-06-18  Bruno Haible  <bruno@clisp.org>
12018
12019         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
12020         going to be replaced anyway.
12021
12022 2009-06-18  Bruno Haible  <bruno@clisp.org>
12023
12024         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
12025         in one place.
12026         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
12027         be replaced anyway.
12028
12029 2009-06-18  Eric Blake  <ebb9@byu.net>
12030
12031         hash: check for resize before insertion
12032         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
12033         threshold before insertion, so that a pathological hash_rehash
12034         that fills every bucket can still trigger another rehash.
12035
12036 2009-06-18  Jim Meyering  <meyering@redhat.com>
12037
12038         hash-tests: add a loop around the small tests
12039         * tests/test-hash.c (main): Repeat small tests with selected
12040         small initial table sizes.
12041
12042 2009-06-17  Eric Blake  <ebb9@byu.net>
12043
12044         hash: minor cleanups
12045         * lib/hash.h (hash_entry): Make opaque, by moving...
12046         * lib/hash.c (hash_entry): ...here.
12047         (hash_insert): Clarify restrictions on what can be inserted.
12048         (hash_get_next): Clarify when it is safe to remove an element
12049         during traversal.
12050         (check_tuning): Skip verification when tuning is known safe.
12051         (hash_initialize): Clarify restrictions on tuning.
12052
12053 2009-06-17  Jim Meyering  <jim@meyering.net>
12054         and Eric Blake  <ebb9@byu.net>
12055
12056         hash-tests: new module
12057         * modules/hash-tests: New file.
12058         * tests/test-hash.c: New file.
12059
12060 2009-06-17  Eric Blake  <ebb9@byu.net>
12061
12062         strstr-simple: document new module
12063         * MODULES.html.sh: Document new module.
12064
12065         strstr, strcasestr: replace on platforms with broken memchr
12066         * modules/strstr: Split into...
12067         * modules/strstr-simple: ...new module that does not care about
12068         performance, but does care about glibc bug.
12069         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
12070         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
12071         if platform memchr is broken, per Debian bug 521737.
12072         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
12073         memchr.
12074         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
12075         * doc/posix-functions/strstr.texi (strstr): Document the fix.
12076         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
12077         * modules/mountlist (Depends-on): Add strstr-simple.
12078         * modules/gen-uni-tables (Depends-on): Likewise.
12079         * modules/argz (Depends-on): Add strstr.
12080
12081 2009-06-17  Bruno Haible  <bruno@clisp.org>
12082
12083         * modules/posix_spawn-internal (Depends-on): Add errno.
12084
12085 2009-06-17  Bruno Haible  <bruno@clisp.org>
12086
12087         Define missing ESTALE on Interix 3.5.
12088         * lib/errno.in.h (ESTALE): Assign a value if missing.
12089         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
12090         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
12091         missing.
12092         * doc/posix-headers/errno.texi: Mention the Interix bug.
12093         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
12094
12095 2009-06-15  Eric Blake  <ebb9@byu.net>
12096
12097         memchr, memchr2: add valgrind exception
12098         * lib/memchr.valgrind: New file.
12099         * lib/memchr2.valgrind: New file.
12100         * modules/memchr (Files): Distribute valgrind file.
12101         * modules/memchr2 (Files): Likewise.
12102
12103         docs: memchr is no longer obsolete
12104         * MODULES.html.sh: Move memchr from obsolete to string.h section.
12105         * lib/string.in.h (memchr): Simplify logic.
12106
12107 2009-06-14  Jim Meyering  <meyering@redhat.com>
12108
12109         link-follow: fix the "checking..." message to not mention trailing slash
12110         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
12111         never considered trailing slashes.
12112
12113 2009-06-14  Bruno Haible  <bruno@clisp.org>
12114
12115         * m4/memchr.m4: Mention also the bug on IA-64.
12116         * doc/posix-functions/memchr.texi: Likewise.
12117
12118 2009-06-12  Eric Blake  <ebb9@byu.net>
12119
12120         memchr: detect broken x86_64 and alpha implementations
12121         * modules/memchr-tests (Depends-on): Move mmap detection...
12122         * modules/memchr (Depends-on): ...here.
12123         (configure.ac): Set indicator.
12124         * lib/string.in.h (memchr): Declare replacement.
12125         * modules/string (Makefile.am): Trigger replacement.
12126         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
12127         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
12128         bugs.
12129         * doc/posix-functions/memchr.texi (memchr): Document the bug.
12130         * modules/getpagesize (License): Relax license.
12131
12132 2009-06-11  Bruno Haible  <bruno@clisp.org>
12133
12134         * lib/idpriv.h: Add more references.
12135
12136 2009-06-08  Bruno Haible  <bruno@clisp.org>
12137
12138         Tests for module 'idpriv-droptemp'.
12139         * modules/idpriv-droptemp-tests: New file.
12140         * tests/test-idpriv-droptemp.sh: New file.
12141         * tests/test-idpriv-droptemp.su.sh: New file.
12142         * tests/test-idpriv-droptemp.c: New file.
12143
12144         New module 'idpriv-droptemp'.
12145         * lib/idpriv-droptemp.c: New file.
12146         * modules/idpriv-droptemp: New file.
12147
12148 2009-06-08  Bruno Haible  <bruno@clisp.org>
12149
12150         Tests for module 'idpriv-drop'.
12151         * modules/idpriv-drop-tests: New file.
12152         * tests/test-idpriv-drop.sh: New file.
12153         * tests/test-idpriv-drop.su.sh: New file.
12154         * tests/test-idpriv-drop.c: New file.
12155
12156         New module 'idpriv-drop'.
12157         * lib/idpriv.h: New file.
12158         * lib-idpriv-drop.c: New file.
12159         * m4/idpriv.m4: New file.
12160         * modules/idpriv-drop: New file.
12161
12162 2009-06-08  Bruno Haible  <bruno@clisp.org>
12163
12164         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
12165         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12166         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12167         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12168         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12169         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12170         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12171
12172 2009-06-08  Eric Blake  <ebb9@byu.net>
12173
12174         test-strstr: use memory fence, when possible
12175         * tests/test-strstr.c (main): Use memory fence, in order to be
12176         more likely to trigger Debian bug 521737.
12177         * modules/strstr-tests (Files): Pull in additional files.
12178
12179         memchr: no longer obsolete, for wider field testing
12180         * modules/memchr (Status, Notice): Delete, this module is no
12181         longer obsolete.
12182         * modules/vasnprintf (Depends-on): Add memchr.
12183
12184 2009-06-07  Jim Meyering  <meyering@redhat.com>
12185
12186         hash: declare some functions with the warn_unused_result attribute
12187         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
12188
12189 2009-06-07  Bruno Haible  <bruno@clisp.org>
12190
12191         * tests/test-alignof.c: Don't test int64_t if it does not exist.
12192         Reported by Eric Blake.
12193
12194 2009-06-06  Eric Blake  <ebb9@byu.net>
12195
12196         test-alignof: fix typo with long double
12197         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
12198         compiler error.
12199
12200 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
12201
12202         Escape non-texinfo { and }s.
12203         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
12204         markup error.
12205
12206 2009-06-04  Jim Meyering  <meyering@redhat.com>
12207
12208         gitlog-to-changelog: don't infloop on an empty commit log
12209         * build-aux/gitlog-to-changelog: Warn about an empty log message.
12210         Reported by Boris Petersen <transacid@centerim.org>.
12211
12212 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
12213
12214         version-etc: extend for packagers
12215         Add three new configure options, intended for packagers:
12216           --with-packager="packager name"
12217           --with-packager-version="packager-specific version"
12218           --with-packager-bug-reports="packager bug reporting"
12219         An example with coreutils:
12220           $ ./configure \
12221             --with-packager=Gentoo \
12222             --with-packager-bug-report=http://bugs.gentoo.org/ \
12223             --with-packager-version="patchset 1.6"
12224           $ ./src/ls --version | head -n2
12225           ls (GNU coreutils) 7.1-dirty
12226           Packaged by Gentoo (patchset 1.6)
12227         Note that the bug reporting info via --help doesn't show up because
12228         coreutils uses its own custom emit_bug_reporting_address() implementation
12229         in src/system.h.  If it didn't, it'd look like:
12230           $ ./src/ls --help | tail -n4
12231           Report bugs to <bug-coreutils@gnu.org>.
12232           Report Gentoo bugs to <http://bugs.gentoo.org/>.
12233           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
12234           General help using GNU software: <http://www.gnu.org/gethelp/>.
12235         * lib/version-etc.c: Print new information, if provided.
12236         * m4/version-etc.m4: New file.
12237         * modules/version-etc (Files): Add m4/version-etc.m4.
12238         (configure.ac): Add gl_VERSION_ETC.
12239
12240 2009-05-31  Bruno Haible  <bruno@clisp.org>
12241
12242         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
12243         and 'int64_t'.
12244         * modules/alignof-tests (Dependencies): Add stdint.
12245         Reported by Eric Blake.
12246
12247 2009-05-31  Bruno Haible  <bruno@clisp.org>
12248
12249         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
12250         restriction due to compiler bugs.
12251         Reported by Eric Blake.
12252
12253 2009-05-31  Simon Josefsson  <simon@josefsson.org>
12254             Bruno Haible  <bruno@clisp.org>
12255
12256         Fix test-alignof failure.
12257         * lib/alignof.h (alignof_slot): New macro.
12258         (alignof_type): New macro, with the same semantics as the previous
12259         'alignof'.
12260         (alignof): Alias to alignof_slot.
12261         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
12262         check that the results are usable as constant expressions.
12263
12264 2009-05-31  Bruno Haible  <bruno@clisp.org>
12265
12266         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
12267         * tests/test-memchr.c (main): Check that memchr does not read past the
12268         first occurrence of the byte.
12269         * tests/test-strstr.c (main): Update comment.
12270         Suggested by Eric Blake.
12271
12272 2009-05-30  Bruno Haible  <bruno@clisp.org>
12273
12274         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
12275         detail how to use dumpbin.
12276         Reported by David Byron <dbyron@dbyron.com>.
12277
12278 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12279
12280         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
12281
12282 2009-06-02  Simon Josefsson  <simon@josefsson.org>
12283
12284         * m4/manywarnings.m4: Add GCC 4.4 warnings.
12285
12286 2009-05-28  Bruno Haible  <bruno@clisp.org>
12287
12288         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
12289         build-aux/ files.
12290
12291 2009-05-28  Simon Josefsson  <simon@josefsson.org>
12292
12293         * gnulib-tool (func_import): Transform license on build-aux/ files too.
12294
12295 2009-05-27  Simon Josefsson  <simon@josefsson.org>
12296
12297         * gnulib-tool (sed_transform_main_lib_file)
12298         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
12299         regexps.
12300
12301 2009-05-26  Simon Josefsson  <simon@josefsson.org>
12302
12303         * tests/test-strstr.c: Add another self-test.
12304         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
12305         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
12306
12307 2009-05-23  Bruno Haible  <bruno@clisp.org>
12308
12309         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
12310         change.
12311
12312 2009-05-21  Bruno Haible  <bruno@clisp.org>
12313
12314         Simplify use of mode_t varargs.
12315         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
12316         uses 'mode_t' or 'int'.
12317         * lib/openat.c (openat): Likewise.
12318         * lib/open-safer.c (open_safer): Likewise.
12319         * m4/mode_t.m4: New file.
12320         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
12321         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
12322         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
12323         * modules/open (Files): Add m4/mode_t.m4.
12324         * modules/openat (Files): Likewise.
12325         * modules/fcntl-safer (Files): Likewise.
12326         Suggested by Eric Blake.
12327
12328 2009-05-21  Pádraig Brady  <P@draigbrady.com>
12329
12330         * doc/glibc-functions/fallocate.texi: New file.
12331         * doc/gnulib.texi: Include it.
12332
12333 2009-05-21  Eric Blake  <ebb9@byu.net>
12334             Bruno Haible  <bruno@clisp.org>
12335
12336         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
12337         invocations.
12338         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
12339
12340 2009-05-21  Eric Blake  <ebb9@byu.net>
12341             Bruno Haible  <bruno@clisp.org>
12342
12343         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
12344         include_next. Fix of 2008-11-20 commit.
12345         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
12346         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
12347         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
12348         NEXT_MATH_H.
12349         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
12350         instead of NEXT_MATH_H.
12351
12352 2009-05-21  Bruno Haible  <bruno@clisp.org>
12353
12354         Avoid redefinition warnings for SIZE_MAX.
12355         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
12356         Reported by Simon Josefsson.
12357
12358 2009-05-21  Bruno Haible  <bruno@clisp.org>
12359
12360         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
12361         AC_CACHE_VAL.
12362
12363 2009-05-20  Bruno Haible  <bruno@clisp.org>
12364
12365         Make zeroptr.h work on mingw.
12366         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
12367         mprotect.
12368         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
12369         * modules/memchr2-tests (configure.ac): Likewise.
12370         * modules/memcmp-tests (configure.ac): Likewise.
12371         * modules/memmem-tests (configure.ac): Likewise.
12372         * modules/memrchr-tests (configure.ac): Likewise.
12373         Reported by Simon Josefsson.
12374
12375 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12376
12377         * tests/test-glob.c: Include string.h for strcmp prototype.
12378
12379 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12380
12381         * modules/getdelim (Depends-on): Add explicit stdint, although it
12382         was implicitly already pulled in via realloc-posix.
12383         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
12384
12385 2009-05-20  Simon Josefsson  <simon@josefsson.org>
12386
12387         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
12388         G. Christensen" <tgc@jupiterrise.com>.
12389         * m4/sys_socket_h.m4: Check for sa_family_t.
12390         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
12391         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
12392         * tests/test-sys_socket.c: Check that sa_family_t works.
12393
12394 2009-05-18  Eric Blake  <ebb9@byu.net>
12395
12396         maint.mk: allow gnulib_dir in VPATH build
12397         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
12398
12399 2009-05-15  Jim Meyering  <meyering@redhat.com>
12400
12401         maint.mk: Give gnulib_dir a default definition.
12402         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
12403         Thus, most packages no longer need to specify this variable in cfg.mk
12404
12405 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
12406
12407         rename.m4: fix typos that would make non-mingw cross-configure fail
12408         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
12409
12410 2009-05-13  Eric Blake  <ebb9@byu.net>
12411
12412         mmap-anon: avoid out-of-order autoconf expansion
12413         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
12414         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
12415         * modules/memchr-tests (Depends-on): Add extensions.
12416         * modules/memchr2-tests (Depends-on): Add extensions.
12417         * modules/memcmp-tests (Depends-on): Add extensions.
12418         * modules/memmem-tests (Depends-on): Add extensions.
12419         * modules/memrchr-tests (Depends-on): Add extensions.
12420
12421 2009-05-13  Bruno Haible  <bruno@clisp.org>
12422
12423         Make some tests ISO C 99 compliant.
12424         * tests/zerosize-ptr.h: New file.
12425         * tests/test-memchr.c: Include zerosize-ptr.h.
12426         (main): Use a zero-size object pointer instead of NULL.
12427         * tests/test-memchr2.c: Include zerosize-ptr.h.
12428         (main): Use a zero-size object pointer instead of NULL.
12429         * tests/test-memcmp.c: Include zerosize-ptr.h.
12430         (main): Use a zero-size object pointer instead of NULL.
12431         * tests/test-memmem.c: Include zerosize-ptr.h.
12432         (main): Use a zero-size object pointer instead of NULL.
12433         * tests/test-memrchr.c: Include zerosize-ptr.h.
12434         (main): Use a zero-size object pointer instead of NULL.
12435         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
12436         m4/mmap-anon.m4.
12437         (Depends-on): Add getpagesize.
12438         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12439         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
12440         m4/mmap-anon.m4.
12441         (Depends-on): Add getpagesize.
12442         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12443         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
12444         m4/mmap-anon.m4.
12445         (Depends-on): Add getpagesize.
12446         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12447         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12448         m4/mmap-anon.m4.
12449         (Depends-on): Add getpagesize.
12450         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12451         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12452         m4/mmap-anon.m4.
12453         (Depends-on): Add getpagesize.
12454         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12455
12456 2009-05-12  Bruno Haible  <bruno@clisp.org>
12457
12458         Tests for module 'alignof'.
12459         * modules/alignof-tests: New file.
12460         * tests/test-alignof.c: New file.
12461
12462 2009-05-12  Bruno Haible  <bruno@clisp.org>
12463
12464         Fix alignof macro.
12465         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12466         vendor compilers that are always correct.
12467
12468 2009-05-12  Bruno Haible  <bruno@clisp.org>
12469
12470         Make the MAP_ANONYMOUS detection work on HP-UX 11.
12471         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12472         not whether its fully works.
12473
12474 2009-05-12  Bruno Haible  <bruno@clisp.org>
12475
12476         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12477
12478 2009-05-12  Jim Meyering  <meyering@redhat.com>
12479
12480         * top/maint.mk: Adjust backslash alignment.
12481
12482 2009-05-11  Simon Josefsson  <simon@josefsson.org>
12483
12484         * top/maint.mk: Make $(srcdir)/build-aux configurable.
12485
12486 2009-05-11  Eric Blake  <ebb9@byu.net>
12487
12488         argp: avoid undefined behavior
12489         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12490         macros.
12491
12492 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12493
12494         * tests/test-vc-list-files-git.sh: Do git config of user.email and
12495         user.name to prevent git commit from complaining.
12496
12497 2009-05-10  Bruno Haible  <bruno@clisp.org>
12498
12499         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12500         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12501         it rewrites every file name only once.
12502         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12503
12504 2009-05-08  Bruno Haible  <bruno@clisp.org>
12505
12506         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12507         instead of 'max'.
12508
12509 2009-05-08  Simon Josefsson  <simon@josefsson.org>
12510
12511         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12512         sockaddr_storage test.
12513
12514 2009-05-07  Simon Josefsson  <simon@josefsson.org>
12515
12516         * modules/sys_socket (Makefile.am): Substitute
12517         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
12518         * m4/sys_socket_h.m4: Check for sockaddr_storage.
12519         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12520         * tests/test-sys_socket.c: Check sockaddr_storage.
12521
12522 2009-05-08  Bruno Haible  <bruno@clisp.org>
12523
12524         New module 'alignof'.
12525         * lib/alignof.h: New file.
12526         * modules/alignof: New file.
12527
12528 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12529             Bruno Haible  <bruno@clisp.org>
12530
12531         Fix test-file-has-acl on FreeBSD.
12532         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12533         mask is implicitly added.
12534         * tests/test-file-has-acl.c: Include <signal.h>.
12535         (main): Terminate the test after 5 seconds.
12536         * modules/acl-tests (configure.ac): Check for alarm function.
12537
12538 2009-05-04  Bruno Haible  <bruno@clisp.org>
12539
12540         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12541         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12542         * modules/errno (configure.ac): Drop AC_REQUIRE.
12543         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12544         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12545
12546 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12547
12548         * modules/glob-tests: New module.
12549         * tests/test-glob.c: Add.
12550
12551 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12552
12553         * modules/fnmatch-tests: New module.
12554         * tests/test-fnmatch.c: Add.
12555
12556 2009-05-04  Eric Blake  <ebb9@byu.net>
12557
12558         maint: make the new no-submodule-changes rule VPATH-safe
12559         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12560
12561 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12562             Bruno Haible  <bruno@clisp.org>
12563
12564         acl: Fix infinite loop on FreeBSD.
12565         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12566         of return value from acl_get_entry.
12567         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12568         Likewise.
12569
12570 2009-05-03  Bruno Haible  <bruno@clisp.org>
12571
12572         * lib/acl-internal.h (acl_entries): Clarify return value.
12573         * lib/acl_entries.c (acl_entries): Likewise.
12574
12575 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12576
12577         Bug fix in acl module.
12578         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12579
12580 2009-05-03  Bruno Haible  <bruno@clisp.org>
12581
12582         Create gperf-generated file in the source dir, not in the build dir.
12583         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12584         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12585         * modules/unicase/locale-language (unicase/locale-languages.h):
12586         Likewise.
12587         * modules/unicase/special-casing (unicase/special-casing-table.h):
12588         Likewise.
12589         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12590         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12591         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12592         Reported by Ralf Wildenhues.
12593
12594 2009-05-03  Bruno Haible  <bruno@clisp.org>
12595
12596         * modules/fnmatch (Description, configure.ac): Taken from
12597         fnmatch-posix.
12598         * modules/fnmatch-posix: Turn into a symbolic reference to the
12599         'fnmatch' module, and deprecate.
12600         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12601
12602 2009-05-03  Bruno Haible  <bruno@clisp.org>
12603
12604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12605         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12606         Reported by Ralf Wildenhues.
12607
12608 2009-05-04  Simon Josefsson  <simon@josefsson.org>
12609
12610         * m4/fnmatch.m4: Fix fnmatch re-define.
12611
12612 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
12613
12614         priv-set: new module and tests; adapt write-any-file
12615         * lib/priv-set.c: New file.
12616         * lib/priv-set.h: New file.
12617         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12618         * lib/write-any-file.c: Simplify by using priv-set module.
12619         * m4/priv-set.m4: New file.
12620         * modules/priv-set: New file.
12621         * modules/unlinkdir: Add dependency on priv-set module.
12622         * modules/write-any-file: Likewise.
12623
12624         Tests for module 'priv-set'.
12625         * modules/priv-set-tests: New file.
12626         * tests/test-priv-set.c: New file.
12627
12628 2009-05-03  Jim Meyering  <meyering@redhat.com>
12629             Bruno Haible  <bruno@clisp.org>
12630
12631         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12632         use the converted UTF-8 variant of the name instead.
12633
12634 2009-05-03  Jim Meyering  <meyering@redhat.com>
12635
12636         tests: tighten some getdate tests
12637         * tests/test-getdate.c (main): Tighten tests: require equality,
12638         not just greater than.  Set TZ envvar to UTC0.
12639
12640 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
12641
12642         getdate: correctly interpret "next monday" when run on a Monday
12643         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12644         that e.g., "next tues" (when run on a tuesday) results in a date
12645         that is one week in the future, and not today's date.
12646         I.e., add a week when the wday is the same as the current one.
12647         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12648         and earlier by Martin Bernreuther and Jan Minář.
12649         * tests/test-getdate.c (main): Check that "next DAY" is always in
12650         the future and that "last DAY" is always in the past.
12651
12652 2009-05-02  Jim Meyering  <meyering@redhat.com>
12653
12654         build: ensure that a release build fails when a submodule is unclean
12655         * top/maint.mk (no-submodule-changes): New rule.
12656         (alpha beta major): Depend on it.
12657
12658 2009-05-02  Bruno Haible  <bruno@clisp.org>
12659
12660         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12661         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12662         shell variable gl_fnmatch_required to detect which variant is
12663         requested.
12664         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12665         gl_FUNC_FNMATCH_POSIX.
12666         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12667         exclude fnmatch-posix.
12668
12669 2009-05-02  Bruno Haible  <bruno@clisp.org>
12670
12671         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12672         * modules/mbsrtowcs (License): Change to LGPLv2+.
12673         * modules/strnlen1 (License): Likewise.
12674         Reported by Simon Josefsson.
12675
12676 2009-05-02  Bruno Haible  <bruno@clisp.org>
12677
12678         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12679         "cross".
12680         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12681         gnulib-tool was called with option --source-base=lib.
12682
12683 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12684
12685         Use automake *-local hooks without commands, for extensibility.
12686         * modules/localcharset (Makefile.am): Rename install-exec-local
12687         rule to install-exec-localcharset, and make it a prerequisite of
12688         install-exec-local.  Likewise, rename the uninstall-local rule to
12689         uninstall-localcharset, and make it a prerequisite of the former.
12690
12691 2009-05-01  Bruno Haible  <bruno@clisp.org>
12692
12693         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12694         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12695         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12696         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12697         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12698         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12699         m4/locale-zh.m4, m4/codeset.m4.
12700
12701         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12702         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12703         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12704         m4/locale-zh.m4.
12705
12706         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12707         REPLACE_WCRTOMB if mbstate_t must be replaced.
12708         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12709         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12710
12711 2009-05-01  Bruno Haible  <bruno@clisp.org>
12712
12713         Avoid compiler warnings when redefining macros defined by <libintl.h>.
12714         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12715         dngettext, dcngettext, textdomain, bindtextdomain,
12716         bind_textdomain_codeset): Undefine before redefining.
12717
12718 2009-04-30  Bruno Haible  <bruno@clisp.org>
12719
12720         Fix bug introduced on 2009-04-25.
12721         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12722         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12723         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12724         is defined.
12725         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12726         is defined.
12727         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12728         is defined.
12729         Reported by Elbert_Pol <elbert.pol@gmail.com>.
12730
12731 2009-04-28  Bruno Haible  <bruno@clisp.org>
12732
12733         Comment tweaks.
12734         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12735         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12736         * lib/unicase.h (u*_casexfrm): Likewise.
12737         Reported by Paolo Bonzini.
12738
12739 2009-04-28  Bruno Haible  <bruno@clisp.org>
12740
12741         Fix a compilation error.
12742         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12743         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12744         Reported by Jim Meyering.
12745
12746 2009-04-27  Bruno Haible  <bruno@clisp.org>
12747
12748         New module 'libunistring'.
12749         * modules/libunistring: New file.
12750         * m4/libunistring.m4: New file.
12751         * MODULES.html.sh (Unicode string functions): Add it.
12752
12753 2009-04-27  Eric Blake  <ebb9@byu.net>
12754
12755         maint.mk: allow package-specific header to provide <config.h>
12756         * top/maint.mk (sc_require_config_h): New variable.
12757         (sc_require_config_h, sc_require_config_h_first): Use it.
12758
12759 2009-04-27  Simon Josefsson  <simon@josefsson.org>
12760
12761         * top/maint.mk (sc_avoid_if_before_free): Except
12762         useless-if-before-free script.
12763
12764 2009-04-27  Eric Blake  <ebb9@byu.net>
12765
12766         maintainer-makefile: depend on all required helper scripts
12767         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12768         useless-if-before-free.
12769         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12770         version, rather than assuming gnulib checkout is available.
12771         Reported by Simen Josefsson.
12772
12773 2009-04-26  Bruno Haible  <bruno@clisp.org>
12774
12775         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12776         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12777         "../" or "..".
12778
12779 2009-04-26  Bruno Haible  <bruno@clisp.org>
12780
12781         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12782         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12783         AC_LIB_HAVE_LINKFLAGS.
12784
12785 2009-04-26  Bruno Haible  <bruno@clisp.org>
12786
12787         Simplify calling convention of u*_conv_from_encoding.
12788         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12789         u32_conv_from_encoding): Expect a resultbuf argument and return the
12790         result directly as a pointer.
12791         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12792         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12793         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12794         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12795         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12796         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12797         Update.
12798         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12799         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12800         * lib/vasnprintf.c (VASNPRINTF): Update.
12801         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12802         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12803         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12804         * NEWS: Mention the change.
12805
12806 2009-04-26  Bruno Haible  <bruno@clisp.org>
12807
12808         Simplify calling convention of u*_conv_to_encoding.
12809         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12810         u32_conv_to_encoding): Expect a resultbuf argument and return the
12811         result directly as a pointer.
12812         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12813         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12814         freeing scaled_offsets if mem_iconveha failed.
12815         * lib/unicase/u-casexfrm.h (FUNC): Update.
12816         * lib/uninorm/u-normxfrm.h (FUNC): Update.
12817         * lib/vasnprintf.c (VASNPRINTF): Update.
12818         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12819         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12820         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12821         * NEWS: Mention the change.
12822
12823 2009-04-26  Bruno Haible  <bruno@clisp.org>
12824
12825         Avoid test failures on AIX and OSF/1.
12826         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12827         malloc(0).
12828         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12829         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12830         Likewise.
12831         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12832         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12833         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12834         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12835         * doc/posix-functions/malloc.texi: Document the portability problem
12836         related to malloc(0).
12837
12838 2009-04-26  Bruno Haible  <bruno@clisp.org>
12839
12840         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12841         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12842         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12843
12844 2009-04-25  Bruno Haible  <bruno@clisp.org>
12845
12846         Avoid link error when creating a namespace clean library.
12847         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12848         as macro with arguments if already defined as an alias.
12849         * lib/signbitf.c (gl_signbitf): Don't undefine.
12850         * lib/signbitd.c (gl_signbitd): Don't undefine.
12851         * lib/signbitl.c (gl_signbitl): Don't undefine.
12852
12853 2009-04-25  Jim Meyering  <meyering@redhat.com>
12854
12855         vc-list-files: fix another quoting bug
12856         * build-aux/vc-list-files: Avoid sed backslash expansion
12857         of pathological directory names.
12858
12859 2009-04-25  Eric Blake  <ebb9@byu.net>
12860
12861         vc-list-files: fix shell quoting error
12862         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
12863         timestamp.
12864
12865 2009-04-25  Jim Meyering  <meyering@redhat.com>
12866
12867         vc-list-files: restore lost functionality with subdir argument
12868         * build-aux/vc-list-files: When given a non-"." sub-directory
12869         argument, substitute the $dir/ prefix back onto each resulting name.
12870         Otherwise, coreutils' root_tests check would fail.
12871
12872 2009-04-24  Eric Blake  <ebb9@byu.net>
12873
12874         vc-list-files: ignore git symlinks
12875         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12876         than ls-files, to ignore git symlinks.
12877
12878         maint.mk: import improvements from m4
12879         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12880         (move_if_change): Delete unused macro.
12881         (news-date-check, vc-diff-check): Support VPATH builds.
12882         (announcement): Likewise.  Split --bootstrap-tools list...
12883         (boostrap-tools): ...into separate list, which can be overridden
12884         in cfg.mk.
12885         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12886         requiring dependency on useless-if-before-free module.
12887         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12888         Support VPATH builds.
12889
12890 2009-04-24  Jim Meyering  <meyering@redhat.com>
12891
12892         maint.mk: remove coreutils-specific rules and variables
12893         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12894         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12895         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12896
12897         maint.mk: remove obsolete rule
12898         * top/maint.mk (rel-check): Remove rule.
12899         (WGET, WGETFLAGS): Remove now-unused variables.
12900
12901 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12902
12903         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12904         consistency.
12905
12906         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12907         '$(PATH_SEPARATOR)' instead of ':'.
12908
12909 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12910
12911         * lib/getopt1.c (main): Use 'const' for static array.
12912
12913 2009-04-24  Simon Josefsson  <simon@josefsson.org>
12914
12915         * top/maint.mk: Sync with coreutils.
12916         * NEWS: Explain incompatibilities.
12917
12918 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12919             Bruno Haible  <bruno@clisp.org>
12920
12921         Fix cross-compilation results.
12922         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12923         statement, as third argument of AC_TRY_RUN.
12924         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12925         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12926         Likewise.
12927         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12928         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12929         Likewise.
12930         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12931         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12932         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12933
12934 2009-04-20  Bruno Haible  <bruno@clisp.org>
12935
12936         Avoid test failure on mingw.
12937         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12938
12939 2009-04-20  Bruno Haible  <bruno@clisp.org>
12940
12941         Avoid compilation error on mingw.
12942         * modules/localename-tests (Depends-on): Add locale.
12943
12944 2009-04-19  Bruno Haible  <bruno@clisp.org>
12945
12946         Support for building a shared library on Windows platforms.
12947         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12948         (main): Test the presence of UNINORM_NFC here.
12949         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12950         (main): Test the presence of UNINORM_NFD here.
12951         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12952         (main): Test the presence of UNINORM_NFKC here.
12953         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12954         (main): Test the presence of UNINORM_NFKD here.
12955
12956 2009-04-19  Bruno Haible  <bruno@clisp.org>
12957
12958         Avoid a compiler warning.
12959         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12960         Change type of variable 'sequence'.
12961
12962 2009-04-19  Bruno Haible  <bruno@clisp.org>
12963
12964         * modules/configmake (Makefile.am): When the contents of configmake.h
12965         does not change, arrange to preserve its modification time.
12966
12967 2009-04-17  Simon Josefsson  <simon@josefsson.org>
12968
12969         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12970         gettext domain.
12971
12972 2009-04-16  Jim Meyering  <meyering@redhat.com>
12973
12974         useless-if-before-free: improve conversion code
12975         * build-aux/useless-if-before-free: Adjust code-in-comment to match
12976         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
12977
12978 2009-04-14  Bruno Haible  <bruno@clisp.org>
12979
12980         * modules/fcntl (Depends-on): Add extensions.
12981         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12982
12983 2009-04-12  Ben Pfaff  <blp@gnu.org>
12984
12985         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12986         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12987
12988 2009-03-20  Ben Pfaff  <blp@gnu.org>
12989
12990         Make rename replace existing destinations on Windows.
12991         * m4/rename.m4: Add test for Mingw.
12992         * lib/rename.c: Add rename replacement that uses MoveFileEx with
12993         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12994         * doc/posix-functions/rename.texi: Document.
12995
12996 2009-04-10  Bruno Haible  <bruno@clisp.org>
12997
12998         New include file "iconveh.h".
12999         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
13000         * lib/striconveh.h: Include it.
13001         (enum iconv_ilseq_handler): Remove definition.
13002         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
13003         striconveh.h.
13004         * lib/striconveha.c: Include striconveh.h.
13005         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
13006         * modules/striconveh (Files): Add lib/iconveh.h.
13007         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
13008         lib/striconveh.h.
13009
13010 2009-04-10  Bruno Haible  <bruno@clisp.org>
13011
13012         * lib/uniconv.h: Update comment.
13013
13014 2009-04-10  Bruno Haible  <bruno@clisp.org>
13015
13016         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
13017         always.
13018         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
13019         * lib/unistr/u16-mbtouc-aux.c: Likewise.
13020         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
13021         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
13022         "unistring-notinline.h", so that the function gets defined always.
13023         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
13024         * lib/unistr/u8-uctomb.c: Likewise.
13025         * lib/unistr/u16-mbtouc.c: Likewise.
13026         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
13027         * lib/unistr/u16-uctomb.c: Likewise.
13028         * lib/unistr/u32-mbtouc.c: Likewise.
13029         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
13030         * lib/unistr/u32-uctomb.c: Likewise.
13031
13032 2009-04-10  Bruno Haible  <bruno@clisp.org>
13033
13034         Mark 'utime' obsolete.
13035         * modules/utime (Status, Notice): New sections.
13036         Suggested by Jim Meyering.
13037
13038         Fix cross-compile guess for utime test.
13039         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
13040         autoconf.
13041         * doc/posix-functions/utime.texi: Give more precisions.
13042         Reported by Jan <ipif@ymail.com>.
13043
13044 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
13045
13046         filevercmp: correct today's change
13047         * lib/filevercmp.c: Also handle coreutils' test inputs.
13048         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
13049
13050         Fix regression in 'filevercmp' module. Thanks Sven Joachim
13051         for reporting it.
13052         * lib/filevercmp.c: Special handle for "", "." and "..".
13053         * tests/test-filevercmp.c: Enlarge the set suite.
13054
13055 2009-04-07  Jim Meyering  <meyering@redhat.com>
13056
13057         useless-if-before-free: show how to remove braced useless free, too
13058         * build-aux/useless-if-before-free: still only in a comment, though.
13059
13060 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
13061
13062         maint.mk: import changes to syntax-check macros from coreutils
13063         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
13064         Use them in the relevant macros.
13065
13066 2009-04-06  Bruno Haible  <bruno@clisp.org>
13067
13068         Fix unportable use of bit-fields.
13069         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
13070         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
13071         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
13072
13073 2009-04-06  Bruno Haible  <bruno@clisp.org>
13074
13075         Avoid test failures on AIX and OSF/1.
13076         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
13077         that malloc(0) = NULL.
13078         * tests/unicase/test-u8-tolower.c (check): Likewise.
13079         * tests/unicase/test-u8-totitle.c (check): Likewise.
13080         * tests/unicase/test-u8-toupper.c (check): Likewise.
13081         * tests/unicase/test-u16-casefold.c (check): Likewise.
13082         * tests/unicase/test-u16-tolower.c (check): Likewise.
13083         * tests/unicase/test-u16-totitle.c (check): Likewise.
13084         * tests/unicase/test-u16-toupper.c (check): Likewise.
13085         * tests/unicase/test-u32-casefold.c (check): Likewise.
13086         * tests/unicase/test-u32-tolower.c (check): Likewise.
13087         * tests/unicase/test-u32-totitle.c (check): Likewise.
13088         * tests/unicase/test-u32-toupper.c (check): Likewise.
13089         * tests/uninorm/test-u8-nfc.c (check): Likewise.
13090         * tests/uninorm/test-u8-nfd.c (check): Likewise.
13091         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
13092         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
13093         * tests/uninorm/test-u16-nfc.c (check): Likewise.
13094         * tests/uninorm/test-u16-nfd.c (check): Likewise.
13095         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
13096         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
13097         * tests/uninorm/test-u32-nfc.c (check): Likewise.
13098         * tests/uninorm/test-u32-nfd.c (check): Likewise.
13099         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
13100         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
13101
13102 2009-04-05  Bruno Haible  <bruno@clisp.org>
13103
13104         Work around an autoconf limitation.
13105         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
13106         comment line if it would be longer than 3 KB.
13107
13108 2009-04-05  Bruno Haible  <bruno@clisp.org>
13109
13110         Avoid test failure with libiconv-1.13.
13111         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
13112         of the expected test results.
13113
13114 2009-04-05  Bruno Haible  <bruno@clisp.org>
13115
13116         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
13117         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
13118         that it should be installed.
13119
13120 2009-04-05  Bruno Haible  <bruno@clisp.org>
13121
13122         * gnulib-tool: New option --copy-file.
13123         (func_usage): Document it.
13124         (func_dest_tmpfilename): Moved out of func_import.
13125         (func_add_file, func_update_file): New functions, extracted from
13126         func_import.
13127         (func_import): Update.
13128
13129 2009-04-05  Karl Berry  <karl@gnu.org>
13130
13131         * README: prominently mention gnulib-tool.
13132         Rearrange sections so getting the code is near the top.
13133
13134 2009-04-05  Bruno Haible  <bruno@clisp.org>
13135
13136         * lib/unicase.h: Mention u*_cmp2.
13137         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13138         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
13139         * lib/unicase/ulc-casecmp.c: Likewise.
13140         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
13141         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
13142         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
13143         unistr/u8-cmp.
13144         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
13145         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
13146         unistr/u16-cmp.
13147         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
13148         unistr/u32-cmp.
13149
13150         * lib/uninorm.h: Mention u*_cmp2.
13151         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
13152         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
13153         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
13154         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
13155         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
13156         unistr/u8-cmp.
13157         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
13158         unistr/u16-cmp.
13159         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
13160         unistr/u32-cmp.
13161
13162         New module 'unistr/u32-cmp2'.
13163         * lib/unistr/u32-cmp2.c: New file.
13164         * modules/unistr/u32-cmp2: New file.
13165
13166         New module 'unistr/u16-cmp2'.
13167         * lib/unistr/u16-cmp2.c: New file.
13168         * modules/unistr/u16-cmp2: New file.
13169
13170         New module 'unistr/u8-cmp2'.
13171         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
13172         * lib/unistr/u8-cmp2.c: New file.
13173         * lib/unistr/u-cmp2.h: New file.
13174         * modules/unistr/u8-cmp2: New file.
13175
13176 2009-04-05  Bruno Haible  <bruno@clisp.org>
13177
13178         * lib/unictype.h (uc_property_is_valid): New macro.
13179         * tests/unictype/test-pr_byname.c (main): Use it.
13180
13181         * lib/unistr.h: Doc fixes.
13182         * lib/uniconv.h: Doc fixes.
13183         * lib/unictype.h: Doc fixes.
13184
13185 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
13186
13187         Port coreutils 7.2 to Solaris 8.
13188
13189         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
13190         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
13191         for Solaris 8.  This is a bit of a hack, as it means it's the
13192         caller's responsibility to add -lnsl if needed, but most likely it
13193         won't be needed since only getaddrinfo uses this and getaddrinfo
13194         isn't needed on Solaris 8.
13195
13196         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
13197         problem to Solaris 8 encountered with coreutils 7.2, which
13198         resulted in a message "fnmatch.c:292: warning: passing argument 4
13199         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
13200         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
13201
13202 2009-04-03  Simon Josefsson  <simon@josefsson.org>
13203
13204         * m4/ld-version-script.m4: Add FIXME comment.
13205
13206 2009-04-02  Simon Josefsson  <simon@josefsson.org>
13207
13208         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
13209         SOVERSION variable.
13210
13211 2009-04-02  Bruno Haible  <bruno@clisp.org>
13212
13213         * Makefile (info, html, dvi, pdf): Combine the rules.
13214         Suggested by Jim Meyering.
13215
13216 2009-04-01  Bruno Haible  <bruno@clisp.org>
13217
13218         * Makefile (info, html, dvi, pdf): New targets.
13219         Reported by Reuben Thomas <rrt@sc3d.org>.
13220
13221 2009-04-01  Bruno Haible  <bruno@clisp.org>
13222
13223         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
13224         can be put into PATH.
13225         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
13226
13227 2009-04-01  Bruno Haible  <bruno@clisp.org>
13228
13229         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
13230
13231 2009-04-01  Bruno Haible  <bruno@clisp.org>
13232
13233         Rename module 'visibility'.
13234         * modules/lib-symbol-visibility: Renamed from modules/visibility.
13235         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
13236         * doc/gnulib.texi: Update.
13237         * MODULES.html.sh (Misc): Update.
13238         * NEWS: Mention the change.
13239
13240 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13241
13242         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
13243         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
13244         Eric Blake <ebb9@byu.net> for review.
13245         * MODULES.html.sh: Add lib-msvc-compat.
13246         * doc/gnulib.texi: Link to new section.
13247         * m4/ld-output-def.m4: New file.
13248         * doc/ld-output-def.texi: New file.
13249
13250 2009-04-01  Simon Josefsson  <simon@josefsson.org>
13251
13252         Rename ld-version-script to lib-symbol-versions.  Suggested by
13253         Bruno Haible <bruno@clisp.org>.
13254         * modules/ld-version-script: Renamed to lib-symbol-versions.
13255         * doc/ld-version-script.texi: Fix module name.
13256         * MODULES.html.sh: Add lib-symbol-versions.
13257
13258 2009-03-31  Simon Josefsson  <simon@josefsson.org>
13259
13260         * modules/u64-tests: New file.
13261         * tests/test-u64.c: New file.
13262
13263 2009-03-04  Simon Josefsson  <simon@josefsson.org>
13264
13265         * MODULES.html.sh: Mention u64.
13266         * modules/u64: New module.
13267         * modules/crypto/sha512: Depend on u64 module instead of providing
13268         u64.h.
13269
13270 2009-03-27  Eric Blake  <ebb9@byu.net>
13271
13272         test-strerror: make debugging EAI_SYSTEM easier
13273         * modules/getaddrinfo-tests (Depends-on): Add strerror.
13274         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
13275         failure was EAI_SYSTEM.
13276
13277 2009-03-25  Bruno Haible  <bruno@clisp.org>
13278
13279         Fix a problem with --enable-relocatable on Solaris 7.
13280         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
13281         since 2008-02-24.
13282
13283 2009-03-25  Eric Blake  <ebb9@byu.net>
13284
13285         test-sockets: avoid gcc warning
13286         * tests/test-sockets.c (main): Silence compiler warning.
13287
13288 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
13289
13290         New modules nproc, pthread, contributed by Glen Lenker.
13291
13292         * MODULES.html.sh: Add pthread, nproc.
13293         * lib/nproc.c: New file.
13294         * lib/nproc.h: New file.
13295         * lib/pthread.in.h: New file.
13296         * m4/pthread.m4: New file.
13297         * modules/nproc: New file.
13298         * modules/pthread: New file.
13299
13300 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13301
13302         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
13303         New variable.
13304
13305 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
13306
13307         filevercmp: handle simple~ and numbered.~3~ backup suffixes
13308         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
13309         * tests/test-filevercmp.c: Add tests for backup suffixes.
13310
13311 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13312
13313         * modules/stdlib (Depends-on): Add stdint, needed when defining
13314         struct random_data on, for example, HP-UX 10.20.  Reported by
13315         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13316
13317 2009-03-24  Simon Josefsson  <simon@josefsson.org>
13318
13319         * lib/readline.c (readline): Call fflush on stdout after printing
13320         prompt.
13321
13322 2009-03-20  Bruno Haible  <bruno@clisp.org>
13323
13324         Remove dependency from 'close' module to -lws2_32 on native Windows.
13325         * lib/close-hook.h: New file.
13326         * lib/close-hook.c: New file.
13327         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
13328         w32sock.h.
13329         (_gl_close_fd_maybe_socket): Remove function.
13330         (rpl_close): Invoke execute_all_close_hooks instead of
13331         _gl_close_fd_maybe_socket.
13332         * lib/sockets.c: Include close-hook.h, w32sock.h.
13333         (close_fd_maybe_socket): New function, essentially from lib/close.c.
13334         (close_sockets_hook): New variable.
13335         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
13336         (gl_sockets_cleanup): Unregister it.
13337         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
13338         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
13339         * modules/close-hook: New file.
13340         * modules/close (Files): Remove lib/w32sock.h.
13341         (Depends-on): Add close-hook.
13342         (Link): Remove section.
13343         * modules/sockets (Files): Add lib/w32sock.h.
13344         (Depends-on): Add close-hook.
13345         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
13346         invocation.
13347         * NEWS: Mention that LIB_CLOSE is gone.
13348
13349 2009-03-23  Eric Blake  <ebb9@byu.net>
13350
13351         signal-tests: test previous patch
13352         * tests/test-signal.c: New file.
13353         * modules/signal-tests: Likewise.
13354
13355         signal.h: always support 'volatile sig_atomic_t'
13356         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
13357         (gl_SIGNAL_H_DEFAULTS): Add a default.
13358         * modules/signal (Makefile.am): Substitute if needed.
13359         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
13360         users can blindly add volatile.
13361         * doc/posix-headers/signal.texi (signal.h): Document it.
13362         Reported by Matthew Woehlke.
13363
13364 2009-03-23  Jim Meyering  <meyering@redhat.com>
13365
13366         pathmax: PATH_MAX: use pathconf only when available
13367         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
13368         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
13369         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
13370         This avoids a link failure in a PSP cross-compilation environment
13371         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
13372
13373         * lib/vasnprintf.c (divide): Fix typo in comment.
13374
13375 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13376
13377         * gnulib-tool (func_filter_filelist): Fix comment.
13378
13379 2009-03-20  Bruno Haible  <bruno@clisp.org>
13380
13381         Make sockets.h self-contained.
13382         * lib/sockets.c: Include sockets.h first.
13383         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
13384
13385 2009-03-19  Eric Blake  <ebb9@byu.net>
13386
13387         doc: mention more functions added in cygwin 1.7.0
13388         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
13389         addition.
13390         * doc/posix-functions/log2f.texi: Likewise.
13391
13392 2009-03-19  Jim Meyering  <meyering@redhat.com>
13393
13394         fsusage: avoid syntax error due to statement-before-declaration
13395         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
13396         after all declarations.  Reported by Matthew Woehlke in
13397         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
13398
13399 2009-03-18  Eric Blake  <ebb9@byu.net>
13400
13401         build-aux/compile: sync from automake
13402         * build-aux/compile: New file, from automake.
13403         * config/srclist.txt: Mention build-aux/compile.
13404
13405 2009-03-17  Bruno Haible  <bruno@clisp.org>
13406
13407         * lib/git-merge-changelog.c: Fix typo in comment.
13408         Reported by Reuben Thomas <rrt@sc3d.org>.
13409
13410 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
13411
13412         * m4/regex.m4: update and improve help for
13413         --without-included-regex.
13414
13415 2009-03-17  Simon Josefsson  <simon@josefsson.org>
13416
13417         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
13418         failure on missing include files.
13419
13420 2009-03-17  Eric Blake  <ebb9@byu.net>
13421
13422         doc: mention more functions added in cygwin 1.7.0
13423         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
13424         addition.
13425         * doc/posix-functions/fwscanf.texi: Likewise.
13426         * doc/posix-functions/swprintf.texi: Likewise.
13427         * doc/posix-functions/swscanf.texi: Likewise.
13428         * doc/posix-functions/vfwprintf.texi: Likewise.
13429         * doc/posix-functions/vfwscanf.texi: Likewise.
13430         * doc/posix-functions/vswprintf.texi: Likewise.
13431         * doc/posix-functions/vswscanf.texi: Likewise.
13432         * doc/posix-functions/vwprintf.texi: Likewise.
13433         * doc/posix-functions/vwscanf.texi: Likewise.
13434         * doc/posix-functions/wcscasecmp.texi: Likewise.
13435         * doc/posix-functions/wcsdup.texi: Likewise.
13436         * doc/posix-functions/wcsftime.texi: Likewise.
13437         * doc/posix-functions/wcsncasecmp.texi: Likewise.
13438         * doc/posix-functions/wprintf.texi: Likewise.
13439         * doc/posix-functions/wscanf.texi: Likewise.
13440         * doc/glibc-functions/gethostbyname2.texi: Likewise.
13441
13442 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13443
13444         maint.mk: really add $(AM_MAKEFLAGS)
13445         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
13446         was inadvertently omitted in the last commit.
13447         Spotted by Bruno Haible.
13448
13449         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13450         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13451         $(AM_MAKEFLAGS)' rather than plain `make'.
13452
13453         gnulib-tool: execute $MAKE not make
13454         * gnulib-tool: Default $MAKE to 'make'.
13455         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13456         than make.  Initialize $MAKE in the do-autobuild script.
13457
13458         gnulib-tool: use $MAKE not make in generated files
13459         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13460         make, in generated files.  Initialize $MAKE in the do-autobuild
13461         script.
13462
13463         * top/GNUmakefile (_have-git-version-gen): Fix typo.
13464
13465         GNUmakefile: disable parallelism only for multiple, recursive targets
13466         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13467         additions in the Makefile.
13468         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13469         by Automake.
13470         (.NOTPARALLEL): Only disable parallel builds if multiple targets
13471         are listed on the command line and at least one of them is
13472         listed in $(ALL_RECURSIVE_TARGETS).
13473
13474 2009-03-14  Bruno Haible  <bruno@clisp.org>
13475
13476         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13477         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13478         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13479         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13480         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13481         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13482         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13483         unistr/u8-uctomb.
13484         * modules/unistr/u8-strchr (Depends-on): Likewise.
13485         * modules/unistr/u8-strrchr (Depends-on): Likewise.
13486         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13487         unistr/u16-uctomb.
13488         * modules/unistr/u16-strchr (Depends-on): Likewise.
13489         * modules/unistr/u16-strrchr (Depends-on): Likewise.
13490
13491 2009-03-12  Bruno Haible  <bruno@clisp.org>
13492
13493         Work around select() bug on Interix 3.5.
13494         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13495         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13496         * m4/select.m4: New file.
13497         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13498         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13499         * modules/select (Files): Add m4/select.m4.
13500         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13501         * modules/nanosleep (Depends-on): Add select.
13502         * modules/poll (Depends-on): Likewise.
13503         * doc/posix-functions/select.texi: Mention the Interix bug.
13504         Reported by Markus Duft <mduft@gentoo.org>.
13505
13506         * lib/select.c: Renamed from lib/winsock-select.c.
13507         * modules/select (Files): Add lib/select.c, remove
13508         lib/winsock-select.c.
13509         (configure.ac): Update.
13510
13511 2009-03-12  Jim Meyering  <meyering@redhat.com>
13512
13513         avoid gcc warnings about unused macro definitions
13514         * lib/readtokens.c (STREQ): Remove unused definition.
13515         * lib/xmalloc.c (SIZE_MAX): Likewise.
13516         * lib/openat-die.c (N_): Likewise.
13517         * lib/mountlist.c (SIZE_MAX): Remove definition.
13518         Instead, include <stdint.h>.
13519         * lib/readutmp.c: Likewise.
13520         * modules/readutmp (Depends-on): Add stdint.
13521         * modules/mountlist (Depends-on): Add stdint.
13522         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13523
13524 2009-03-10  Bruno Haible  <bruno@clisp.org>
13525
13526         Tests for module 'mbmemcasecoll'.
13527         * modules/mbmemcasecoll-tests: New file.
13528         * tests/test-mbmemcasecoll1.sh: New file.
13529         * tests/test-mbmemcasecoll2.sh: New file.
13530         * tests/test-mbmemcasecoll3.sh: New file.
13531         * tests/test-mbmemcasecoll.c: New file.
13532
13533         New module 'mbmemcasecoll'.
13534         * lib/mbmemcasecoll.h: New file.
13535         * lib/mbmemcasecoll.c: New file.
13536         * modules/mbmemcasecoll: New file.
13537
13538         * tests/test-mbmemcasecmp.h: New file, extracted from
13539         tests/test-mbmemcasecmp.c.
13540         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13541         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13542         (main): Update.
13543         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13544
13545 2009-03-09  Bruno Haible  <bruno@clisp.org>
13546
13547         Tests for module 'mbmemcasecmp'.
13548         * modules/mbmemcasecmp-tests: New file.
13549         * tests/test-mbmemcasecmp1.sh: New file.
13550         * tests/test-mbmemcasecmp2.sh: New file.
13551         * tests/test-mbmemcasecmp3.sh: New file.
13552         * tests/test-mbmemcasecmp.c: New file.
13553
13554         New module 'mbmemcasecmp'.
13555         * lib/mbmemcasecmp.h: New file.
13556         * lib/mbmemcasecmp.c: New file.
13557         * modules/mbmemcasecmp: New file.
13558
13559 2009-03-09  Bruno Haible  <bruno@clisp.org>
13560
13561         Tests for module 'unicase/ulc-casecoll'.
13562         * modules/unicase/ulc-casecoll-tests: New file.
13563         * tests/unicase/test-ulc-casecoll1.sh: New file.
13564         * tests/unicase/test-ulc-casecoll2.sh: New file.
13565         * tests/unicase/test-ulc-casecoll.c: New file.
13566
13567         New module 'unicase/ulc-casecoll'.
13568         * lib/unicase.h (ulc_casecoll): New declaration.
13569         * lib/unicase/ulc-casecoll.c: New file.
13570         * modules/unicase/ulc-casecoll: New file.
13571
13572         New module 'unicase/ulc-casexfrm'.
13573         * lib/unicase.h (ulc_casexfrm): New declaration.
13574         * lib/unicase/ulc-casexfrm.c: New file.
13575         * modules/unicase/ulc-casexfrm: New file.
13576
13577 2009-03-09  Bruno Haible  <bruno@clisp.org>
13578
13579         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13580         invocations.
13581
13582         * m4/mbscasecmp.m4: Remove file.
13583         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13584         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13585
13586         * m4/mbscasestr.m4: Remove file.
13587         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13588         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13589
13590         * m4/mbschr.m4: Remove file.
13591         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13592         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13593
13594         * m4/mbscspn.m4: Remove file.
13595         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13596         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13597
13598         * m4/mbslen.m4: Remove file.
13599         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13600         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13601
13602         * m4/mbsncasecmp.m4: Remove file.
13603         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13604         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13605
13606         * m4/mbsnlen.m4: Remove file.
13607         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13608         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13609
13610         * m4/mbspbrk.m4: Remove file.
13611         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13612         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13613
13614         * m4/mbspcasecmp.m4: Remove file.
13615         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13616         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13617
13618         * m4/mbsrchr.m4: Remove file.
13619         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13620         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13621
13622         * m4/mbssep.m4: Remove file.
13623         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13624         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13625
13626         * m4/mbsspn.m4: Remove file.
13627         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13628         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13629
13630         * m4/mbsstr.m4: Remove file.
13631         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13632         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13633
13634         * m4/mbstok_r.m4: Remove file.
13635         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13636         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13637
13638         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13639
13640         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13641         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13642
13643         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13644
13645 2009-03-08  Bruno Haible  <bruno@clisp.org>
13646
13647         Tests for module 'unicase/ulc-casecmp'.
13648         * modules/unicase/ulc-casecmp-tests: New file.
13649         * tests/unicase/test-ulc-casecmp1.sh: New file.
13650         * tests/unicase/test-ulc-casecmp2.sh: New file.
13651         * tests/unicase/test-ulc-casecmp.c: New file.
13652
13653         New module 'unicase/ulc-casecmp'.
13654         * lib/unicase.h (ulc_casecmp): New declaration.
13655         * lib/unicase/ulc-casecmp.c: New file.
13656         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13657         'const SRC_UNIT *'.
13658         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13659         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13660         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13661         * modules/unicase/ulc-casecmp: New file.
13662
13663         Tests for module 'unicase/u32-is-cased'.
13664         * modules/unicase/u32-is-cased-tests: New file.
13665         * tests/unicase/test-u32-is-cased.c: New file.
13666
13667         Tests for module 'unicase/u16-is-cased'.
13668         * modules/unicase/u16-is-cased-tests: New file.
13669         * tests/unicase/test-u16-is-cased.c: New file.
13670
13671         Tests for module 'unicase/u8-is-cased'.
13672         * modules/unicase/u8-is-cased-tests: New file.
13673         * tests/unicase/test-u8-is-cased.c: New file.
13674         * tests/unicase/test-is-cased.h: New file.
13675
13676         New module 'unicase/u32-is-cased'.
13677         * lib/unicase/u32-is-cased.c: New file.
13678         * modules/unicase/u32-is-cased: New file.
13679
13680         New module 'unicase/u16-is-cased'.
13681         * lib/unicase/u16-is-cased.c: New file.
13682         * modules/unicase/u16-is-cased: New file.
13683
13684         New module 'unicase/u8-is-cased'.
13685         * lib/unicase/u8-is-cased.c: New file.
13686         * lib/unicase/u-is-cased.h: New file.
13687         * modules/unicase/u8-is-cased: New file.
13688
13689         Tests for module 'unicase/u32-is-casefolded'.
13690         * modules/unicase/u32-is-casefolded-tests: New file.
13691         * tests/unicase/test-u32-is-casefolded.c: New file.
13692
13693         Tests for module 'unicase/u16-is-casefolded'.
13694         * modules/unicase/u16-is-casefolded-tests: New file.
13695         * tests/unicase/test-u16-is-casefolded.c: New file.
13696
13697         Tests for module 'unicase/u8-is-casefolded'.
13698         * modules/unicase/u8-is-casefolded-tests: New file.
13699         * tests/unicase/test-u8-is-casefolded.c: New file.
13700         * tests/unicase/test-is-casefolded.h: New file.
13701
13702         New module 'unicase/u32-is-casefolded'.
13703         * lib/unicase/u32-is-casefolded.c: New file.
13704         * modules/unicase/u32-is-casefolded: New file.
13705
13706         New module 'unicase/u16-is-casefolded'.
13707         * lib/unicase/u16-is-casefolded.c: New file.
13708         * modules/unicase/u16-is-casefolded: New file.
13709
13710         New module 'unicase/u8-is-casefolded'.
13711         * lib/unicase/u8-is-casefolded.c: New file.
13712         * modules/unicase/u8-is-casefolded: New file.
13713
13714         Tests for module 'unicase/u32-is-titlecase'.
13715         * modules/unicase/u32-is-titlecase-tests: New file.
13716         * tests/unicase/test-u32-is-titlecase.c: New file.
13717
13718         Tests for module 'unicase/u16-is-titlecase'.
13719         * modules/unicase/u16-is-titlecase-tests: New file.
13720         * tests/unicase/test-u16-is-titlecase.c: New file.
13721
13722         Tests for module 'unicase/u8-is-titlecase'.
13723         * modules/unicase/u8-is-titlecase-tests: New file.
13724         * tests/unicase/test-u8-is-titlecase.c: New file.
13725         * tests/unicase/test-is-titlecase.h: New file.
13726
13727         New module 'unicase/u32-is-titlecase'.
13728         * lib/unicase/u32-is-titlecase.c: New file.
13729         * modules/unicase/u32-is-titlecase: New file.
13730
13731         New module 'unicase/u16-is-titlecase'.
13732         * lib/unicase/u16-is-titlecase.c: New file.
13733         * modules/unicase/u16-is-titlecase: New file.
13734
13735         New module 'unicase/u8-is-titlecase'.
13736         * lib/unicase/u8-is-titlecase.c: New file.
13737         * modules/unicase/u8-is-titlecase: New file.
13738
13739         Tests for module 'unicase/u32-is-lowercase'.
13740         * modules/unicase/u32-is-lowercase-tests: New file.
13741         * tests/unicase/test-u32-is-lowercase.c: New file.
13742
13743         Tests for module 'unicase/u16-is-lowercase'.
13744         * modules/unicase/u16-is-lowercase-tests: New file.
13745         * tests/unicase/test-u16-is-lowercase.c: New file.
13746
13747         Tests for module 'unicase/u8-is-lowercase'.
13748         * modules/unicase/u8-is-lowercase-tests: New file.
13749         * tests/unicase/test-u8-is-lowercase.c: New file.
13750         * tests/unicase/test-is-lowercase.h: New file.
13751
13752         New module 'unicase/u32-is-lowercase'.
13753         * lib/unicase/u32-is-lowercase.c: New file.
13754         * modules/unicase/u32-is-lowercase: New file.
13755
13756         New module 'unicase/u16-is-lowercase'.
13757         * lib/unicase/u16-is-lowercase.c: New file.
13758         * modules/unicase/u16-is-lowercase: New file.
13759
13760         New module 'unicase/u8-is-lowercase'.
13761         * lib/unicase/u8-is-lowercase.c: New file.
13762         * modules/unicase/u8-is-lowercase: New file.
13763
13764         Tests for module 'unicase/u32-is-uppercase'.
13765         * modules/unicase/u32-is-uppercase-tests: New file.
13766         * tests/unicase/test-u32-is-uppercase.c: New file.
13767
13768         Tests for module 'unicase/u16-is-uppercase'.
13769         * modules/unicase/u16-is-uppercase-tests: New file.
13770         * tests/unicase/test-u16-is-uppercase.c: New file.
13771
13772         Tests for module 'unicase/u8-is-uppercase'.
13773         * modules/unicase/u8-is-uppercase-tests: New file.
13774         * tests/unicase/test-u8-is-uppercase.c: New file.
13775         * tests/unicase/test-is-uppercase.h: New file.
13776
13777         New module 'unicase/u32-is-uppercase'.
13778         * lib/unicase/u32-is-uppercase.c: New file.
13779         * modules/unicase/u32-is-uppercase: New file.
13780
13781         New module 'unicase/u16-is-uppercase'.
13782         * lib/unicase/u16-is-uppercase.c: New file.
13783         * modules/unicase/u16-is-uppercase: New file.
13784
13785         New module 'unicase/u8-is-uppercase'.
13786         * lib/unicase/u8-is-uppercase.c: New file.
13787         * modules/unicase/u8-is-uppercase: New file.
13788
13789         New module 'unicase/u32-is-invariant'.
13790         * lib/unicase/u32-is-invariant.c: New file.
13791         * modules/unicase/u32-is-invariant: New file.
13792
13793         New module 'unicase/u16-is-invariant'.
13794         * lib/unicase/u16-is-invariant.c: New file.
13795         * modules/unicase/u16-is-invariant: New file.
13796
13797         New module 'unicase/u8-is-invariant'.
13798         * lib/unicase/u8-is-invariant.c: New file.
13799         * lib/unicase/invariant.h: New file.
13800         * lib/unicase/u-is-invariant.h: New file.
13801         * modules/unicase/u8-is-invariant: New file.
13802
13803         Tests for module 'unicase/u32-casecoll'.
13804         * modules/unicase/u32-casecoll-tests: New file.
13805         * tests/unicase/test-u32-casecoll.c: New file.
13806
13807         Tests for module 'unicase/u16-casecoll'.
13808         * modules/unicase/u16-casecoll-tests: New file.
13809         * tests/unicase/test-u16-casecoll.c: New file.
13810
13811         Tests for module 'unicase/u8-casecoll'.
13812         * modules/unicase/u8-casecoll-tests: New file.
13813         * tests/unicase/test-u8-casecoll.c: New file.
13814
13815         New module 'unicase/u32-casecoll'.
13816         * lib/unicase/u32-casecoll.c: New file.
13817         * modules/unicase/u32-casecoll: New file.
13818
13819         New module 'unicase/u16-casecoll'.
13820         * lib/unicase/u16-casecoll.c: New file.
13821         * modules/unicase/u16-casecoll: New file.
13822
13823         New module 'unicase/u8-casecoll'.
13824         * lib/unicase/u8-casecoll.c: New file.
13825         * lib/unicase/u-casecoll.h: New file.
13826         * modules/unicase/u8-casecoll: New file.
13827
13828         New module 'unicase/u32-casexfrm'.
13829         * lib/unicase/u32-casexfrm.c: New file.
13830         * modules/unicase/u32-casexfrm: New file.
13831
13832         New module 'unicase/u16-casexfrm'.
13833         * lib/unicase/u16-casexfrm.c: New file.
13834         * modules/unicase/u16-casexfrm: New file.
13835
13836         New module 'unicase/u8-casexfrm'.
13837         * lib/unicase/u8-casexfrm.c: New file.
13838         * lib/unicase/u-casexfrm.h: New file.
13839         * modules/unicase/u8-casexfrm: New file.
13840
13841         Tests for module 'unicase/u32-casecmp'.
13842         * modules/unicase/u32-casecmp-tests: New file.
13843         * tests/unicase/test-u32-casecmp.c: New file.
13844
13845         Tests for module 'unicase/u16-casecmp'.
13846         * modules/unicase/u16-casecmp-tests: New file.
13847         * tests/unicase/test-u16-casecmp.c: New file.
13848
13849         Tests for module 'unicase/u8-casecmp'.
13850         * modules/unicase/u8-casecmp-tests: New file.
13851         * tests/unicase/test-u8-casecmp.c: New file.
13852         * tests/unicase/test-casecmp.h: New file.
13853
13854         New module 'unicase/u32-casecmp'.
13855         * lib/unicase/u32-casecmp.c: New file.
13856         * modules/unicase/u32-casecmp: New file.
13857
13858         New module 'unicase/u16-casecmp'.
13859         * lib/unicase/u16-casecmp.c: New file.
13860         * modules/unicase/u16-casecmp: New file.
13861
13862         New module 'unicase/u8-casecmp'.
13863         * lib/unicase/u8-casecmp.c: New file.
13864         * lib/unicase/u-casecmp.h: New file.
13865         * modules/unicase/u8-casecmp: New file.
13866
13867         Tests for module 'unicase/u32-casefold'.
13868         * modules/unicase/u32-casefold-tests: New file.
13869         * tests/unicase/test-u32-casefold.c: New file.
13870
13871         Tests for module 'unicase/u16-casefold'.
13872         * modules/unicase/u16-casefold-tests: New file.
13873         * tests/unicase/test-u16-casefold.c: New file.
13874
13875         Tests for module 'unicase/u8-casefold'.
13876         * modules/unicase/u8-casefold-tests: New file.
13877         * tests/unicase/test-u8-casefold.c: New file.
13878
13879         New module 'unicase/u32-casefold'.
13880         * lib/unicase/u32-casefold.c: New file.
13881         * modules/unicase/u32-casefold: New file.
13882
13883         New module 'unicase/u16-casefold'.
13884         * lib/unicase/u16-casefold.c: New file.
13885         * modules/unicase/u16-casefold: New file.
13886
13887         New module 'unicase/u8-casefold'.
13888         * lib/unicase/u8-casefold.c: New file.
13889         * lib/unicase/u-casefold.h: New file.
13890         * modules/unicase/u8-casefold: New file.
13891
13892         New module 'unicase/tocasefold'.
13893         * lib/unicase/casefold.h: New file.
13894         * lib/unicase/tocasefold.c: New file.
13895         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13896         * modules/unicase/tocasefold: New file.
13897
13898         Tests for module 'unicase/u32-totitle'.
13899         * modules/unicase/u32-totitle-tests: New file.
13900         * tests/unicase/test-u32-totitle.c: New file.
13901
13902         Tests for module 'unicase/u16-totitle'.
13903         * modules/unicase/u16-totitle-tests: New file.
13904         * tests/unicase/test-u16-totitle.c: New file.
13905
13906         Tests for module 'unicase/u8-totitle'.
13907         * modules/unicase/u8-totitle-tests: New file.
13908         * tests/unicase/test-u8-totitle.c: New file.
13909
13910         New module 'unicase/u32-totitle'.
13911         * lib/unicase/u32-totitle.c: New file.
13912         * modules/unicase/u32-totitle: New file.
13913
13914         New module 'unicase/u16-totitle'.
13915         * lib/unicase/u16-totitle.c: New file.
13916         * modules/unicase/u16-totitle: New file.
13917
13918         New module 'unicase/u8-totitle'.
13919         * lib/unicase/u8-totitle.c: New file.
13920         * lib/unicase/u-totitle.h: New file.
13921         * modules/unicase/u8-totitle: New file.
13922
13923         Tests for module 'unicase/u32-tolower'.
13924         * modules/unicase/u32-tolower-tests: New file.
13925         * tests/unicase/test-u32-tolower.c: New file.
13926
13927         Tests for module 'unicase/u16-tolower'.
13928         * modules/unicase/u16-tolower-tests: New file.
13929         * tests/unicase/test-u16-tolower.c: New file.
13930
13931         Tests for module 'unicase/u8-tolower'.
13932         * modules/unicase/u8-tolower-tests: New file.
13933         * tests/unicase/test-u8-tolower.c: New file.
13934
13935         New module 'unicase/u32-tolower'.
13936         * lib/unicase/u32-tolower.c: New file.
13937         * modules/unicase/u32-tolower: New file.
13938
13939         New module 'unicase/u16-tolower'.
13940         * lib/unicase/u16-tolower.c: New file.
13941         * modules/unicase/u16-tolower: New file.
13942
13943         New module 'unicase/u8-tolower'.
13944         * lib/unicase/u8-tolower.c: New file.
13945         * modules/unicase/u8-tolower: New file.
13946
13947         Tests for module 'unicase/u32-toupper'.
13948         * modules/unicase/u32-toupper-tests: New file.
13949         * tests/unicase/test-u32-toupper.c: New file.
13950
13951         Tests for module 'unicase/u16-toupper'.
13952         * modules/unicase/u16-toupper-tests: New file.
13953         * tests/unicase/test-u16-toupper.c: New file.
13954
13955         Tests for module 'unicase/u8-toupper'.
13956         * modules/unicase/u8-toupper-tests: New file.
13957         * tests/unicase/test-u8-toupper.c: New file.
13958
13959         New module 'unicase/u32-toupper'.
13960         * lib/unicase/u32-toupper.c: New file.
13961         * modules/unicase/u32-toupper: New file.
13962
13963         New module 'unicase/u16-toupper'.
13964         * lib/unicase/u16-toupper.c: New file.
13965         * modules/unicase/u16-toupper: New file.
13966
13967         New module 'unicase/u8-toupper'.
13968         * lib/unicase/u8-toupper.c: New file.
13969         * modules/unicase/u8-toupper: New file.
13970
13971         New module 'unicase/u32-casemap'.
13972         * lib/unicase/u32-casemap.c: New file.
13973         * modules/unicase/u32-casemap: New file.
13974
13975         New module 'unicase/u16-casemap'.
13976         * lib/unicase/u16-casemap.c: New file.
13977         * modules/unicase/u16-casemap: New file.
13978
13979         New module 'unicase/u8-casemap'.
13980         * lib/unicase/unicasemap.h: New file.
13981         * lib/unicase/u8-casemap.c: New file.
13982         * lib/unicase/u-casemap.h: New file.
13983         * modules/unicase/u8-casemap: New file.
13984
13985         New module 'unicase/special-casing'.
13986         * lib/unicase/special-casing.h: New file.
13987         * lib/unicase/special-casing.c: New file.
13988         * lib/unicase/special-casing-table.gperf: New file, generated by
13989         gen-uni-tables.c.
13990         * modules/unicase/special-casing: New file.
13991
13992         Tests for module 'unicase/locale-language'.
13993         * modules/unicase/locale-language-tests: New file.
13994         * tests/unicase/test-locale-language.sh: New file.
13995         * tests/unicase/test-locale-language.c: New file.
13996
13997         New module 'unicase/locale-language'.
13998         * lib/unicase/locale-language.c: New file.
13999         * lib/unicase/locale-languages.gperf: New file.
14000         * modules/unicase/locale-language: New file.
14001
14002         Generate more tables for case conversion and case folding.
14003         * lib/gen-uni-tables.c (SCC_*): New enum items.
14004         (struct special_casing_rule): New type.
14005         (casing_rules, num_casing_rules, allocated_casing_rules): New
14006         variables.
14007         (add_casing_rule, fill_casing_rules): New functions.
14008         (struct casefold_rule): New type.
14009         (casefolding_rules, num_casefolding_rules,
14010         allocated_casefolding_rules): New variables.
14011         (fill_casefolding_rules): New function.
14012         (unicode_casefold): New variable.
14013         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
14014         sort_casing_rules, output_casing_rules): New functions.
14015         (main): Accept to more arguments: SpecialCasing.txt and
14016         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
14017         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
14018         Output mapping for casefolding.
14019
14020         * lib/unicase.h: Include stdbool.h, uninorm.h.
14021         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
14022         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
14023         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
14024         arguments.
14025         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
14026         resultp arguments.
14027         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
14028         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
14029         resultp arguments.
14030         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
14031         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
14032         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
14033         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
14034         declarations.
14035         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
14036
14037 2009-03-08  Bruno Haible  <bruno@clisp.org>
14038
14039         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14040         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
14041         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
14042         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14043
14044 2009-03-07  Bruno Haible  <bruno@clisp.org>
14045
14046         Adjust u*_normcmp, u*_normcoll API.
14047         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
14048         u16_normcoll, u32_normcoll): Change failure conventions.
14049         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
14050         errno and return -1.
14051         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
14052
14053 2009-03-07  Bruno Haible  <bruno@clisp.org>
14054
14055         Tests for module 'uninorm/u32-normcoll'.
14056         * modules/uninorm/u32-normcoll-tests: New file.
14057         * tests/uninorm/test-u32-normcoll.c: New file.
14058
14059         Tests for module 'uninorm/u16-normcoll'.
14060         * modules/uninorm/u16-normcoll-tests: New file.
14061         * tests/uninorm/test-u16-normcoll.c: New file.
14062
14063         Tests for module 'uninorm/u8-normcoll'.
14064         * modules/uninorm/u8-normcoll-tests: New file.
14065         * tests/uninorm/test-u8-normcoll.c: New file.
14066
14067 2009-03-07  Bruno Haible  <bruno@clisp.org>
14068
14069         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
14070         tests/uninorm/test-u32-normcmp.c.
14071         * tests/uninorm/test-u32-normcmp.c: Include it.
14072         (test_nonascii): New function, extracted from main. Add some more
14073         tests.
14074         (main): Invoke test_ascii and test_nonascii.
14075         * modules/uninorm/u32-normcmp-tests (Files): Add
14076         tests/uninorm/test-u32-normcmp.h.
14077         (Depends-on): Remove uninorm/u32-normcmp.
14078
14079         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
14080         tests/uninorm/test-u16-normcmp.c.
14081         * tests/uninorm/test-u16-normcmp.c: Include it.
14082         (test_nonascii): New function, extracted from main. Add some more
14083         tests.
14084         (main): Invoke test_ascii and test_nonascii.
14085         * modules/uninorm/u16-normcmp-tests (Files): Add
14086         tests/uninorm/test-u16-normcmp.h.
14087         (Depends-on): Remove uninorm/u16-normcmp.
14088
14089         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
14090         tests/uninorm/test-u8-normcmp.c.
14091         * tests/uninorm/test-u8-normcmp.c: Include it.
14092         (test_nonascii): New function, extracted from main. Add some more
14093         tests.
14094         (main): Invoke test_ascii and test_nonascii.
14095         * modules/uninorm/u8-normcmp-tests (Files): Add
14096         tests/uninorm/test-u8-normcmp.h.
14097         (Depends-on): Remove uninorm/u8-normcmp.
14098
14099 2009-03-07  Bruno Haible  <bruno@clisp.org>
14100
14101         New module 'uninorm/u32-normcoll'.
14102         * lib/uninorm/u32-normcoll.c: New file.
14103         * modules/uninorm/u32-normcoll: New file.
14104
14105         New module 'uninorm/u16-normcoll'.
14106         * lib/uninorm/u16-normcoll.c: New file.
14107         * modules/uninorm/u16-normcoll: New file.
14108
14109         New module 'uninorm/u8-normcoll'.
14110         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
14111         declarations.
14112         * lib/uninorm/u8-normcoll.c: New file.
14113         * lib/uninorm/u-normcoll.h: New file.
14114         * modules/uninorm/u8-normcoll: New file.
14115
14116         New module 'uninorm/u32-normxfrm'.
14117         * lib/uninorm/u32-normxfrm.c: New file.
14118         * modules/uninorm/u32-normxfrm: New file.
14119
14120         New module 'uninorm/u16-normxfrm'.
14121         * lib/uninorm/u16-normxfrm.c: New file.
14122         * modules/uninorm/u16-normxfrm: New file.
14123
14124         New module 'uninorm/u8-normxfrm'.
14125         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
14126         declarations.
14127         * lib/uninorm/u8-normxfrm.c: New file.
14128         * lib/uninorm/u-normxfrm.h: New file.
14129         * modules/uninorm/u8-normxfrm: New file.
14130
14131 2009-03-07  Bruno Haible  <bruno@clisp.org>
14132
14133         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
14134         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
14135         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
14136
14137 2009-03-07  Bruno Haible  <bruno@clisp.org>
14138
14139         New module 'memxfrm'.
14140         * lib/memxfrm.h: New file.
14141         * lib/memxfrm.c: New file.
14142         * modules/memxfrm: New file.
14143
14144 2009-03-07  Bruno Haible  <bruno@clisp.org>
14145
14146         New module 'memcmp2'.
14147         * lib/memcmp2.h: New file.
14148         * lib/memcmp2.c: New file.
14149         * modules/memcmp2: New file.
14150
14151 2009-03-07  Bruno Haible  <bruno@clisp.org>
14152
14153         Tests for module 'uninorm/decomposing-form'.
14154         * modules/uninorm/decomposing-form-tests: New file.
14155         * tests/uninorm/test-decomposing-form.c: New file.
14156
14157         New module 'uninorm/decomposing-form'.
14158         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
14159         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
14160         Add 'decomposing_variant' field.
14161         * lib/uninorm/decomposing-form.c: New file.
14162         * lib/uninorm/nfc.c (uninorm_nfc): Update.
14163         * lib/uninorm/nfd.c (uninorm_nfd): Update.
14164         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
14165         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
14166         * modules/uninorm/decomposing-form: New file.
14167         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
14168         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
14169
14170 2009-03-07  Bruno Haible  <bruno@clisp.org>
14171
14172         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
14173         strings.
14174
14175 2009-03-06  Bruno Haible  <bruno@clisp.org>
14176
14177         Tests for module 'uninorm/u32-normcmp'.
14178         * tests/uninorm/test-u32-normcmp.c: New file.
14179         * modules/uninorm/u32-normcmp-tests: New file.
14180
14181         Tests for module 'uninorm/u16-normcmp'.
14182         * tests/uninorm/test-u16-normcmp.c: New file.
14183         * modules/uninorm/u16-normcmp-tests: New file.
14184
14185         Tests for module 'uninorm/u8-normcmp'.
14186         * tests/uninorm/test-u8-normcmp.c: New file.
14187         * modules/uninorm/u8-normcmp-tests: New file.
14188
14189         New module 'uninorm/u32-normcmp'.
14190         * lib/uninorm/u32-normcmp.c: New file.
14191         * modules/uninorm/u32-normcmp: New file.
14192
14193         New module 'uninorm/u16-normcmp'.
14194         * lib/uninorm/u16-normcmp.c: New file.
14195         * modules/uninorm/u16-normcmp: New file.
14196
14197         New module 'uninorm/u8-normcmp'.
14198         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
14199         declarations.
14200         * lib/uninorm/u8-normcmp.c: New file.
14201         * lib/uninorm/u-normcmp.h: New file.
14202         * modules/uninorm/u8-normcmp: New file.
14203
14204 2009-03-06  Bruno Haible  <bruno@clisp.org>
14205
14206         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
14207         Reported by Eric Blake.
14208
14209 2009-03-06  Eric Blake  <ebb9@byu.net>
14210             Bruno Haible  <bruno@clisp.org>
14211
14212         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
14213         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
14214         condition.
14215         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14216         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
14217         condition.
14218         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
14219
14220 2009-03-06  Eric Blake  <ebb9@byu.net>
14221
14222         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
14223         to avoid compiler warnings.
14224         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
14225
14226 2009-03-05  Bruno Haible  <bruno@clisp.org>
14227
14228         * tests/test-ftell.c (main): Disable test beyond end of file on
14229         FreeMiNT.
14230         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14231
14232 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
14233
14234         * lib/filevercmp.c: Move hidden files up in ordering.
14235         * tests/test-filevercmp.c: Add tests for hidden files.
14236
14237 2009-03-04  Bruno Haible  <bruno@clisp.org>
14238
14239         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
14240         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
14241         AM_CFLAGS.
14242         Reported by Simon Josefsson.
14243
14244 2009-03-03  Bruno Haible  <bruno@clisp.org>
14245
14246         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
14247         Reported by Simon Josefsson.
14248
14249         * doc/ld-version-script.texi: Update node reference.
14250
14251 2009-03-03  Bruno Haible  <bruno@clisp.org>
14252
14253         * modules/visibility (License): Change to 'unlimited'.
14254         Suggested by Simon Josefsson.
14255
14256 2009-03-03  Jim Meyering  <meyering@redhat.com>
14257
14258         unlinkdir: cannot_unlink_dir may modify process state
14259         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
14260         it's neither thread-safe nor appropriate for use in a library.
14261
14262 2009-03-03  Eric Blake  <ebb9@byu.net>
14263
14264         test-closein: silence test under Darwin
14265         * tests/test-closein.sh: Ignore stderr from cat, since we don't
14266         care if it dies from EPIPE or EBADF.
14267
14268 2009-03-03  Bruno Haible  <bruno@clisp.org>
14269
14270         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
14271         earlier.
14272         * doc/visibility.texi: Fix @node and @section.
14273
14274 2009-03-03  Simon Josefsson  <simon@josefsson.org>
14275
14276         * doc/gnulib.texi: Link to sections for ld version script and
14277         visibility.
14278         * doc/visibility.texi: Add @node and @section.
14279         * modules/ld-version-script: New module.
14280         * m4/ld-version-script.m4: New file.
14281         * doc/ld-version-script.texi: New file.
14282
14283 2009-03-02  David Lutterkort  <lutter@redhat.com>
14284
14285         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
14286         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14287
14288 2009-03-02  Bruno Haible  <bruno@clisp.org>
14289
14290         * doc/visibility.texi: Mention libtool's -export-symbols option.
14291
14292 2009-03-02  Jim Meyering  <meyering@redhat.com>
14293
14294         announce-gen: new option: --no-print-checksums
14295         * build-aux/announce-gen (usage): Describe it.
14296         (print_checksums): Print a newline here, not in the [*] footnote.
14297         (main): Honor it.
14298
14299 2009-03-01  Bruno Haible  <bruno@clisp.org>
14300
14301         Use socklen_t in the native Windows replacements prototypes.
14302         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
14303         instead of 'int'.
14304         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14305         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14306         * modules/getsockopt (Depends-on): Add socklen.
14307         * modules/setsockopt (Depends-on): Add socklen.
14308
14309 2009-03-01  Bruno Haible  <bruno@clisp.org>
14310
14311         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
14312         least 4.2.
14313
14314 2009-03-01  Eric Blake  <ebb9@byu.net>
14315             Bruno Haible  <bruno@clisp.org>
14316
14317         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
14318         error messages.
14319         * lib/wait-process.c (wait_subprocess): Omit error message about
14320         deadly signal sent to the child of termsigp != NULL.
14321
14322 2009-03-01  Eric Blake  <ebb9@byu.net>
14323
14324         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
14325
14326 2009-03-01  Bruno Haible  <bruno@clisp.org>
14327
14328         Avoid a gcc warning.
14329         * tests/test-sched.c (b): Make global.
14330         Reported by Eric Blake.
14331
14332 2009-01-19  Martin Lambers  <marlam@marlam.de>
14333
14334         Provide POSIX semantics for socket timeout options on W32.
14335         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
14336         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
14337         * modules/setsockopt: Depend on sys_time module for struct timeval.
14338         * modules/getsockopt: Depend on sys_time module for struct timeval.
14339
14340 2009-03-01  Simon Josefsson  <simon@josefsson.org>
14341
14342         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
14343         __USE_GNU, for consistency with netdb.in.h.
14344         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14345
14346 2009-03-01  Bruno Haible  <bruno@clisp.org>
14347
14348         More support for FreeMiNT.
14349         * lib/fseeko.c (rpl_fseeko): Complete last commit.
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/fpurge.c (fpurge): Correct last commit.
14356         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14357
14358 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14359
14360         Fix unportable awk script in vc-list-files.
14361         * build-aux/vc-list-files: In the replacement awk script, use
14362         substr with a second argument of 1, not zero.
14363         Report by Simon Josefsson.
14364
14365 2009-02-28  Bruno Haible  <bruno@clisp.org>
14366
14367         More support for FreeMiNT.
14368         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
14369         to FreeMiNT today.
14370         * lib/fwriting.c (fwriting): Likewise.
14371         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
14372
14373 2009-02-28  Bruno Haible  <bruno@clisp.org>
14374
14375         * tests/test-freadseek.c (main): Disable test beyond end of file on
14376         FreeMiNT.
14377         * tests/test-ftello.c (main): Likewise.
14378         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
14379
14380 2009-02-28  Bruno Haible  <bruno@clisp.org>
14381
14382         Add tentative support for FreeMiNT.
14383         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
14384         * lib/fpurge.c (fpurge): Likewise.
14385         * lib/freadable.c (freadable): Likewise.
14386         * lib/freading.c (freading): Likewise.
14387         * lib/freadptr.c (freadptr): Likewise.
14388         * lib/freadseek.c (freadptrinc): Likewise.
14389         * lib/fseeko.c (rpl_fseeko): Likewise.
14390         * lib/fseterr.c (fseterr): Likewise.
14391         * lib/fwritable.c (fwritable): Likewise.
14392         * lib/fwriting.c (fwriting): Likewise.
14393         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
14394         Hourihane.
14395         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
14396
14397 2009-02-28  Bruno Haible  <bruno@clisp.org>
14398
14399         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
14400         SIGCHLD.
14401         Reported by Jim Meyering.
14402
14403 2009-02-28  Bruno Haible  <bruno@clisp.org>
14404
14405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
14406         Mention the results of these tests on various platforms.
14407         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
14408         order.
14409         * doc/posix-functions/printf.texi: Likewise.
14410         * doc/posix-functions/snprintf.texi: Likewise.
14411         * doc/posix-functions/sprintf.texi: Likewise.
14412         * doc/posix-functions/vfprintf.texi: Likewise.
14413         * doc/posix-functions/vprintf.texi: Likewise.
14414         * doc/posix-functions/vsnprintf.texi: Likewise.
14415         * doc/posix-functions/vsprintf.texi: Likewise.
14416         * doc/glibc-functions/obstack_printf.texi: Likewise.
14417         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14418
14419 2009-02-28  Bruno Haible  <bruno@clisp.org>
14420
14421         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
14422         Reported by Loïc Minier <lool@dooz.org>.
14423
14424 2009-02-27  Bruno Haible  <bruno@clisp.org>
14425
14426         * gnulib-tool (func_import): Make the sed expression used to create the
14427         sed script for updating the .gitignore file POSIX compliant.
14428         Reported by Eric Blake.
14429
14430 2009-02-27  Bruno Haible  <bruno@clisp.org>
14431
14432         * gnulib-tool (sed): Don't alias as "sed --posix".
14433         Reported by Eric Blake.
14434
14435 2009-02-27  Bruno Haible  <bruno@clisp.org>
14436
14437         Avoid test link errors.
14438         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
14439         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
14440         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
14441         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
14442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14443
14444 2009-02-27  Bruno Haible  <bruno@clisp.org>
14445
14446         Avoid spurious "(cached)" in configure output.
14447         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14448         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14449         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14450         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14451         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14452         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14453         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14454         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14455         Reported by Eric Blake.
14456
14457 2009-02-27  Eric Blake  <ebb9@byu.net>
14458
14459         printf: fix regression in previous patch
14460         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14461
14462 2009-02-27  Bruno Haible  <bruno@clisp.org>
14463
14464         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14465         value.
14466         * lib/stdint.in.h: Likewise.
14467         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14468
14469 2009-02-27  Eric Blake  <ebb9@byu.net>
14470
14471         doc: mention more functions added in cygwin 1.7.0
14472         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14473         addition.
14474         * doc/posix-functions/open_wmemstream.texi: Likewise.
14475         * doc/posix-functions/wcsnlen.texi: Likewise.
14476         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14477         * doc/posix-functions/wcstod.texi: Likewise.
14478         * doc/posix-functions/wcstof.texi: Likewise.
14479         * doc/posix-functions/wcstoimax.texi: Likewise.
14480         * doc/posix-functions/wcstok.texi: Likewise.
14481         * doc/posix-functions/wcstoumax.texi: Likewise.
14482
14483         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14484         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14485         * doc/posix-functions/fprintf.texi: Update.
14486         * doc/posix-functions/printf.texi: Update.
14487         * doc/posix-functions/snprintf.texi: Update.
14488         * doc/posix-functions/sprintf.texi: Update.
14489         * doc/posix-functions/vfprintf.texi: Update.
14490         * doc/posix-functions/vprintf.texi: Update.
14491         * doc/posix-functions/vsnprintf.texi: Update.
14492         * doc/posix-functions/vsprintf.texi: Update.
14493         * doc/glibc-functions/obstack_printf.texi: Update.
14494         * doc/glibc-functions/obstack_vprintf.texi: Update.
14495
14496 2009-02-26  Eric Blake  <ebb9@byu.net>
14497
14498         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14499         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14500         compilation bug by using runtime conversion.
14501         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14502         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14503         * modules/ceill-tests (Files): Use nan.h.
14504         * modules/floorl-tests (Files): Likewise.
14505         * modules/frexpl-tests (Files): Likewise.
14506         * modules/isnanl-tests (Files): Likewise.
14507         * modules/ldexpl-tests (Files): Likewise.
14508         * modules/roundl-tests (Files): Likewise.
14509         * modules/truncl-tests (Files): Likewise.
14510         * tests/test-ceill.c (main): Use a working NaN.
14511         * tests/test-floorl.c (main): Likewise.
14512         * tests/test-frexpl.c (main): Likewise.
14513         * tests/test-isnan.c (test_long_double): Likewise.
14514         * tests/test-isnanl.h (main): Likewise.
14515         * tests/test-ldexpl.h (main): Likewise.
14516         * tests/test-roundl.h (main): Likewise.
14517         * tests/test-truncl.h (main): Likewise.
14518         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14519
14520 2009-02-26  Eric Blake  <ebb9@byu.net>
14521             Bruno Haible  <bruno@clisp.org>
14522
14523         Work around a *printf bug with %ls on Solaris.
14524         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14525         precision is specified, sprintf stops converting the wide string
14526         argument when the number of bytes that have been produced by this
14527         conversion equals or exceeds the precision.
14528         * doc/posix-functions/fprintf.texi: Update.
14529         * doc/posix-functions/printf.texi: Update.
14530         * doc/posix-functions/snprintf.texi: Update.
14531         * doc/posix-functions/sprintf.texi: Update.
14532         * doc/posix-functions/vfprintf.texi: Update.
14533         * doc/posix-functions/vprintf.texi: Update.
14534         * doc/posix-functions/vsnprintf.texi: Update.
14535         * doc/posix-functions/vsprintf.texi: Update.
14536         * doc/glibc-functions/obstack_printf.texi: Update.
14537         * doc/glibc-functions/obstack_vprintf.texi: Update.
14538
14539 2009-02-26  Eric Blake  <ebb9@byu.net>
14540
14541         stdlib: favor compiler check of random.h
14542         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
14543         to avoid an ObjC random.h installed by Swarm.
14544
14545 2009-02-26  Bruno Haible  <bruno@clisp.org>
14546
14547         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14548         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14549         Reported by Gary V. Vaughan <gary@gnu.org>.
14550
14551 2009-02-26  Bruno Haible  <bruno@clisp.org>
14552
14553         Fix *printf behaviour regarding the %ls directive.
14554         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14555         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14556         NEED_PRINTF_DIRECTIVE_LS.
14557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14558         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14560         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14561         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14562         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14563         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14564         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14565         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14568         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14572         * doc/posix-functions/fprintf.texi: Update.
14573         * doc/posix-functions/printf.texi: Update.
14574         * doc/posix-functions/snprintf.texi: Update.
14575         * doc/posix-functions/sprintf.texi: Update.
14576         * doc/posix-functions/vfprintf.texi: Update.
14577         * doc/posix-functions/vprintf.texi: Update.
14578         * doc/posix-functions/vsnprintf.texi: Update.
14579         * doc/posix-functions/vsprintf.texi: Update.
14580         * doc/glibc-functions/obstack_printf.texi: Update.
14581         * doc/glibc-functions/obstack_vprintf.texi: Update.
14582         Reported by Eric Blake.
14583
14584 2009-02-25  Bruno Haible  <bruno@clisp.org>
14585
14586         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14587         with known value.
14588         Reported by Gary V. Vaughan <gary@gnu.org>.
14589
14590 2009-02-25  Bruno Haible  <bruno@clisp.org>
14591
14592         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14593         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14594         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14595         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14596         Reported by Gary V. Vaughan <gary@gnu.org>.
14597
14598 2009-02-25  Bruno Haible  <bruno@clisp.org>
14599
14600         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14601         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14602         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14603         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14604         Reported by Gary V. Vaughan <gary@gnu.org>.
14605
14606 2009-02-25  Eric Blake  <ebb9@byu.net>
14607
14608         tests: skip fseek/ftell tests if ungetc is broken
14609         * m4/ungetc.m4: New file.
14610         * modules/fseek-tests: Split test, so ungetc dependency is
14611         separate from rest of test.
14612         * modules/fseeko-tests: Likewise.
14613         * modules/ftell-tests: Likewise.
14614         * modules/ftello-tests: Likewise.
14615         * tests/test-fseek.c (main): Isolate ungetc dependency.
14616         * tests/test-fseeko.c (main): Likewise.
14617         * tests/test-ftell.c (main): Likewise.
14618         * tests/test-ftello.c (main): Likewise.
14619         * tests/test-fseek2.sh: New file.
14620         * tests/test-fseeko2.sh: Likewise.
14621         * tests/test-ftell2.sh: Likewise.
14622         * tests/test-ftello2.sh: Likewise.
14623
14624 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
14625
14626         test-getaddrinfo: fix usage of skip return code 77
14627         * tests/test-gettaddrinfo.c: Return skip code 77 only
14628         for first occurance of skip (4x77 is not 77)
14629
14630 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
14631
14632         strtod: avoid C99 decl-after-statement
14633         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14634
14635 2009-02-24  Eric Blake  <ebb9@byu.net>
14636
14637         strtod: detect HP-UX 11.31 bug
14638         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14639         Reported by Gary V. Vaughan.
14640
14641 2009-02-23  Bruno Haible  <bruno@clisp.org>
14642
14643         Fix invalid read past end of memory block.
14644         * lib/vasnprintf.c (DCHAR_SET): Define.
14645         (local_wcslen): Define only when needed.
14646         (local_strnlen, local_wcsnlen): New functions.
14647         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14648         directives that involve a conversion ourselves.
14649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14650         wcsnlen, mbrtowc, wcrtomb.
14651         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14652         * tests/test-vasprintf-posix.c (test_function): Likewise.
14653         * tests/test-snprintf-posix.h (test_function): Likewise.
14654         * tests/test-sprintf-posix.h (test_function): Likewise.
14655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14656
14657 2009-02-22  Bruno Haible  <bruno@clisp.org>
14658
14659         Implement new clarified decomposition of Hangul syllables.
14660         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14661         of type LTV, return only a pairwise decomposition.
14662         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14663         Likewise.
14664         * tests/uninorm/test-decomposition.c (main): Updated expected result.
14665         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14666         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14667
14668 2009-02-22  Bruno Haible  <bruno@clisp.org>
14669
14670         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14671         zero-length results and shrink excess allocated memory.
14672         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14673         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14674         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14675         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14676         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14677         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14678         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14679         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14680         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14681         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14682         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14683         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14684
14685 2009-02-21  Bruno Haible  <bruno@clisp.org>
14686
14687         * doc/gnulib.texi: Include safe-alloc.texi earlier.
14688         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14689         spaces after a period. Put a space between a macro name and its
14690         argument list. Trivial rewordings.
14691         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14692         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14693         (main): Return 0 explicitly.
14694
14695 2009-02-21  Bruno Haible  <bruno@clisp.org>
14696
14697         Tests for module 'uninorm/filter'.
14698         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14699         * modules/uninorm/filter-tests: New file.
14700
14701         New module 'uninorm/filter'.
14702         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14703         uninorm_filter_flush, uninorm_filter_free): New declarations.
14704         * lib/uninorm/uninorm-filter.c: New file.
14705         * modules/uninorm/filter: New file.
14706
14707 2009-02-21  Bruno Haible  <bruno@clisp.org>
14708
14709         Tests for module 'uninorm/nfkc'.
14710         * tests/uninorm/test-nfkc.c: New file.
14711         * tests/uninorm/test-u8-nfkc.c: New file.
14712         * tests/uninorm/test-u16-nfkc.c: New file.
14713         * tests/uninorm/test-u32-nfkc.c: New file.
14714         * tests/uninorm/test-u32-nfkc-big.sh: New file.
14715         * tests/uninorm/test-u32-nfkc-big.c: New file.
14716         * modules/uninorm/nfkc-tests: New file.
14717
14718         New module 'uninorm/nfkc'.
14719         * lib/uninorm/nfkc.c: New file.
14720         * modules/uninorm/nfkc: New file.
14721
14722         Tests for module 'uninorm/nfkd'.
14723         * tests/uninorm/test-nfkd.c: New file.
14724         * tests/uninorm/test-u8-nfkd.c: New file.
14725         * tests/uninorm/test-u16-nfkd.c: New file.
14726         * tests/uninorm/test-u32-nfkd.c: New file.
14727         * tests/uninorm/test-u32-nfkd-big.sh: New file.
14728         * tests/uninorm/test-u32-nfkd-big.c: New file.
14729         * modules/uninorm/nfkd-tests: New file.
14730
14731         New module 'uninorm/nfkd'.
14732         * lib/uninorm/nfkd.c: New file.
14733         * modules/uninorm/nfkd: New file.
14734
14735         Tests for module 'uninorm/nfc'.
14736         * tests/uninorm/test-nfc.c: New file.
14737         * tests/uninorm/test-u8-nfc.c: New file.
14738         * tests/uninorm/test-u16-nfc.c: New file.
14739         * tests/uninorm/test-u32-nfc.c: New file.
14740         * tests/uninorm/test-u32-nfc-big.sh: New file.
14741         * tests/uninorm/test-u32-nfc-big.c: New file.
14742         * modules/uninorm/nfc-tests: New file.
14743
14744         New module 'uninorm/nfc'.
14745         * lib/uninorm/nfc.c: New file.
14746         * modules/uninorm/nfc: New file.
14747
14748         Tests for module 'uninorm/nfd'.
14749         * tests/uninorm/test-nfd.c: New file.
14750         * tests/uninorm/test-u8-nfd.c: New file.
14751         * tests/uninorm/test-u16-nfd.c: New file.
14752         * tests/uninorm/test-u32-nfd.c: New file.
14753         * tests/uninorm/test-u32-nfd-big.sh: New file.
14754         * tests/uninorm/test-u32-nfd-big.c: New file.
14755         * tests/uninorm/test-u32-normalize-big.h: New file.
14756         * tests/uninorm/test-u32-normalize-big.c: New file.
14757         * tests/uninorm/NormalizationTest.txt: New file, created from
14758         Unicode 5.1.0 NormalizationTest.txt.
14759         * modules/uninorm/nfd-tests: New file.
14760
14761         New module 'uninorm/nfd'.
14762         * lib/uninorm/nfd.c: New file.
14763         * modules/uninorm/nfd: New file.
14764
14765         New module 'uninorm/u32-normalize'.
14766         * lib/uninorm/u32-normalize.c: New file.
14767         * modules/uninorm/u32-normalize: New file.
14768
14769         New module 'uninorm/u16-normalize'.
14770         * lib/uninorm/u16-normalize.c: New file.
14771         * modules/uninorm/u16-normalize: New file.
14772
14773         New module 'uninorm/u8-normalize'.
14774         * lib/uninorm/u8-normalize.c: New file.
14775         * lib/uninorm/normalize-internal.h: New file.
14776         * lib/uninorm/u-normalize-internal.h: New file.
14777         * modules/uninorm/u8-normalize: New file.
14778
14779         New module 'uninorm/decompose-internal'.
14780         * lib/uninorm/decompose-internal.c: New file.
14781         * modules/uninorm/decompose-internal: New file.
14782
14783         Tests for module 'uninorm/composition'.
14784         * tests/uninorm/test-composition.c: New file.
14785         * modules/uninorm/composition-tests: New file.
14786
14787         New module 'uninorm/composition'.
14788         * lib/uninorm/composition.c: New file.
14789         * lib/uninorm/composition-table.gperf: New file, generated by
14790         gen-uni-tables.
14791         * modules/uninorm/composition: New file.
14792
14793         Tests for module 'uninorm/compat-decomposition'.
14794         * tests/uninorm/test-compat-decomposition.c: New file.
14795         * modules/uninorm/compat-decomposition-tests: New file.
14796
14797         New module 'uninorm/compat-decomposition'.
14798         * lib/uninorm/decompose-internal.h: New file.
14799         * lib/uninorm/compat-decomposition.c: New file.
14800         * modules/uninorm/compat-decomposition: New file.
14801
14802         Tests for module 'uninorm/canonical-decomposition'.
14803         * tests/uninorm/test-canonical-decomposition.c: New file.
14804         * modules/uninorm/canonical-decomposition-tests: New file.
14805
14806         New module 'uninorm/canonical-decomposition'.
14807         * lib/uninorm/canonical-decomposition.c: New file.
14808         * modules/uninorm/canonical-decomposition: New file.
14809
14810         Tests for module 'uninorm/decomposition'.
14811         * tests/uninorm/test-decomposition.c: New file.
14812         * modules/uninorm/decomposition-tests: New file.
14813
14814         New module 'uninorm/decomposition'.
14815         * lib/uninorm/decomposition.c: New file.
14816         * modules/uninorm/decomposition: New file.
14817
14818         New module 'uninorm/decomposition-table'.
14819         * lib/uninorm/decomposition-table.h: New file.
14820         * lib/uninorm/decomposition-table.c: New file.
14821         * lib/uninorm/decomposition-table1.h: New file, generated by
14822         gen-uni-tables.
14823         * lib/uninorm/decomposition-table2.h: New file, generated by
14824         gen-uni-tables.
14825         * modules/uninorm/decomposition-table: New file.
14826
14827         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14828         (UC_DECOMP_*): New enumeration items.
14829         (get_decomposition): New function.
14830         (struct decomp_table): New type.
14831         (output_decomposition, output_decomposition_tables): New functions.
14832         (unicode_composition_exclusions): New variable.
14833         (fill_composition_exclusions, debug_output_composition_tables): New
14834         functions.
14835         (main): Accept one more argument. Invoke fill_composition_exclusions.
14836         Output decomposition and composition tables.
14837
14838         New module 'uninorm/base'.
14839         * lib/uninorm.h: New file.
14840         * lib/unictype.h: Update comment.
14841         * modules/uninorm/base: New file.
14842
14843 2009-02-21  David Lutterkort  <lutter@redhat.com>
14844
14845         Tests for module 'safe-alloc'.
14846         * tests/test-safe-alloc.c: New file.
14847         * modules/safe-alloc-tests: New file.
14848
14849         New module 'safe-alloc'.
14850         * lib/safe-alloc.h: New file.
14851         * lib/safe-alloc.c: New file.
14852         * m4/safe-alloc.m4: New file.
14853         * modules/safe-alloc: New file.
14854         * doc/safe-alloc.texi: New file.
14855         * doc/gnulib.texi: Include it.
14856         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14857         safe-alloc.
14858
14859 2009-02-18  Bruno Haible  <bruno@clisp.org>
14860
14861         Fix link error on non-glibc systems.
14862         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14863         variable.
14864         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14865
14866 2009-02-18  Jim Meyering  <meyering@redhat.com>
14867
14868         fts: avoid used-uninitialized error due to recent change
14869         * lib/fts.c (fts_read): Guard uses of the new member,
14870         parent->fts_n_dirs_remaining, since it's not relevant for
14871         the parent of a directory specified on the command-line.
14872
14873 2009-02-17  James Youngman  <jay@gnu.org>
14874             Bruno Haible  <bruno@clisp.org>
14875
14876         * m4/include_next.m4: Reformulate comment.
14877
14878 2009-02-16  Jim Meyering  <meyering@redhat.com>
14879
14880         fts: add #if guards so that the fts_lgpl module still builds
14881         * lib/fts.c: Guard just-added hash-table-using parts with
14882         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14883         Reported by Simon Josefsson.
14884
14885 2009-02-15  Bruno Haible  <bruno@clisp.org>
14886
14887         * modules/array-mergesort-tests: New file.
14888         * tests/test-array-mergesort.c: New file.
14889
14890         New module 'array-mergesort'.
14891         * modules/array-mergesort: New file.
14892         * lib/array-mergesort.h: New file.
14893
14894 2009-02-15  Bruno Haible  <bruno@clisp.org>
14895
14896         Fix 2009-02-07 commit.
14897         * lib/gen-uni-tables.c (output_predicate, output_category,
14898         output_combclass, output_bidi_category, output_decimal_digit,
14899         output_digit, output_numeric, output_mirror, output_scripts,
14900         output_ident_category, output_simple_mapping): Fix format directives.
14901         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14902
14903 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
14904
14905         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14906         fixes are available from IBM.
14907
14908 2009-02-13  Jim Meyering  <meyering@redhat.com>
14909
14910         fts: arrange not to stat non-directories in more cases
14911         This makes GNU find (when it doesn't need to stat each file)
14912         *much* more efficient at traversing reiserfs file systems.
14913         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14914         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14915         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14916         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14917         (leaf_optimization_applies): New function.
14918         (LCO_hash, LCO_compare): New helper functions.
14919         (link_count_optimize_ok): New function.
14920         (fts_stat): Initialize new member (if dir).
14921         (fts_read): Decrement parent's fts_n_dirs_remaining count if
14922         we've just stat'ed a directory.  Skip the stat call when possible.
14923         ---
14924         Note this AFS-related exchange:
14925         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14926         and note find's pioctl call in find/fstype.c.
14927         But that is necessary only if you want to enable the
14928         optimization for AFS, and for now, I don't.
14929
14930         fts: move a function definition "up" (no semantic change)
14931         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14932         "up" to precede upcoming use of a related function.
14933
14934 2009-02-11  Jim Meyering  <meyering@redhat.com>
14935
14936         fts: correct internal computation of nlinks (optimization-related)
14937         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14938         whether the current entry is a directory, so don't test it.
14939
14940 2009-02-10  Bruno Haible  <bruno@clisp.org>
14941
14942         Tests for module 'uniwbrk/ulc-wordbreaks'.
14943         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14944         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14945         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14946
14947         Tests for module 'uniwbrk/u32-wordbreaks'.
14948         * modules/uniwbrk/u32-wordbreaks-tests: New file.
14949         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14950
14951         Tests for module 'uniwbrk/u16-wordbreaks'.
14952         * modules/uniwbrk/u16-wordbreaks-tests: New file.
14953         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14954
14955         Tests for module 'uniwbrk/u8-wordbreaks'.
14956         * modules/uniwbrk/u8-wordbreaks-tests: New file.
14957         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14958
14959 2009-02-10  Bruno Haible  <bruno@clisp.org>
14960
14961         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14962         property.
14963         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14964         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14965         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14966
14967 2009-02-10  Simon Josefsson  <simon@josefsson.org>
14968
14969         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14970         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
14971
14972 2009-02-10  Bruno Haible  <bruno@clisp.org>
14973
14974         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14975         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14976         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14977         * lib/unilbrk/u8-possible-linebreaks.c: Update.
14978         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14979         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14980
14981 2009-02-09  Simon Josefsson  <simon@josefsson.org>
14982
14983         * lib/sockets.h (gl_fd_to_handle): New function.
14984
14985         * tests/test-sockets.c: Call gl_fd_to_handle.
14986
14987 2009-02-09  Bruno Haible  <bruno@clisp.org>
14988
14989         * doc/havelib.texi: Document the conventions on bi-arch systems.
14990
14991 2009-02-08  Bruno Haible  <bruno@clisp.org>
14992
14993         Document the AC_LIB_LINKFLAGS macro.
14994         * doc/havelib.texi: New file, mostly written on 2005-05-24.
14995         * doc/gnulib.texi: Include it.
14996
14997 2009-02-08  Bruno Haible  <bruno@clisp.org>
14998
14999         Fix wrong order of sections, compared to TOC.
15000         * doc/gnulib.texi: Include relocatable-maint.texi after the
15001         "Regular expressions" node, not before.
15002
15003 2009-02-08  Bruno Haible  <bruno@clisp.org>
15004
15005         Tests for module 'unicase/totitle'.
15006         * modules/unicase/totitle-tests: New file.
15007
15008         Tests for module 'unicase/tolower'.
15009         * modules/unicase/tolower-tests: New file.
15010
15011         Tests for module 'unicase/toupper'.
15012         * modules/unicase/toupper-tests: New file.
15013         * tests/unicase/test-mapping-part1.h: New file.
15014         * tests/unicase/test-mapping-part2.h: New file.
15015
15016         New module 'unicase/totitle'.
15017         * modules/unicase/totitle: New file.
15018         * lib/unicase/totitle.c: New file.
15019
15020         New module 'unicase/tolower'.
15021         * modules/unicase/tolower: New file.
15022         * lib/unicase/tolower.c: New file.
15023
15024         New module 'unicase/toupper'.
15025         * modules/unicase/toupper: New file.
15026         * lib/unicase/toupper.c: New file.
15027         * lib/unicase/simple-mapping.h: New file.
15028
15029         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
15030         (mapping_table): New structure.
15031         (output_simple_mapping): New function.
15032         (main): Invoke output_simple_mapping_test and output_simple_mapping.
15033         * modules/gen-uni-tables (Description): Update.
15034         * lib/unicase/toupper.h: New file, automatically generated by
15035         gen-uni-tables.
15036         * lib/unicase/tolower.h: New file, automatically generated by
15037         gen-uni-tables.
15038         * lib/unicase/totitle.h: New file, automatically generated by
15039         gen-uni-tables.
15040         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
15041         gen-uni-tables.
15042         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
15043         gen-uni-tables.
15044         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
15045         gen-uni-tables.
15046
15047         New module 'unicase/base'.
15048         * modules/unicase/base: New file.
15049         * lib/unicase.h: New file.
15050
15051 2009-02-08  Bruno Haible  <bruno@clisp.org>
15052
15053         New module 'uniwbrk/ulc-wordbreaks'.
15054         * modules/uniwbrk/ulc-wordbreaks: New file.
15055         * lib/uniwbrk/ulc-wordbreaks.c: New file.
15056
15057         New module 'uniwbrk/u32-wordbreaks'.
15058         * modules/uniwbrk/u32-wordbreaks: New file.
15059         * lib/uniwbrk/u32-wordbreaks.c: New file.
15060
15061         New module 'uniwbrk/u16-wordbreaks'.
15062         * modules/uniwbrk/u16-wordbreaks: New file.
15063         * lib/uniwbrk/u16-wordbreaks.c: New file.
15064
15065         New module 'uniwbrk/u8-wordbreaks'.
15066         * modules/uniwbrk/u8-wordbreaks: New file.
15067         * lib/uniwbrk/u8-wordbreaks.c: New file.
15068         * lib/uniwbrk/u-wordbreaks.h: New file.
15069
15070         New module 'uniwbrk/table'.
15071         * modules/uniwbrk/table: New file.
15072         * lib/uniwbrk/wbrktable.h: New file.
15073         * lib/uniwbrk/wbrktable.c: New file.
15074
15075         New module 'uniwbrk/wordbreak-property'.
15076         * modules/uniwbrk/wordbreak-property: New file.
15077         * lib/uniwbrk/wordbreak-property.c: New file.
15078
15079         * lib/gen-uni-tables.c (WBP_*): New enum items.
15080         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
15081         (unicode_org_wbp): New variable.
15082         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
15083         New functions.
15084         (wbp_table): New structure.
15085         (output_wbp, output_wbrk_tables): New functions.
15086         (main): Accept additional argument. Invoke fill_org_wbp,
15087         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
15088         output_wbrk_tables.
15089         * modules/gen-uni-tables (Description): Update.
15090         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
15091         gen-uni-tables.
15092
15093         New module 'uniwbrk/base'.
15094         * modules/uniwbrk/base: New file.
15095         * lib/uniwbrk.h: New file.
15096
15097 2009-02-08  Bruno Haible  <bruno@clisp.org>
15098
15099         Update to Unicode 5.1.0.
15100         * lib/gen-uni-tables.c (is_property_alphabetic): Include
15101         U+2185..U+2188.
15102         (is_property_default_ignorable_code_point): Don't include characters
15103         of category Cc or Cs and not-a-characters.
15104         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
15105         U+0D79, U+109E, U+109F, U+A60C.
15106         * lib/unictype/bidi_of.h: Regenerated.
15107         * lib/unictype/blocks.h: Regenerated.
15108         * lib/unictype/categ_C.h: Regenerated.
15109         * lib/unictype/categ_Cf.h: Regenerated.
15110         * lib/unictype/categ_Cn.h: Regenerated.
15111         * lib/unictype/categ_L.h: Regenerated.
15112         * lib/unictype/categ_Ll.h: Regenerated.
15113         * lib/unictype/categ_Lm.h: Regenerated.
15114         * lib/unictype/categ_Lo.h: Regenerated.
15115         * lib/unictype/categ_Lu.h: Regenerated.
15116         * lib/unictype/categ_M.h: Regenerated.
15117         * lib/unictype/categ_Mc.h: Regenerated.
15118         * lib/unictype/categ_Me.h: Regenerated.
15119         * lib/unictype/categ_Mn.h: Regenerated.
15120         * lib/unictype/categ_N.h: Regenerated.
15121         * lib/unictype/categ_Nd.h: Regenerated.
15122         * lib/unictype/categ_Nl.h: Regenerated.
15123         * lib/unictype/categ_No.h: Regenerated.
15124         * lib/unictype/categ_P.h: Regenerated.
15125         * lib/unictype/categ_Pd.h: Regenerated.
15126         * lib/unictype/categ_Pe.h: Regenerated.
15127         * lib/unictype/categ_Pf.h: Regenerated.
15128         * lib/unictype/categ_Pi.h: Regenerated.
15129         * lib/unictype/categ_Po.h: Regenerated.
15130         * lib/unictype/categ_Ps.h: Regenerated.
15131         * lib/unictype/categ_S.h: Regenerated.
15132         * lib/unictype/categ_Sk.h: Regenerated.
15133         * lib/unictype/categ_Sm.h: Regenerated.
15134         * lib/unictype/categ_So.h: Regenerated.
15135         * lib/unictype/categ_of.h: Regenerated.
15136         * lib/unictype/combining.h: Regenerated.
15137         * lib/unictype/ctype_alnum.h: Regenerated.
15138         * lib/unictype/ctype_alpha.h: Regenerated.
15139         * lib/unictype/ctype_graph.h: Regenerated.
15140         * lib/unictype/ctype_lower.h: Regenerated.
15141         * lib/unictype/ctype_print.h: Regenerated.
15142         * lib/unictype/ctype_punct.h: Regenerated.
15143         * lib/unictype/ctype_upper.h: Regenerated.
15144         * lib/unictype/decdigit.h: Regenerated.
15145         * lib/unictype/digit.h: Regenerated.
15146         * lib/unictype/mirror.h: Regenerated.
15147         * lib/unictype/numeric.h: Regenerated.
15148         * lib/unictype/pr_alphabetic.h: Regenerated.
15149         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
15150         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
15151         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
15152         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
15153         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
15154         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
15155         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
15156         * lib/unictype/pr_combining.h: Regenerated.
15157         * lib/unictype/pr_dash.h: Regenerated.
15158         * lib/unictype/pr_decimal_digit.h: Regenerated.
15159         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
15160         * lib/unictype/pr_deprecated.h: Regenerated.
15161         * lib/unictype/pr_diacritic.h: Regenerated.
15162         * lib/unictype/pr_extender.h: Regenerated.
15163         * lib/unictype/pr_format_control.h: Regenerated.
15164         * lib/unictype/pr_grapheme_base.h: Regenerated.
15165         * lib/unictype/pr_grapheme_extend.h: Regenerated.
15166         * lib/unictype/pr_grapheme_link.h: Regenerated.
15167         * lib/unictype/pr_id_continue.h: Regenerated.
15168         * lib/unictype/pr_id_start.h: Regenerated.
15169         * lib/unictype/pr_ideographic.h: Regenerated.
15170         * lib/unictype/pr_ignorable_control.h: Regenerated.
15171         * lib/unictype/pr_lowercase.h: Regenerated.
15172         * lib/unictype/pr_math.h: Regenerated.
15173         * lib/unictype/pr_numeric.h: Regenerated.
15174         * lib/unictype/pr_other_alphabetic.h: Regenerated.
15175         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
15176         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
15177         * lib/unictype/pr_other_id_continue.h: Regenerated.
15178         * lib/unictype/pr_other_lowercase.h: Regenerated.
15179         * lib/unictype/pr_other_math.h: Regenerated.
15180         * lib/unictype/pr_punctuation.h: Regenerated.
15181         * lib/unictype/pr_sentence_terminal.h: Regenerated.
15182         * lib/unictype/pr_soft_dotted.h: Regenerated.
15183         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
15184         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
15185         * lib/unictype/pr_unified_ideograph.h: Regenerated.
15186         * lib/unictype/pr_uppercase.h: Regenerated.
15187         * lib/unictype/pr_xid_continue.h: Regenerated.
15188         * lib/unictype/pr_xid_start.h: Regenerated.
15189         * lib/unictype/pr_zero_width.h: Regenerated.
15190         * lib/unictype/scripts.h: Regenerated.
15191         * lib/unictype/scripts_byname.gperf: Regenerated.
15192         * lib/unictype/sy_java_ident.h: Regenerated.
15193         * lib/unilbrk/lbrkprop1.h: Regenerated.
15194         * lib/unilbrk/lbrkprop2.h: Regenerated.
15195         * tests/unictype/test-categ_C.c: Regenerated.
15196         * tests/unictype/test-categ_Cf.c: Regenerated.
15197         * tests/unictype/test-categ_Cn.c: Regenerated.
15198         * tests/unictype/test-categ_L.c: Regenerated.
15199         * tests/unictype/test-categ_Ll.c: Regenerated.
15200         * tests/unictype/test-categ_Lm.c: Regenerated.
15201         * tests/unictype/test-categ_Lo.c: Regenerated.
15202         * tests/unictype/test-categ_Lu.c: Regenerated.
15203         * tests/unictype/test-categ_M.c: Regenerated.
15204         * tests/unictype/test-categ_Mc.c: Regenerated.
15205         * tests/unictype/test-categ_Me.c: Regenerated.
15206         * tests/unictype/test-categ_Mn.c: Regenerated.
15207         * tests/unictype/test-categ_N.c: Regenerated.
15208         * tests/unictype/test-categ_Nd.c: Regenerated.
15209         * tests/unictype/test-categ_Nl.c: Regenerated.
15210         * tests/unictype/test-categ_No.c: Regenerated.
15211         * tests/unictype/test-categ_P.c: Regenerated.
15212         * tests/unictype/test-categ_Pd.c: Regenerated.
15213         * tests/unictype/test-categ_Pe.c: Regenerated.
15214         * tests/unictype/test-categ_Pf.c: Regenerated.
15215         * tests/unictype/test-categ_Pi.c: Regenerated.
15216         * tests/unictype/test-categ_Po.c: Regenerated.
15217         * tests/unictype/test-categ_Ps.c: Regenerated.
15218         * tests/unictype/test-categ_S.c: Regenerated.
15219         * tests/unictype/test-categ_Sk.c: Regenerated.
15220         * tests/unictype/test-categ_Sm.c: Regenerated.
15221         * tests/unictype/test-categ_So.c: Regenerated.
15222         * tests/unictype/test-ctype_alnum.c: Regenerated.
15223         * tests/unictype/test-ctype_alpha.c: Regenerated.
15224         * tests/unictype/test-ctype_graph.c: Regenerated.
15225         * tests/unictype/test-ctype_lower.c: Regenerated.
15226         * tests/unictype/test-ctype_print.c: Regenerated.
15227         * tests/unictype/test-ctype_punct.c: Regenerated.
15228         * tests/unictype/test-ctype_upper.c: Regenerated.
15229         * tests/unictype/test-decdigit.h: Regenerated.
15230         * tests/unictype/test-digit.h: Regenerated.
15231         * tests/unictype/test-numeric.h: Regenerated.
15232         * tests/unictype/test-pr_alphabetic.c: Regenerated.
15233         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
15234         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
15235         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
15236         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
15237         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
15238         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
15239         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
15240         * tests/unictype/test-pr_combining.c: Regenerated.
15241         * tests/unictype/test-pr_dash.c: Regenerated.
15242         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
15243         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
15244         * tests/unictype/test-pr_deprecated.c: Regenerated.
15245         * tests/unictype/test-pr_diacritic.c: Regenerated.
15246         * tests/unictype/test-pr_extender.c: Regenerated.
15247         * tests/unictype/test-pr_format_control.c: Regenerated.
15248         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
15249         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
15250         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
15251         * tests/unictype/test-pr_id_continue.c: Regenerated.
15252         * tests/unictype/test-pr_id_start.c: Regenerated.
15253         * tests/unictype/test-pr_ideographic.c: Regenerated.
15254         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
15255         * tests/unictype/test-pr_lowercase.c: Regenerated.
15256         * tests/unictype/test-pr_math.c: Regenerated.
15257         * tests/unictype/test-pr_numeric.c: Regenerated.
15258         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
15259         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
15260         Regenerated.
15261         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
15262         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
15263         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
15264         * tests/unictype/test-pr_other_math.c: Regenerated.
15265         * tests/unictype/test-pr_punctuation.c: Regenerated.
15266         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
15267         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
15268         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
15269         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
15270         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
15271         * tests/unictype/test-pr_uppercase.c: Regenerated.
15272         * tests/unictype/test-pr_xid_continue.c: Regenerated.
15273         * tests/unictype/test-pr_xid_start.c: Regenerated.
15274         * tests/unictype/test-pr_zero_width.c: Regenerated.
15275
15276         Update to Unicode 5.1.0.
15277         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
15278         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
15279         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
15280         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
15281         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
15282         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
15283         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
15284         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
15285         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
15286         (nonspacing_table_ind): Update.
15287         * tests/uniwidth/test-uc_width2.sh: Update expected result.
15288
15289         Update to Unicode 5.1.0.
15290         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
15291         code transform.
15292         * lib/uniname/uniname.c (unicode_character_name,
15293         unicode_name_character): Add the range 0x1Fxxx to the code transform.
15294         * lib/uniname/uninames.h: Regenerated.
15295         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
15296
15297 2009-02-07  Bruno Haible  <bruno@clisp.org>
15298
15299         Merge gen-ctype and gen-lbrk into a single program.
15300         * lib/gen-uni-tables.c: New file, incorporating
15301         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
15302         Add directory prefixes to the names of the generated files.
15303         * lib/unictype/gen-ctype.c: Remove file.
15304         * lib/unilbrk/gen-lbrk.c: Remove file.
15305         * modules/gen-uni-tables: New file.
15306         * modules/unictype/gen-ctype: Remove file.
15307         * modules/unilbrk/gen-lbrk: Remove file.
15308
15309 2009-02-07  Bruno Haible  <bruno@clisp.org>
15310
15311         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
15312
15313         New module 'unistr/u32-strcoll'.
15314         * modules/unistr/u32-strcoll: New file.
15315         * lib/unistr/u32-strcoll.c: New file.
15316
15317         New module 'unistr/u16-strcoll'.
15318         * modules/unistr/u16-strcoll: New file.
15319         * lib/unistr/u16-strcoll.c: New file.
15320
15321         New module 'unistr/u8-strcoll'.
15322         * modules/unistr/u8-strcoll: New file.
15323         * lib/unistr/u8-strcoll.c: New file.
15324         * lib/unistr/u-strcoll.h: New file.
15325
15326 2009-02-07  Bruno Haible  <bruno@clisp.org>
15327
15328         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
15329         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15330         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
15331         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
15332         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
15333         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
15334
15335 2009-02-07  Bruno Haible  <bruno@clisp.org>
15336
15337         Make 64-bit clean.
15338         * lib/unictype/gen-ctype.c (output_predicate, output_category,
15339         output_combclass, output_bidi_category, output_decimal_digit,
15340         output_digit, output_numeric, output_mirror, output_scripts,
15341         output_ident_category): Use proper width specifier in format strings.
15342
15343 2009-02-07  Bruno Haible  <bruno@clisp.org>
15344
15345         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
15346         failure behaviour.
15347
15348 2009-02-07  Jim Meyering  <meyering@redhat.com>
15349
15350         regex: avoid compilation failure with upcoming gcc-4.4
15351         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
15352         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
15353         "... error: integer overflow in preprocessor expression".
15354
15355 2009-02-05  Ben Pfaff  <blp@gnu.org>
15356
15357         Fix link errors on Windows when close module is used.
15358         * modules/close: Add $(LIB_CLOSE) to Link section.
15359         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
15360         $(LIB_CLOSE) on Windows.
15361
15362 2009-02-05  Jim Meyering  <meyering@redhat.com>
15363
15364         still avoid unused-parameter warnings, but do it cleanly
15365         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
15366         (get_fs_usage): Cast to void instead.
15367         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
15368         (dev_from_mount_options, read_file_system_list): Cast to void.
15369         Prompted by Bruno Haible.
15370
15371 2009-02-04  Jim Meyering  <meyering@redhat.com>
15372
15373         fsusage.c: correct copyright year
15374         * lib/fsusage.c: Reflect year in which the change is pushed into
15375
15376         avoid misc. warnings
15377         * lib/fsusage.c (UNUSED_PARAM): Define.
15378         (get_fs_usage): Mark parameter "disk" as unused.
15379         * lib/getugroups.c (getgrent): Use "void" in prototype.
15380         * lib/mountlist.c: Mark unused parameters.
15381         (read_file_system_list): Declare a local with "const".
15382         * lib/nanosleep.c (getnow): Declare static.
15383         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
15384
15385         dirfd: set errno upon failure
15386         * lib/dirfd.c: Include <errno.h>.
15387         Set errno to ENOTSUP when returning -1.
15388         * modules/dirfd (Depends-on): Add errno.
15389         Suggested by John Kodis <kodis@comcast.net>.
15390
15391 2009-02-01  Bruno Haible  <bruno@clisp.org>
15392
15393         Don't assume sizeof (long) >= sizeof (void *).
15394         * lib/memcmp.c: Include stdint.h.
15395         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
15396         srcp2 to 'const byte *'.
15397         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
15398         types to uintptr_t.
15399         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
15400         * modules/memcmp (Depends-on): Add stdint.
15401         Reported by Ozkan Sezer <sezeroz@gmail.com>.
15402
15403 2009-01-30  Eric Blake  <ebb9@byu.net>
15404
15405         fix more require-before-expand issues
15406         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
15407         expand, AC_PROG_AWK.
15408         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
15409
15410 2009-01-28  Eric Blake  <ebb9@byu.net>
15411
15412         version-etc: use consistent URL formatting
15413         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
15414         Improve formatting.  Use fputs for string without %.
15415
15416 2009-01-28  Jim Meyering  <meyering@redhat.com>
15417
15418         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
15419         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
15420         "underquoted definition of NAME" from autoconf-2.59.
15421
15422 2009-01-28  Bruno Haible  <bruno@clisp.org>
15423
15424         * doc/gnulib.texi: Add "Obsolete modules" to index.
15425
15426 2009-01-28  Jim Meyering  <meyering@redhat.com>
15427
15428         useless-if-before-free: recognize more variants
15429         * build-aux/useless-if-before-free: Also recognize e.g.,
15430         if (NULL != p) free (p);
15431
15432 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
15433
15434         test-getaddrinfo: skip (don't fail) this test when there's no network
15435         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
15436         on the presumption that it means you lack network access.
15437
15438 2009-01-26  Jim Meyering  <meyering@redhat.com>
15439
15440         fflush: avoid warnings on modern systems
15441         * lib/fflush.c (rpl_fflush): Move declarations of locals,
15442         pos and result, into scopes where they're used.
15443
15444 2009-01-26  Eric Blake  <ebb9@byu.net>
15445
15446         Silence warning reintroduced by recent extensions patch.
15447         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15448         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15449         autoconf.
15450
15451         Backport improved autoconf semantics of AC_DEFUN_ONCE.
15452         * m4/00gnulib.m4: New file.
15453         * gnulib-tool (func_get_filelist): Always use it.
15454         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15455         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15456
15457 2009-01-25  Bruno Haible  <bruno@clisp.org>
15458
15459         Make test-quotearg work on MacOS X and AIX.
15460         * tests/test-quotearg.sh: New file.
15461         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15462         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15463         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15464         include <libintl.h>.
15465         (fake_locale): Remove variable.
15466         (gettext, dgettext, dcgettext): Remove functions.
15467         (main): Instead of setting a fake locale, set a real locale. Call
15468         textdomain and bindtextdomain.
15469         * modules/quotearg-tests (Files): Add the new files.
15470         (Depends-on): Add gettext, setenv, unsetenv.
15471         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15472         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15473         Augment TESTS_ENVIRONMENT.
15474
15475 2009-01-25  Bruno Haible  <bruno@clisp.org>
15476
15477         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15478         fr_FR.ISO8859-1 locale on MacOS X.
15479         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15480         ja_JP.eucJP locale on MacOS X.
15481         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15482         zh_CN.GB18030 locale on MacOS X.
15483
15484 2009-01-25  Bruno Haible  <bruno@clisp.org>
15485
15486         Avoid link errors on MacOS X 10.3.
15487         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15488         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15489
15490 2009-01-25  Bruno Haible  <bruno@clisp.org>
15491
15492         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15493         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15494         * modules/pipe (Files): Remove m4/posix_spawn.m4.
15495         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15496         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15497         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15498         posix_spawnattr_init, posix_spawnattr_setsigmask,
15499         posix_spawnattr_setflags, posix_spawnattr_destroy.
15500
15501         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15502         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15503         * modules/execute (Files): Remove m4/posix_spawn.m4.
15504         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15505         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15506         posix_spawnattr_init, posix_spawnattr_setsigmask,
15507         posix_spawnattr_setflags, posix_spawnattr_destroy.
15508
15509 2009-01-25  Bruno Haible  <bruno@clisp.org>
15510
15511         * lib/glthread/threadlib.c: Include <stdlib.h>.
15512
15513 2009-01-25  Bruno Haible  <bruno@clisp.org>
15514
15515         * lib/glthread/threadlib.c (dummy): New declaration.
15516
15517 2009-01-25  Bruno Haible  <bruno@clisp.org>
15518
15519         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15520         multibyte characters also for the GB18030 encoding. Don't crash when
15521         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15522
15523 2009-01-25  Bruno Haible  <bruno@clisp.org>
15524
15525         Avoid redefining 'struct random_data' on OSF/1 5.1.
15526         * lib/stdlib.in.h: Include <random.h> if it exists.
15527         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15528         HAVE_RANDOM_H. Include <random.h> when testing whether
15529         'struct random_data' exists.
15530         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15531
15532 2009-01-25  Bruno Haible  <bruno@clisp.org>
15533
15534         Don't install charset.alias on MacOS X >= 10.3.
15535         * lib/localcharset.c (DARWIN7): New macro.
15536         (get_charset_aliases): Hardcode the result for Darwin7.
15537         * modules/localcharset (install-exec-local): Don't install
15538         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15539
15540 2009-01-25  Bruno Haible  <bruno@clisp.org>
15541
15542         Don't install charset.alias on mingw and Cygwin.
15543         * modules/localcharset (install-exec-local): Don't install
15544         charset.alias on mingw and Cygwin, if the file does not yet exist.
15545         The result for these platforms is hardcoded in localcharset.c.
15546
15547 2009-01-25  Bruno Haible  <bruno@clisp.org>
15548
15549         Make it possible again to use AC_GNU_SOURCE together with gnulib.
15550         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15551         before requiring AC_USE_SYSTEM_EXTENSIONS.
15552
15553 2009-01-25  Jim Meyering  <meyering@redhat.com>
15554
15555         c-strtod: avoid warnings
15556         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15557         "assignment discards qualifiers from pointer target type" warnings.
15558
15559 2009-01-24  Bruno Haible  <bruno@clisp.org>
15560
15561         Add support for non-UTF-8 locales on MacOS X.
15562         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15563         canonical encodings. For Darwin 7 and newer, don't map traditional
15564         encodings to UTF-8.
15565         Reported by Vincent Lefevre <vincent@vinc17.org>
15566         at <http://savannah.gnu.org/bugs/?25235>.
15567
15568 2009-01-24  Bruno Haible  <bruno@clisp.org>
15569
15570         * doc/gnulib.texi (Obsolete modules): New section.
15571         Reported by Mike Frysinger <vapier@gentoo.org>.
15572
15573 2009-01-24  Bruno Haible  <bruno@clisp.org>
15574
15575         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15576         (%.dvi): New rule.
15577
15578 2009-01-24  Bruno Haible  <bruno@clisp.org>
15579
15580         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15581         Reported by Eric Blake.
15582
15583 2009-01-24  Bruno Haible  <bruno@clisp.org>
15584
15585         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15586         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15587         Reported by Gary V. Vaughan <gary@gnu.org>.
15588
15589 2009-01-24  Bruno Haible  <bruno@clisp.org>
15590
15591         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15592
15593 2009-01-23  Bruno Haible  <bruno@clisp.org>
15594
15595         Make c-strtod, c-strtold usable in libraries.
15596         * lib/c-strtod.c: Include string.h instead of xalloc.h.
15597         (C_STRTOD): Call strdup instead of xstrdup.
15598         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15599         * modules/c-strtold (Depends-on): Likewise.
15600         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15601         * NEWS: Mention the change.
15602         Reported by Michael Gold <mgold@ncf.ca>.
15603
15604 2009-01-23  Jim Meyering  <meyering@redhat.com>
15605
15606         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15607         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15608         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15609
15610 2009-01-23  Simon Josefsson  <simon@josefsson.org>
15611
15612         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15613         GNU CoreUtils.
15614         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15615         * modules/version-etc (Description): Update.
15616
15617 2009-01-22  Bruno Haible  <bruno@clisp.org>
15618
15619         Cache the C locale object.
15620         * lib/c-strtod.c (c_locale_cache): New variable.
15621         (c_locale): New function.
15622         (C_STRTOD): Use it, and don't call freelocale.
15623         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15624         Suggested by Paolo Bonzini.
15625
15626 2009-01-21  Bruno Haible  <bruno@clisp.org>
15627
15628         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15629         conditions other than overflow.
15630
15631 2009-01-21  Bruno Haible  <bruno@clisp.org>
15632
15633         * lib/c-strtod.c: Include errno.h.
15634         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15635         value from STRTOD_L and STRTOD.
15636
15637 2009-01-21  Bruno Haible  <bruno@clisp.org>
15638         and Jim Meyering  <meyering@redhat.com>
15639
15640         nanosleep: skip configure test (fail it) for apple universal builds
15641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15642         universal builds, assume that nanosleep does not work.
15643         * modules/nanosleep (Depends-on): Add multiarch.
15644
15645         mktime: skip configure test (fail it) for apple universal builds
15646         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15647         universal builds, assume that mktime does not work.
15648         * modules/mktime (Depends-on): Add multiarch.
15649
15650 2009-01-21  Eric Blake  <ebb9@byu.net>
15651
15652         multiarch: avoid expand-before-require warning
15653         * modules/multiarch (configure.ac): Require, rather than expand,
15654         gl_MULTIARCH.
15655         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15656         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15657         enforce that all clients require it.  Partial reversion of
15658         2008-12-29 patch.
15659
15660         error: avoid expand-before-require warning
15661         * modules/errno (configure.ac): Require, rather than expand,
15662         gl_HEADER_ERRNO_H.
15663         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15664         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15665         enforce that all clients require it.
15666
15667         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15668         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15669         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15670         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15671
15672 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
15673
15674         Revert:
15675         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15676
15677         regex: do not depend on obsolete modules.
15678         * modules/regex: Remove memcmp and memmove.
15679
15680 2009-01-20  Bruno Haible  <bruno@clisp.org>
15681
15682         Make the 'link' module link on Windows NT 4.
15683         * lib/link.c (_WIN32_WINNT): Don't define.
15684         (CreateHardLinkFuncType): New type.
15685         (CreateHardLinkFunc, initialized): New variables.
15686         (initialize): New function.
15687         (link): Invoke CreateHardLink indirectly through the function pointer.
15688
15689 2009-01-20  Bruno Haible  <bruno@clisp.org>
15690
15691         Fix compilation failure on mingw.
15692         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15693
15694 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
15695
15696         * doc/c-strtod.texi: Mention a couple of restrictions.
15697
15698 2009-01-20  Jim Meyering  <meyering@redhat.com>
15699
15700         gettimeofday: move more declarations out of functions
15701         * lib/gettimeofday.c: Move extern declarations of tzset and
15702         gmtime out of containing functions.  Prompted by Bruno Haible.
15703
15704 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
15705
15706         regex: do not depend on obsolete modules.
15707         * modules/regex: Remove memcmp and memmove.
15708
15709 2009-01-19  Bruno Haible  <bruno@clisp.org>
15710
15711         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15712         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15713         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15714         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15715         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15716
15717 2009-01-19  Bruno Haible  <bruno@clisp.org>
15718
15719         * tests/test-link.c: Include <errno.h>.
15720         (main): Exit with code 77 when a hard link cannot be created due to
15721         the file system.
15722         * tests/test-link.sh: Skip test when a hard link cannot be created due
15723         to the file system.
15724         Suggested by Eric Blake.
15725
15726 2009-01-19  Martin Lambers  <marlam@marlam.de>
15727
15728         * modules/link-tests: New file.
15729         * tests/test-link.sh: New file.
15730         * tests/test-link.c: New file.
15731
15732 2009-01-19  Eric Blake  <ebb9@byu.net>
15733
15734         doc: mention another function added in cygwin 1.7.0
15735         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15736         Another new function in cygwin 1.7.
15737
15738 2009-01-19  Bruno Haible  <bruno@clisp.org>
15739
15740         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15741         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15742         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15743         gl_BIGENDIAN, not AC_C_BIGENDIAN.
15744         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15745         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15746         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15747         * m4/md4.m4 (gl_MD4): Likewise.
15748         * m4/md5.m4 (gl_MD5): Likewise.
15749         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15750         * m4/sha1.m4 (gl_SHA1): Likewise.
15751         * m4/sha256.m4 (gl_SHA256): Likewise.
15752         * m4/sha512.m4 (gl_SHA512): Likewise.
15753
15754 2009-01-19  Bruno Haible  <bruno@clisp.org>
15755
15756         * modules/uniname/uniname-tests (Depends-on): Add progname.
15757         * tests/uniname/test-uninames.c: Include progname.h.
15758         (main): Call set_program_name.
15759
15760         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15761         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15762         (main): Call set_program_name.
15763
15764         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15765         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15766         (main): Call set_program_name.
15767
15768         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15769         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15770         (main): Call set_program_name.
15771
15772         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15773         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15774         (main): Call set_program_name.
15775
15776         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15777         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15778         (main): Call set_program_name.
15779
15780         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15781         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15782         (main): Call set_program_name.
15783
15784         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15785         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15786         (main): Call set_program_name.
15787
15788         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15789         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15790         (main): Call set_program_name.
15791
15792 2009-01-19  Eric Blake  <ebb9@byu.net>
15793
15794         test-unistd: test previous patch
15795         * tests/test-unistd.c: Test *_FILENO macros.
15796
15797         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15798         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15799         Guarantee a definition.
15800         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15801         * modules/unistd-safer (Depends-on): Add dependency on unistd.
15802         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15803         * lib/dup-safer.c (STDERR_FILENO): Likewise.
15804         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15805         Likewise.
15806         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15807         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15808         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15809         Likewise.
15810         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15811         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15812         (STDERR_FILENO): Likewise.
15813         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15814         (STDERR_FILENO): Likewise.
15815         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15816         (STDERR_FILENO): Likewise.
15817         Reported by Elbert Pol.
15818
15819 2009-01-19  Eric Blake  <ebb9@byu.net>
15820
15821         doc: mention more functions added in cygwin 1.7.0
15822         * doc/posix-functions/abort.texi (abort): Update wording related
15823         to cygwin.
15824         * doc/posix-functions/daylight.texi (daylight): Likewise.
15825         * doc/posix-functions/optarg.texi (optarg): Likewise.
15826         * doc/posix-functions/optarg.texi (opterr): Likewise.
15827         * doc/posix-functions/optarg.texi (optind): Likewise.
15828         * doc/posix-functions/optarg.texi (optopt): Likewise.
15829         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15830         worked in 1.5.x, and was withdrawn in 1.7.
15831         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15832         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15833         cygwin versions.
15834         * doc/posix-functions/perror.texi (perror): Likewise.
15835         * doc/posix-functions/printf.texi (printf): Likewise.
15836         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15837         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15838         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15839         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15840         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15841         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15842         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15843         Likewise.
15844         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15845         Likewise.
15846         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15847         this function.
15848         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15849         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15850         Likewise.
15851         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15852         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15853         * doc/posix-functions/confstr.texi (confstr): Likewise.
15854         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15855         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15856         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15857         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15858         * doc/posix-functions/fputws.texi (fputws): Likewise.
15859         * doc/posix-functions/fwide.texi (fwide): Likewise.
15860         * doc/posix-functions/getwc.texi (getwc): Likewise.
15861         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15862         * doc/posix-functions/putwc.texi (putwc): Likewise.
15863         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15864         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15865         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15866         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15867         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15868         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15869         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15870         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15871         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15872         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15873         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15874
15875 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15876
15877         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15878         * lib/ioctl.c: Include <sys/ioctl.h>.
15879
15880 2009-01-19  Simon Josefsson  <simon@josefsson.org>
15881
15882         * modules/getdate-tests (Depends-on): Add progname.
15883         * tests/test-getdate.c: Use progname module, to avoid link errors
15884         on non-glibc systems.
15885
15886 2009-01-18  Simon Josefsson  <simon@josefsson.org>
15887
15888         * modules/filenamecat-tests (Depends-on): Add progname.
15889         * modules/fstrcmp-tests (Depends-on): Likewise.
15890
15891         * tests/test-filenamecat.c: Use progname module, to avoid link
15892         errors on non-glibc systems.
15893         * tests/test-fstrcmp.c: Likewise.
15894
15895 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
15896
15897         gettimeofday: avoid warning: nested extern declaration of 'localtime'
15898         * lib/gettimeofday.c: Move extern declaration out of function.
15899
15900 2009-01-18  Bruno Haible  <bruno@clisp.org>
15901
15902         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15903         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15904         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15905
15906 2009-01-18  Bruno Haible  <bruno@clisp.org>
15907
15908         * lib/strftime.c (MEMPCPY): Remove unused macro.
15909         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15910
15911 2009-01-18  Martin Lambers  <marlam@marlam.de>
15912
15913         New module 'link'.
15914         * lib/unistd.in.h (link): New declaration.
15915         * lib/link.c: New file.
15916         * m4/link.m4: New file.
15917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15918         HAVE_LINK.
15919         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15920         * modules/link: New file.
15921         * doc/posix-functions/link.texi: Mention the new module.
15922
15923 2009-01-18  Bruno Haible  <bruno@clisp.org>
15924
15925         * tests/test-avltree_list.c (main): Call set_program_name.
15926         * tests/test-avltree_oset.c (main): Likewise.
15927         * tests/test-obstack-printf.c: Include progname.h.
15928         (main): Call set_program_name.
15929         * tests/test-quotearg.c: Include progname.h.
15930         (main): Call set_program_name.
15931         * tests/test-xmemdup0.c: Include progname.h.
15932         (main): Call set_program_name.
15933
15934 2009-01-18  Bruno Haible  <bruno@clisp.org>
15935
15936         New module 'alphasort'.
15937         * lib/dirent.in.h (alphasort): New declaration.
15938         * lib/alphasort.c: New file, from glibc with modifications.
15939         * m4/alphasort.m4: New file.
15940         * modules/alphasort: New file.
15941         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15942         HAVE_ALPHASORT.
15943         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15944         HAVE_ALPHASORT.
15945         * doc/posix-functions/alphasort.texi: Mention the new module and the
15946         portability problems.
15947
15948 2009-01-18  Bruno Haible  <bruno@clisp.org>
15949
15950         New module 'scandir'.
15951         * lib/dirent.in.h (scandir): New declaration.
15952         * lib/scandir.c: New file, from glibc with modifications.
15953         * m4/scandir.m4: New file.
15954         * modules/scandir: New file.
15955         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15956         HAVE_SCANDIR.
15957         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15958         HAVE_SCANDIR.
15959         * doc/posix-functions/scandir.texi: Mention the new module and the
15960         portability problems.
15961
15962 2009-01-17  Bruno Haible  <bruno@clisp.org>
15963
15964         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15965         Update documentation.
15966         (func_remove_suffix): Escape all dots in the suffix. Update
15967         documentation.
15968         (func_filter_filelist): Update documentation.
15969         Reported by Ralf Wildenhues.
15970
15971 2009-01-17  Bruno Haible  <bruno@clisp.org>
15972
15973         * modules/dprintf-posix-tests: New file.
15974         * tests/test-dprintf-posix.sh: New file.
15975         * tests/test-dprintf-posix.c: New file.
15976
15977         New modules 'dprintf', 'dprintf-posix'.
15978         * lib/stdio.in.h (dprintf): New declaration.
15979         * lib/dprintf.c: New file.
15980         * m4/dprintf.m4: New file.
15981         * m4/dprintf-posix.m4: New file.
15982         * modules/dprintf: New file.
15983         * modules/dprintf-posix: New file.
15984         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15985         HAVE_DPRINTF, REPLACE_DPRINTF.
15986         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15987         HAVE_DPRINTF, REPLACE_DPRINTF.
15988         * doc/posix-functions/dprintf.texi: Mention the new modules.
15989
15990 2009-01-17  Bruno Haible  <bruno@clisp.org>
15991
15992         * modules/vdprintf-posix-tests: New file.
15993         * tests/test-vdprintf-posix.sh: New file.
15994         * tests/test-vdprintf-posix.c: New file.
15995
15996         New modules 'vdprintf', 'vdprintf-posix'.
15997         * lib/stdio.in.h (vdprintf): New declaration.
15998         * lib/vdprintf.c: New file.
15999         * m4/vdprintf.m4: New file.
16000         * m4/vdprintf-posix.m4: New file.
16001         * modules/vdprintf: New file.
16002         * modules/vdprintf-posix: New file.
16003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
16004         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16005         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
16006         HAVE_VDPRINTF, REPLACE_VDPRINTF.
16007         * doc/posix-functions/vdprintf.texi: Mention the new modules.
16008
16009 2009-01-17  Bruno Haible  <bruno@clisp.org>
16010
16011         Fix replacement of fopen on mingw.
16012         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
16013         mingw.
16014
16015 2009-01-17  Bruno Haible  <bruno@clisp.org>
16016
16017         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
16018         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
16019
16020 2009-01-17  Bruno Haible  <bruno@clisp.org>
16021
16022         Avoid test-fflush2.sh failure on mingw.
16023         * tests/test-fflush2.c: Include binary-io.h.
16024         (main): Put standard input into binary mode.
16025         * modules/fflush-tests (Depends-on): Add binary-io.
16026
16027 2009-01-17  Bruno Haible  <bruno@clisp.org>
16028
16029         * lib/wchar.in.h: In another particular situation, include only the
16030         system's <wchar.h> file.
16031         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
16032         Reported by Albert Chin-A-Young <china@thewrittenword.com>
16033         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
16034
16035 2009-01-17  Bruno Haible  <bruno@clisp.org>
16036
16037         Support for stripping executables in --enable-relocatable.
16038         * build-aux/install-reloc: Expect one more argument, or an environment
16039         variable RELOC_STRIP_PROG. If set, strip the destination program and
16040         its wrapper.
16041         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
16042         RELOC_STRIP_PROG.
16043         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
16044         to set RELOCATABLE_STRIP.
16045         * NEWS: Mention the new Makefile requirement.
16046
16047 2009-01-17  Bruno Haible  <bruno@clisp.org>
16048
16049         * build-aux/install-reloc: Remove debugging information left over by
16050         C compiler on MacOS X.
16051
16052 2009-01-17  Bruno Haible  <bruno@clisp.org>
16053
16054         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
16055         * lib/progreloc.c (find_executable): Fix type of pointer passed to
16056         _NSGetExecutablePath.
16057
16058 2009-01-16  Jim Meyering  <meyering@redhat.com>
16059
16060         strerror: avoid warnings about discarding "const"
16061         * lib/strerror.c (rpl_strerror): Instead of returning a const
16062         string from each and every "case", use a variable, and add a single
16063         cast after the switch.
16064
16065 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
16066
16067         * lib/arpa_inet.in.h: Add extern "C" block for C++.
16068
16069 2009-01-16  Bruno Haible  <bruno@clisp.org>
16070
16071         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
16072         array initializer syntax that also works in C++ mode.
16073         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16074
16075 2009-01-16  Jim Meyering  <meyering@redhat.com>
16076
16077         poll: suppress a warning
16078         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
16079         to ignore "...unsigned expression < 0 is always false" warnings.
16080
16081 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
16082
16083         poll: remove declarations of unused variables
16084         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
16085         sockbuf and optlen.
16086
16087 2009-01-15  Bruno Haible  <bruno@clisp.org>
16088
16089         Make fflush-after-ungetc POSIX compliant on BSD systems.
16090         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
16091         (clear_ungetc_buffer): Implement also for other systems.
16092         (rpl_fflush): On glibc systems, invoke
16093         clear_ungetc_buffer_preserving_position. Otherwise, invoke
16094         clear_ungetc_buffer after fetching the stream's position, not before.
16095
16096 2009-01-15  Bruno Haible  <bruno@clisp.org>
16097
16098         Make fflush-after-ungetc POSIX compliant on glibc systems.
16099         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
16100         after ungetc.
16101         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
16102         (rpl_fflush): On glibc systems, simply call the system's fflush
16103         function after clearing the ungetc buffer.
16104         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
16105         Instead, lseek only to the end of file, then use the system's fseeko
16106         for the rest. On glibc systems, reset the EOF indicator bit.
16107
16108 2009-01-15  Jim Meyering  <meyering@redhat.com>
16109
16110         openmp.m4: revert quote-adding change, for portability to older autoconf
16111         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
16112         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
16113         Simon Josefsson noticed the problem when using autoconf-2.61.
16114
16115 2009-01-15  Bruno Haible  <bruno@clisp.org>
16116
16117         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
16118         * tests/test-fflush2.c (ASSERT): Always fail.
16119         (main): Add two tests for fflush() after ungetc(), taking into account
16120         the Austin Group's clarification.
16121         Suggested by Eric Blake.
16122
16123 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
16124
16125         mktime.m4: remove K&R-style function prototypes
16126         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
16127         for the Sun C++ compiler.
16128
16129 2009-01-14  Bruno Haible  <bruno@clisp.org>
16130
16131         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
16132         while including <wchar.h>.
16133         * lib/wchar.in.h: In two particular situations on HP-UX, include only
16134         the system's <wchar.h> file.
16135         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16136
16137 2009-01-14  Bruno Haible  <bruno@clisp.org>
16138
16139         * m4/csharp.m4: Don't mention gettext on the serial number line.
16140         * m4/csharpexec.m4: Likewise.
16141         * m4/eaccess.m4: Likewise.
16142         * m4/javaexec.m4: Likewise.
16143         * m4/sig_atomic_t.m4: Likewise.
16144         * m4/tmpdir.m4: Likewise.
16145         * m4/intldir.m4: Bump gettext version.
16146         * m4/lib-ld.m4: Likewise.
16147
16148 2009-01-14  Bruno Haible  <bruno@clisp.org>
16149
16150         * lib/progname.c (set_program_name): Add more comments.
16151         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16152
16153 2009-01-14  Simon Josefsson  <simon@josefsson.org>
16154
16155         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
16156         were sys/stat.h does not define it.
16157
16158 2009-01-14  Jim Meyering  <meyering@redhat.com>
16159
16160         many *.m4 files: improve m4 quoting
16161         99% of this change was performed by running the following commands:
16162         git ls-files | grep '\.m4$' | xargs perl -pi \
16163           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
16164           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16165           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
16166           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
16167         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
16168         The remainder were to add Copyright dates, increment serial numbers,
16169         undo some changes in comments, exclude m4/intl.m4, and add quotes
16170         around the "1" in ",1" where the unusual spacing prohibited the
16171         above regexps from doing the job.  For more details, see
16172         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
16173         * m4/acl.m4: Modified.
16174         * m4/afs.m4: Likewise.
16175         * m4/alloca.m4: Likewise.
16176         * m4/argp.m4: Likewise.
16177         * m4/argz.m4: Likewise.
16178         * m4/atexit.m4: Likewise.
16179         * m4/bison-i18n.m4: Likewise.
16180         * m4/bison.m4: Likewise.
16181         * m4/byteswap.m4: Likewise.
16182         * m4/c-stack.m4: Likewise.
16183         * m4/c-strtod.m4: Likewise.
16184         * m4/calloc.m4: Likewise.
16185         * m4/canonicalize-lgpl.m4: Likewise.
16186         * m4/chown.m4: Likewise.
16187         * m4/clock_time.m4: Likewise.
16188         * m4/codeset.m4: Likewise.
16189         * m4/copy-file.m4: Likewise.
16190         * m4/csharp.m4: Likewise.
16191         * m4/csharpcomp.m4: Likewise.
16192         * m4/csharpexec.m4: Likewise.
16193         * m4/d-ino.m4: Likewise.
16194         * m4/d-type.m4: Likewise.
16195         * m4/dirfd.m4: Likewise.
16196         * m4/double-slash-root.m4: Likewise.
16197         * m4/eaccess.m4: Likewise.
16198         * m4/eealloc.m4: Likewise.
16199         * m4/environ.m4: Likewise.
16200         * m4/errno_h.m4: Likewise.
16201         * m4/euidaccess.m4: Likewise.
16202         * m4/execute.m4: Likewise.
16203         * m4/fatal-signal.m4: Likewise.
16204         * m4/fchdir.m4: Likewise.
16205         * m4/fcntl_h.m4: Likewise.
16206         * m4/fileblocks.m4: Likewise.
16207         * m4/filenamecat.m4: Likewise.
16208         * m4/findprog.m4: Likewise.
16209         * m4/flexmember.m4: Likewise.
16210         * m4/fnmatch.m4: Likewise.
16211         * m4/fopen.m4: Likewise.
16212         * m4/fpending.m4: Likewise.
16213         * m4/fprintf-posix.m4: Likewise.
16214         * m4/free.m4: Likewise.
16215         * m4/frexp.m4: Likewise.
16216         * m4/frexpl.m4: Likewise.
16217         * m4/fsusage.m4: Likewise.
16218         * m4/ftruncate.m4: Likewise.
16219         * m4/gc-camellia.m4: Likewise.
16220         * m4/gc-random.m4: Likewise.
16221         * m4/gc.m4: Likewise.
16222         * m4/getaddrinfo.m4: Likewise.
16223         * m4/getcwd-abort-bug.m4: Likewise.
16224         * m4/getcwd-path-max.m4: Likewise.
16225         * m4/getdate.m4: Likewise.
16226         * m4/getdomainname.m4: Likewise.
16227         * m4/getgroups.m4: Likewise.
16228         * m4/gethostname.m4: Likewise.
16229         * m4/gethrxtime.m4: Likewise.
16230         * m4/getline.m4: Likewise.
16231         * m4/getloadavg.m4: Likewise.
16232         * m4/getndelim2.m4: Likewise.
16233         * m4/getpass.m4: Likewise.
16234         * m4/gettext.m4: Likewise.
16235         * m4/gettime.m4: Likewise.
16236         * m4/gettimeofday.m4: Likewise.
16237         * m4/gnulib-common.m4: Likewise.
16238         * m4/group-member.m4: Likewise.
16239         * m4/host-os.m4: Likewise.
16240         * m4/iconv.m4: Likewise.
16241         * m4/iconv_open.m4: Likewise.
16242         * m4/inet_ntop.m4: Likewise.
16243         * m4/inet_pton.m4: Likewise.
16244         * m4/inline.m4: Likewise.
16245         * m4/intldir.m4: Likewise.
16246         * m4/intlmacosx.m4: Likewise.
16247         * m4/intmax.m4: Likewise.
16248         * m4/intmax_t.m4: Likewise.
16249         * m4/inttypes.m4: Likewise.
16250         * m4/inttypes_h.m4: Likewise.
16251         * m4/inttypes-pri.m4: Likewise.
16252         * m4/isapipe.m4: Likewise.
16253         * m4/isnand.m4: Likewise.
16254         * m4/isnanf.m4: Likewise.
16255         * m4/isnanl.m4: Likewise.
16256         * m4/javacomp.m4: Likewise.
16257         * m4/javaexec.m4: Likewise.
16258         * m4/jm-winsz1.m4: Likewise.
16259         * m4/jm-winsz2.m4: Likewise.
16260         * m4/lchown.m4: Likewise.
16261         * m4/lcmessage.m4: Likewise.
16262         * m4/ldexpl.m4: Likewise.
16263         * m4/lib-ld.m4: Likewise.
16264         * m4/lib-link.m4: Likewise.
16265         * m4/libsigsegv.m4: Likewise.
16266         * m4/link-follow.m4: Likewise.
16267         * m4/localcharset.m4: Likewise.
16268         * m4/locale-fr.m4: Likewise.
16269         * m4/locale-ja.m4: Likewise.
16270         * m4/locale-tr.m4: Likewise.
16271         * m4/locale-zh.m4: Likewise.
16272         * m4/lock.m4: Likewise.
16273         * m4/longlong.m4: Likewise.
16274         * m4/ls-mntd-fs.m4: Likewise.
16275         * m4/lstat.m4: Likewise.
16276         * m4/malloc.m4: Likewise.
16277         * m4/mathl.m4: Likewise.
16278         * m4/mbrtowc.m4: Likewise.
16279         * m4/mbstate_t.m4: Likewise.
16280         * m4/mbswidth.m4: Likewise.
16281         * m4/memchr.m4: Likewise.
16282         * m4/memcmp.m4: Likewise.
16283         * m4/memcpy.m4: Likewise.
16284         * m4/memmem.m4: Likewise.
16285         * m4/memmove.m4: Likewise.
16286         * m4/mempcpy.m4: Likewise.
16287         * m4/memrchr.m4: Likewise.
16288         * m4/memset.m4: Likewise.
16289         * m4/minmax.m4: Likewise.
16290         * m4/mkdir-slash.m4: Likewise.
16291         * m4/mkdtemp.m4: Likewise.
16292         * m4/mktime.m4: Likewise.
16293         * m4/mmap-anon.m4: Likewise.
16294         * m4/mountlist.m4: Likewise.
16295         * m4/nanosleep.m4: Likewise.
16296         * m4/nls.m4: Likewise.
16297         * m4/nocrash.m4: Likewise.
16298         * m4/open.m4: Likewise.
16299         * m4/openat.m4: Likewise.
16300         * m4/openmp.m4: Likewise.
16301         * m4/pathmax.m4: Likewise.
16302         * m4/perl.m4: Likewise.
16303         * m4/physmem.m4: Likewise.
16304         * m4/pipe.m4: Likewise.
16305         * m4/po.m4: Likewise.
16306         * m4/poll.m4: Likewise.
16307         * m4/posixtm.m4: Likewise.
16308         * m4/posixver.m4: Likewise.
16309         * m4/printf-frexp.m4: Likewise.
16310         * m4/printf-frexpl.m4: Likewise.
16311         * m4/printf-posix.m4: Likewise.
16312         * m4/printf-posix-rpl.m4: Likewise.
16313         * m4/printf.m4: Likewise.
16314         * m4/progtest.m4: Likewise.
16315         * m4/putenv.m4: Likewise.
16316         * m4/readline.m4: Likewise.
16317         * m4/readlink.m4: Likewise.
16318         * m4/readutmp.m4: Likewise.
16319         * m4/realloc.m4: Likewise.
16320         * m4/regex.m4: Likewise.
16321         * m4/relocatable.m4: Likewise.
16322         * m4/relocatable-lib.m4: Likewise.
16323         * m4/rename-dest-slash.m4: Likewise.
16324         * m4/rename.m4: Likewise.
16325         * m4/rmdir-errno.m4: Likewise.
16326         * m4/rmdir.m4: Likewise.
16327         * m4/roundf.m4: Likewise.
16328         * m4/roundl.m4: Likewise.
16329         * m4/rpmatch.m4: Likewise.
16330         * m4/save-cwd.m4: Likewise.
16331         * m4/selinux-selinux-h.m4: Likewise.
16332         * m4/setenv.m4: Likewise.
16333         * m4/settime.m4: Likewise.
16334         * m4/sig2str.m4: Likewise.
16335         * m4/sig_atomic_t.m4: Likewise.
16336         * m4/signalblocking.m4: Likewise.
16337         * m4/signbit.m4: Likewise.
16338         * m4/sigpipe.m4: Likewise.
16339         * m4/sockets.m4: Likewise.
16340         * m4/sockpfaf.m4: Likewise.
16341         * m4/st_dm_mode.m4: Likewise.
16342         * m4/stat-time.m4: Likewise.
16343         * m4/stdbool.m4: Likewise.
16344         * m4/stdint.m4: Likewise.
16345         * m4/stdint_h.m4: Likewise.
16346         * m4/stpcpy.m4: Likewise.
16347         * m4/stpncpy.m4: Likewise.
16348         * m4/strcase.m4: Likewise.
16349         * m4/strchrnul.m4: Likewise.
16350         * m4/strcspn.m4: Likewise.
16351         * m4/strdup.m4: Likewise.
16352         * m4/strftime.m4: Likewise.
16353         * m4/strndup.m4: Likewise.
16354         * m4/strnlen.m4: Likewise.
16355         * m4/strpbrk.m4: Likewise.
16356         * m4/strptime.m4: Likewise.
16357         * m4/strsep.m4: Likewise.
16358         * m4/strtod.m4: Likewise.
16359         * m4/strtoimax.m4: Likewise.
16360         * m4/strtok_r.m4: Likewise.
16361         * m4/strtol.m4: Likewise.
16362         * m4/strtoll.m4: Likewise.
16363         * m4/strtoul.m4: Likewise.
16364         * m4/strtoull.m4: Likewise.
16365         * m4/strtoumax.m4: Likewise.
16366         * m4/strverscmp.m4: Likewise.
16367         * m4/threadlib.m4: Likewise.
16368         * m4/timegm.m4: Likewise.
16369         * m4/tm_gmtoff.m4: Likewise.
16370         * m4/tmpdir.m4: Likewise.
16371         * m4/tmpfile.m4: Likewise.
16372         * m4/tzset.m4: Likewise.
16373         * m4/uintmax_t.m4: Likewise.
16374         * m4/unlinkdir.m4: Likewise.
16375         * m4/unlocked-io.m4: Likewise.
16376         * m4/uptime.m4: Likewise.
16377         * m4/userspec.m4: Likewise.
16378         * m4/utimbuf.m4: Likewise.
16379         * m4/utime.m4: Likewise.
16380         * m4/utimes-null.m4: Likewise.
16381         * m4/utimes.m4: Likewise.
16382         * m4/vararrays.m4: Likewise.
16383         * m4/vasnprintf.m4: Likewise.
16384         * m4/vfprintf-posix.m4: Likewise.
16385         * m4/vprintf-posix.m4: Likewise.
16386         * m4/wait-process.m4: Likewise.
16387         * m4/wchar_t.m4: Likewise.
16388         * m4/wint_t.m4: Likewise.
16389         * m4/write-any-file.m4: Likewise.
16390         * m4/yield.m4: Likewise.
16391
16392 2009-01-13  Bruno Haible  <bruno@clisp.org>
16393
16394         Avoid test-copy-file.sh failures when ACL support insufficient.
16395         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
16396         TESTS_ENVIRONMENT.
16397         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
16398         Reported by Jim Meyering.
16399
16400 2009-01-13  Bruno Haible  <bruno@clisp.org>
16401
16402         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
16403         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
16404         * modules/unistdio/u8-printf-parse (Files): Likewise.
16405         * modules/unistdio/u32-printf-parse (Files): Likewise.
16406         * modules/unistdio/ulc-printf-parse (Files): Likewise.
16407
16408 2009-01-13  Simon Josefsson  <simon@josefsson.org>
16409
16410         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
16411         and m4/inttypes_h.m4 too.
16412
16413 2009-01-12  Eric Blake  <ebb9@byu.net>
16414
16415         tests: IRIX 6.2 cc can't compile -0.0 into .data
16416         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
16417         rather than at compile-time.
16418         * tests/test-floorl.c (minus_zero): Likewise.
16419         * tests/test-frexpl.c (minus_zero): Likewise.
16420         * tests/test-isnan.c (minus_zerol): Likewise.
16421         * tests/test-isnanl.h (minus_zero): Likewise.
16422         * tests/test-ldexpl.c (minus_zero): Likewise.
16423         * tests/test-roundl.c (minus_zero): Likewise.
16424         * tests/test-signbit.c (minus_zerol): Likewise.
16425         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16426         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16427         * tests/test-truncl.c (minus_zero): Likewise.
16428         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16429         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16430         Reported by Tom G. Christensen and Nelson H. F. Beebe.
16431
16432 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16433
16434         regex: fix glibc bug 9697
16435         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
16436         handling.
16437
16438 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16439
16440         regex: fix glibc bug 697
16441         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
16442         being NULL also if there are no backreferences.
16443
16444 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
16445
16446         regex: merge glibc changes
16447         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16448         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16449         re_string_skip_chars, re_string_reconstruct): Likewise.
16450         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16451
16452 2009-01-07  Jim Meyering  <meyering@redhat.com>
16453
16454         poll: filter through cppi
16455         * lib/poll.c: Indent cpp directives to reflect nesting.
16456
16457 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
16458
16459         poll: don't return uninitialized
16460         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16461
16462 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
16463
16464         avoid compile failure on AIX 6.1
16465         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16466         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16467
16468 2009-01-04  Jim Meyering  <meyering@redhat.com>
16469
16470         remove duplicate inclusion of <stdio.h>
16471         * tests/test-fprintf-posix.c: Likewise.
16472         * tests/test-printf-posix.c: Likewise.
16473         * tests/test-snprintf-posix.c: Likewise.
16474         * tests/test-sprintf-posix.c: Likewise.
16475         * tests/test-vasprintf-posix.c: Likewise.
16476         * tests/test-vfprintf-posix.c: Likewise.
16477         * tests/test-vprintf-posix.c: Likewise.
16478         * tests/test-vsnprintf-posix.c: Likewise.
16479         * tests/test-vsprintf-posix.c: Likewise.
16480
16481 2009-01-03  Jim Meyering  <meyering@redhat.com>
16482
16483         gnulib-tool: fix sed-based filtering
16484         * gnulib-tool (func_filter_filelist): Remove extra backslash
16485         in sed_fff_filter definition.
16486
16487 2009-01-02  Jim Meyering  <meyering@redhat.com>
16488
16489         strftime: avoid compilation failure on Solaris 2.6
16490         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16491         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16492         Don't #define mbrlen or mbsinit, since now they're guaranteed to
16493         be available.  Reported by Tom G. Christensen.  Details in
16494         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16495
16496 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16497             Bruno Haible  <bruno@clisp.org>
16498
16499         Speed up gnulib-tool by doing more string processing through shell
16500         built-ins.
16501         * gnulib-tool (fast_func_append): New variable.
16502         (func_remove_prefix, func_remove_suffix): New functions.
16503         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16504         (func_filter_filelist): New function.
16505         (func_get_dependencies): Use func_remove_suffix instead of sed.
16506         (func_get_automake_snippet): Use func_filter_filelist instead of a
16507         subshell and sed invocation.
16508
16509 2009-01-01  Bruno Haible  <bruno@clisp.org>
16510
16511         Fix a security bug.
16512         * gnulib-tool (func_import, import, update): Don't allow the characters
16513         '"', '$', '`', '\' in macro arguments that become part of commands that
16514         are evaluated.
16515
16516 2009-01-01  Bruno Haible  <bruno@clisp.org>
16517
16518         * gnulib-tool (func_reset_sigpipe): Add more comments.
16519
16520 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16521
16522         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16523         func_emit_tests_Makefile_am, func_import): Abort loops early if we
16524         already know the answer.
16525
16526 2009-01-01  Jim Meyering  <meyering@redhat.com>
16527
16528         * lib/version-etc.c (version_etc_va): Update copyright year.
16529
16530 2008-12-30  Bruno Haible  <bruno@clisp.org>
16531
16532         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16533         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16534         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16535
16536 2008-12-29  Eric Blake  <ebb9@byu.net>
16537
16538         multiarch: avoid autoconf AC_REQUIRE bug
16539         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16540         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16541         2.63 and older.
16542         Reported by Bruno Haible, and analyzed in
16543         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16544
16545 2008-12-29  Bruno Haible  <bruno@clisp.org>
16546
16547         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16548         files in subdirectories correctly.
16549         Reported by Ralf Wildenhues.
16550
16551 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16552
16553         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16554         rather than 'join FILE -', for Solaris join.
16555
16556 2008-12-29  Bruno Haible  <bruno@clisp.org>
16557
16558         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16559         quoting.
16560         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16561         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16562         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16563         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16564         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16565         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16566         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16567         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16568         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16569         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16570         * m4/nls.m4 (AM_NLS): Likewise.
16571         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16572         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16573         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16574         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16575         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16576         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16577         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16578         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16579         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16580         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16581         * m4/xsize.m4 (gl_XSIZE): Likewise.
16582         Suggested by Jim Meyering.
16583
16584 2008-11-17  Bruce Korb  <bkorb@gnu.org>
16585
16586         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16587         * lib/parse-duration.c: use a switch instead of cascading if's.
16588
16589 2008-12-29  Eric Blake  <ebb9@byu.net>
16590
16591         wchar.h: supply WEOF on Irix 5.3
16592         * lib/wchar.in.h (wint_t): Also supply WEOF.
16593         * lib/wctype.in.h (wint_t): Likewise.
16594         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16595         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16596         Reported by Tom G. Christensen.
16597
16598 2008-12-26  Bruno Haible  <bruno@clisp.org>
16599
16600         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16601         i486, i586, i686.
16602
16603 2008-12-26  Bruno Haible  <bruno@clisp.org>
16604
16605         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16606
16607 2008-12-26  Bruno Haible  <bruno@clisp.org>
16608
16609         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16610         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16611         not __STDC_CONSTANT_MACROS.
16612         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16613
16614 2008-12-25  Bruno Haible  <bruno@clisp.org>
16615
16616         Add support for universal builds to vasnprintf.
16617         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16618         universal builds, guess no.
16619         * modules/vasnprintf-posix (Depends-on): Add multiarch.
16620         * modules/vasprintf-posix (Depends-on): Likewise.
16621         * modules/fprintf-posix (Depends-on): Likewise.
16622         * modules/vfprintf-posix (Depends-on): Likewise.
16623         * modules/snprintf-posix (Depends-on): Likewise.
16624         * modules/vsnprintf-posix (Depends-on): Likewise.
16625         * modules/sprintf-posix (Depends-on): Likewise.
16626         * modules/vsprintf-posix (Depends-on): Likewise.
16627         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16628         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16629         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16630         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16631         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16632         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16633         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16634
16635         Add support for universal builds to <inttypes.h>.
16636         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16637         _SCNu64_PREFIX): In Apple
16638         universal builds, define directly, using _LP64.
16639         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16640         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16641         * modules/inttypes (Depends-on): Add multiarch.
16642         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16643
16644         Add support for universal builds to <stdint.h>.
16645         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16646         universal builds, define directly, using _LP64.
16647         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16648         Apple universal builds, don't test for the size and suffix of ptrdiff_t
16649         and size_t.
16650         * modules/stdint (Depends-on): Add multiarch.
16651         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16652
16653         New module 'multiarch'.
16654         * modules/multiarch: New file.
16655         * m4/multiarch.m4: New file.
16656
16657 2008-12-25  Bruno Haible  <bruno@clisp.org>
16658
16659         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16660
16661 2008-12-25  Bruno Haible  <bruno@clisp.org>
16662
16663         * modules/btowc (License): Relicense under LGPLv2+.
16664         * modules/mbsinit (License): Likewise.
16665         * modules/mbrtowc (License): Likewise.
16666         * modules/wcrtomb (License): Likewise.
16667         * modules/streq (License): Likewise.
16668         Reported by David Lutterkort <lutter@redhat.com>.
16669
16670 2008-12-23  Bruno Haible  <bruno@clisp.org>
16671
16672         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16673
16674 2008-12-23  Bruno Haible  <bruno@clisp.org>
16675
16676         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16678         GETADDRINFO_LIB, not in LIBS.
16679         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16680         * modules/canon-host (Link): Likewise.
16681         * NEWS: Mention the change.
16682         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16683         GETADDRINFO_LIB.
16684
16685 2008-12-22  Bruno Haible  <bruno@clisp.org>
16686
16687         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16688         * doc/posix-functions/iswalpha_l.texi: Likewise.
16689         * doc/posix-functions/iswblank_l.texi: Likewise.
16690         * doc/posix-functions/iswcntrl_l.texi: Likewise.
16691         * doc/posix-functions/iswctype_l.texi: Likewise.
16692         * doc/posix-functions/iswdigit_l.texi: Likewise.
16693         * doc/posix-functions/iswgraph_l.texi: Likewise.
16694         * doc/posix-functions/iswlower_l.texi: Likewise.
16695         * doc/posix-functions/iswprint_l.texi: Likewise.
16696         * doc/posix-functions/iswpunct_l.texi: Likewise.
16697         * doc/posix-functions/iswspace_l.texi: Likewise.
16698         * doc/posix-functions/iswupper_l.texi: Likewise.
16699         * doc/posix-functions/iswxdigit_l.texi: Likewise.
16700         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16701         * doc/posix-functions/open_wmemstream.texi: Likewise.
16702         * doc/posix-functions/swscanf.texi: Likewise.
16703         * doc/posix-functions/towctrans_l.texi: Likewise.
16704         * doc/posix-functions/towlower.texi: Likewise.
16705         * doc/posix-functions/towlower_l.texi: Likewise.
16706         * doc/posix-functions/towupper.texi: Likewise.
16707         * doc/posix-functions/towupper_l.texi: Likewise.
16708         * doc/posix-functions/vfwprintf.texi: Likewise.
16709         * doc/posix-functions/vfwscanf.texi: Likewise.
16710         * doc/posix-functions/vswscanf.texi: Likewise.
16711         * doc/posix-functions/vwprintf.texi: Likewise.
16712         * doc/posix-functions/vwscanf.texi: Likewise.
16713         * doc/posix-functions/wcpcpy.texi: Likewise.
16714         * doc/posix-functions/wcpncpy.texi: Likewise.
16715         * doc/posix-functions/wcscasecmp.texi: Likewise.
16716         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16717         * doc/posix-functions/wcscoll_l.texi: Likewise.
16718         * doc/posix-functions/wcsdup.texi: Likewise.
16719         * doc/posix-functions/wcsncasecmp.texi: Likewise.
16720         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16721         * doc/posix-functions/wcsnlen.texi: Likewise.
16722         * doc/posix-functions/wcsnrtombs.texi: Likewise.
16723         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16724         * doc/posix-functions/wctrans_l.texi: Likewise.
16725         * doc/posix-functions/wctype_l.texi: Likewise.
16726         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16727         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16728         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16729         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16730         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16731         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16732         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16733         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16734         * doc/glibc-functions/wcschrnul.texi: Likewise.
16735         * doc/glibc-functions/wcsftime_l.texi: Likewise.
16736         * doc/glibc-functions/wcstod_l.texi: Likewise.
16737         * doc/glibc-functions/wcstof_l.texi: Likewise.
16738         * doc/glibc-functions/wcstol_l.texi: Likewise.
16739         * doc/glibc-functions/wcstold_l.texi: Likewise.
16740         * doc/glibc-functions/wcstoll_l.texi: Likewise.
16741         * doc/glibc-functions/wcstoq.texi: Likewise.
16742         * doc/glibc-functions/wcstoul_l.texi: Likewise.
16743         * doc/glibc-functions/wcstoull_l.texi: Likewise.
16744         * doc/glibc-functions/wcstouq.texi: Likewise.
16745         * doc/glibc-functions/wmempcpy.texi: Likewise.
16746
16747 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
16748             Eric Blake  <ebb9@byu.net>
16749             Paolo Bonzini  <bonzini@gnu.org>
16750             Bruno Haible  <bruno@clisp.org>
16751
16752         Make c-stack work on Haiku.
16753         * lib/c-stack.c (SA_ONSTACK): Define fallback.
16754         (c_stack_action): Use SA_ONSTACK flag.
16755
16756 2008-12-22  Bruno Haible  <bruno@clisp.org>
16757
16758         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16759
16760 2008-12-22  Bruno Haible  <bruno@clisp.org>
16761
16762         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16763         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16764         being overridden.
16765         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16766         New macros.
16767         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16769         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16770         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16771
16772 2008-12-22  Bruno Haible  <bruno@clisp.org>
16773
16774         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16775         from test code.
16776
16777 2008-12-22  Eric Blake  <ebb9@byu.net>
16778
16779         Avoid gcc warnings on cygwin.
16780         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16781         Avoid unused variable.
16782         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16783         Likewise.
16784
16785 2008-12-22  Bruno Haible  <bruno@clisp.org>
16786
16787         Remove HAVE_MBRTOWC conditionals.
16788         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16789         (mbscasecmp): Assume mbrtowc function.
16790         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16791         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16792         * lib/mbschr.c: Include mbuiter.h unconditionally.
16793         (mbschr): Assume mbrtowc function.
16794         * lib/mbscspn.c: Include mbuiter.h unconditionally.
16795         (mbscspn): Assume mbrtowc function.
16796         * lib/mbslen.c: Include mbuiter.h unconditionally.
16797         (mbslen): Assume mbrtowc function.
16798         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16799         (mbsncasecmp): Assume mbrtowc function.
16800         * lib/mbsnlen.c: Include mbiter.h unconditionally.
16801         (mbsnlen): Assume mbrtowc function.
16802         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16803         (mbspbrk): Assume mbrtowc function.
16804         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16805         (mbspcasecmp): Assume mbrtowc function.
16806         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16807         (mbsrchr): Assume mbrtowc function.
16808         * lib/mbssep.c: Include mbuiter.h unconditionally.
16809         (mbssep): Assume mbrtowc function.
16810         * lib/mbsspn.c: Include mbuiter.h unconditionally.
16811         (mbsspn): Assume mbrtowc function.
16812         * lib/mbsstr.c: Include mbuiter.h unconditionally.
16813         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16814         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16815         (mbstok_r): Assume mbrtowc function.
16816         * lib/propername.c: Include mbuiter.h unconditionally.
16817         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16818         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16819         (trim2): Assume mbrtowc function.
16820         * lib/mbswidth.c (mbsinit): Remove fallback definition.
16821         (mbsnwidth): Assume mbrtowc function.
16822         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16823         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16824         fallback definitions.
16825         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16826
16827 2008-12-22  Bruno Haible  <bruno@clisp.org>
16828
16829         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16830
16831 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
16832
16833         * modules/regex: Request emulations for the mb*/wc* functions we need.
16834         * m4/regex.m4: Don't look for those functions here.
16835         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16836
16837 2008-12-22  Bruno Haible  <bruno@clisp.org>
16838
16839         * modules/fnmatch (Depends-on): Remove duplicated dependency.
16840
16841 2008-12-21  Bruno Haible  <bruno@clisp.org>
16842
16843         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16844         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16845         (Include): Remove conditionalization.
16846         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16847         (Include): Remove conditionalization.
16848         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16849         (Include): Remove conditionalization.
16850         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16851         * m4/mbfile.m4 (gl_MBFILE): Likewise.
16852         * NEWS: Mention the change.
16853         Reported by Alan Hourihane <alanh@fairlite.co.uk>
16854         via Sergey Poznyakoff <gray@gnu.org.ua>.
16855
16856 2008-12-21  Bruno Haible  <bruno@clisp.org>
16857
16858         * MODULES.html.sh (Extended multibyte and wide character utilities
16859         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16860         wcrtomb, wcsrtombs.
16861         (Support for systems lacking POSIX:2008): Add accept, bind, close,
16862         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16863         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16864         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16865
16866 2008-12-21  Bruno Haible  <bruno@clisp.org>
16867
16868         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16869
16870 2008-12-21  Bruno Haible  <bruno@clisp.org>
16871
16872         * modules/wcsnrtombs-tests: New file.
16873         * tests/test-wcsnrtombs1.sh: New file.
16874         * tests/test-wcsnrtombs2.sh: New file.
16875         * tests/test-wcsnrtombs3.sh: New file.
16876         * tests/test-wcsnrtombs4.sh: New file.
16877         * tests/test-wcsnrtombs.c: New file.
16878
16879         New module 'wcsnrtombs'.
16880         * lib/wchar.in.h (wcsnrtombs): New declaration.
16881         * lib/wcsnrtombs.c: New file.
16882         * lib/wcsrtombs-state.c: New file.
16883         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16884         (internal_state): Remove variable.
16885         * m4/wcsnrtombs.m4: New file.
16886         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16887         compilation units.
16888         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16889         HAVE_WCSNRTOMBS.
16890         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16891         HAVE_WCSNRTOMBS.
16892         * modules/wcsnrtombs: New file.
16893         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16894         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16895
16896 2008-12-21  Bruno Haible  <bruno@clisp.org>
16897
16898         * modules/wcsrtombs-tests: New file.
16899         * tests/test-wcsrtombs1.sh: New file.
16900         * tests/test-wcsrtombs2.sh: New file.
16901         * tests/test-wcsrtombs3.sh: New file.
16902         * tests/test-wcsrtombs4.sh: New file.
16903         * tests/test-wcsrtombs.c: New file.
16904
16905         New module 'wcsrtombs'.
16906         * lib/wchar.in.h (wcsrtombs): New declaration.
16907         * lib/wcsrtombs.c: New file.
16908         * m4/wcsrtombs.m4: New file.
16909         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16910         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16911         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16912         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16913         * modules/wcsrtombs: New file.
16914         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16915         bugs.
16916
16917 2008-12-21  Bruno Haible  <bruno@clisp.org>
16918
16919         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16920         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16921         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16922         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16923         if not correct.
16924         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16925         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16926         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16927         m4/locale-zh.m4, m4/codeset.m4.
16928         * doc/posix-functions/wcrtomb.texi: Document the bug.
16929
16930 2008-12-21  Bruno Haible  <bruno@clisp.org>
16931
16932         Work around a btowc() bug on IRIX 6.5.
16933         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16934         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16935         REPLACE_WTOBC if not.
16936         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16937         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16938         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16939
16940 2008-12-21  Bruno Haible  <bruno@clisp.org>
16941
16942         * modules/wcrtomb-tests: New file.
16943         * tests/test-wcrtomb.sh: New file.
16944         * tests/test-wcrtomb.c: New file.
16945
16946         New module 'wcrtomb'.
16947         * lib/wchar.in.h (wcrtomb): New declaration.
16948         * lib/wcrtomb.c: New file.
16949         * m4/wcrtomb.m4: New file.
16950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16951         HAVE_WCRTOMB.
16952         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16953         HAVE_WCRTOMB.
16954         * modules/wcrtomb: New file.
16955         * doc/posix-functions/wcrtomb.texi: Mention the new module.
16956
16957 2008-12-21  Bruno Haible  <bruno@clisp.org>
16958
16959         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16960         * modules/mbsrtowcs (Files): Likewise.
16961         * modules/wctob (Files): Likewise.
16962         * modules/c-strcase-tests (Files): Likewise.
16963         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16964         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16965         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16966         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16967         * modules/vasnprintf-posix-tests (Files): Likewise.
16968
16969 2008-12-21  William Pursell  <bill.pursell@gmail.com>
16970
16971         gitlog-to-changelog: pass all command-line arguments to git-log
16972         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16973         it is sometimes convenient to filter the commits in various ways.
16974         gitlog-to-changelog only allows --since to specify a start date,
16975         but git-log itself supports many other filtering mechanisms.
16976         At the moment, I want to filter by branch name.  Rather than
16977         adding a --branch option to gitlog-to-changelog, it seems more
16978         flexible to simply pass all options directly to git-log and let
16979         git do the work.  Notice that this effectively makes --since a
16980         redundant option for gitlog-to-changelog, but removing it would
16981         require current usage to change since calls would then require
16982         an additional '--'.
16983
16984 2008-12-21  Bruno Haible  <bruno@clisp.org>
16985
16986         * modules/mbsnrtowcs-tests: New file.
16987         * tests/test-mbsnrtowcs1.sh: New file.
16988         * tests/test-mbsnrtowcs2.sh: New file.
16989         * tests/test-mbsnrtowcs3.sh: New file.
16990         * tests/test-mbsnrtowcs4.sh: New file.
16991         * tests/test-mbsnrtowcs.c: New file.
16992
16993         New module 'mbsnrtowcs'.
16994         * lib/wchar.in.h (mbsnrtowcs): New declaration.
16995         * lib/mbsnrtowcs.c: New file.
16996         * lib/mbsrtowcs-state.c: New file.
16997         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16998         (internal_state): Remove variable.
16999         * m4/mbsnrtowcs.m4: New file.
17000         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
17001         compilation units.
17002         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
17003         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17004         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
17005         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
17006         * modules/mbsnrtowcs: New file.
17007         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
17008         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
17009         portability problem.
17010
17011 2008-12-21  Bruno Haible  <bruno@clisp.org>
17012
17013         Work around mbsrtowcs bug.
17014         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
17015         (gl_FUNC_MBSRTOWCS): Invoke it.
17016         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17017         m4/locale-zh.m4.
17018         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
17019
17020 2008-12-21  Bruno Haible  <bruno@clisp.org>
17021
17022         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
17023
17024 2008-12-21  Bruno Haible  <bruno@clisp.org>
17025
17026         Update doc for AIX.
17027         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
17028         16-bit wchar_t type.
17029         * doc/posix-functions/btowc.texi: Likewise.
17030         * doc/posix-functions/fgetwc.texi: Likewise.
17031         * doc/posix-functions/fgetws.texi: Likewise.
17032         * doc/posix-functions/fputwc.texi: Likewise.
17033         * doc/posix-functions/fputws.texi: Likewise.
17034         * doc/posix-functions/fwide.texi: Likewise.
17035         * doc/posix-functions/fwprintf.texi: Likewise.
17036         * doc/posix-functions/fwscanf.texi: Likewise.
17037         * doc/posix-functions/getwchar.texi: Likewise.
17038         * doc/posix-functions/getwc.texi: Likewise.
17039         * doc/posix-functions/iswalnum.texi: Likewise.
17040         * doc/posix-functions/iswalpha.texi: Likewise.
17041         * doc/posix-functions/iswblank.texi: Likewise.
17042         * doc/posix-functions/iswcntrl.texi: Likewise.
17043         * doc/posix-functions/iswctype.texi: Likewise.
17044         * doc/posix-functions/iswdigit.texi: Likewise.
17045         * doc/posix-functions/iswgraph.texi: Likewise.
17046         * doc/posix-functions/iswlower.texi: Likewise.
17047         * doc/posix-functions/iswprint.texi: Likewise.
17048         * doc/posix-functions/iswpunct.texi: Likewise.
17049         * doc/posix-functions/iswspace.texi: Likewise.
17050         * doc/posix-functions/iswupper.texi: Likewise.
17051         * doc/posix-functions/iswxdigit.texi: Likewise.
17052         * doc/posix-functions/mbrtowc.texi: Likewise.
17053         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17054         * doc/posix-functions/mbstowcs.texi: Likewise.
17055         * doc/posix-functions/mbtowc.texi: Likewise.
17056         * doc/posix-functions/putwchar.texi: Likewise.
17057         * doc/posix-functions/putwc.texi: Likewise.
17058         * doc/posix-functions/swprintf.texi: Likewise.
17059         * doc/posix-functions/tolower.texi: Likewise.
17060         * doc/posix-functions/toupper.texi: Likewise.
17061         * doc/posix-functions/towctrans.texi: Likewise.
17062         * doc/posix-functions/ungetwc.texi: Likewise.
17063         * doc/posix-functions/vswprintf.texi: Likewise.
17064         * doc/posix-functions/wcrtomb.texi: Likewise.
17065         * doc/posix-functions/wcscat.texi: Likewise.
17066         * doc/posix-functions/wcschr.texi: Likewise.
17067         * doc/posix-functions/wcscmp.texi: Likewise.
17068         * doc/posix-functions/wcscoll.texi: Likewise.
17069         * doc/posix-functions/wcscpy.texi: Likewise.
17070         * doc/posix-functions/wcscspn.texi: Likewise.
17071         * doc/posix-functions/wcsftime.texi: Likewise.
17072         * doc/posix-functions/wcslen.texi: Likewise.
17073         * doc/posix-functions/wcsncat.texi: Likewise.
17074         * doc/posix-functions/wcsncmp.texi: Likewise.
17075         * doc/posix-functions/wcsncpy.texi: Likewise.
17076         * doc/posix-functions/wcspbrk.texi: Likewise.
17077         * doc/posix-functions/wcsrchr.texi: Likewise.
17078         * doc/posix-functions/wcsrtombs.texi: Likewise.
17079         * doc/posix-functions/wcsspn.texi: Likewise.
17080         * doc/posix-functions/wcsstr.texi: Likewise.
17081         * doc/posix-functions/wcstod.texi: Likewise.
17082         * doc/posix-functions/wcstof.texi: Likewise.
17083         * doc/posix-functions/wcstoimax.texi: Likewise.
17084         * doc/posix-functions/wcstok.texi: Likewise.
17085         * doc/posix-functions/wcstold.texi: Likewise.
17086         * doc/posix-functions/wcstoll.texi: Likewise.
17087         * doc/posix-functions/wcstol.texi: Likewise.
17088         * doc/posix-functions/wcstombs.texi: Likewise.
17089         * doc/posix-functions/wcstoull.texi: Likewise.
17090         * doc/posix-functions/wcstoul.texi: Likewise.
17091         * doc/posix-functions/wcstoumax.texi: Likewise.
17092         * doc/posix-functions/wcswidth.texi: Likewise.
17093         * doc/posix-functions/wcsxfrm.texi: Likewise.
17094         * doc/posix-functions/wctob.texi: Likewise.
17095         * doc/posix-functions/wctomb.texi: Likewise.
17096         * doc/posix-functions/wctrans.texi: Likewise.
17097         * doc/posix-functions/wctype.texi: Likewise.
17098         * doc/posix-functions/wcwidth.texi: Likewise.
17099         * doc/posix-functions/wmemchr.texi: Likewise.
17100         * doc/posix-functions/wmemcmp.texi: Likewise.
17101         * doc/posix-functions/wmemcpy.texi: Likewise.
17102         * doc/posix-functions/wmemmove.texi: Likewise.
17103         * doc/posix-functions/wmemset.texi: Likewise.
17104         * doc/posix-functions/wprintf.texi: Likewise.
17105         * doc/posix-functions/wscanf.texi: Likewise.
17106
17107 2008-12-21  Bruno Haible  <bruno@clisp.org>
17108
17109         Update doc for HP-UX 11.11.
17110         * doc/posix-functions/btowc.texi: Clarify that the function is missing
17111         in HP-UX version 11.00, not in all versions of HP-UX 11.
17112         * doc/posix-functions/fwide.texi: Likewise.
17113         * doc/posix-functions/fwprintf.texi: Likewise.
17114         * doc/posix-functions/fwscanf.texi: Likewise.
17115         * doc/posix-functions/inet_ntop.texi: Likewise.
17116         * doc/posix-functions/inet_pton.texi: Likewise.
17117         * doc/posix-functions/mbrlen.texi: Likewise.
17118         * doc/posix-functions/mbrtowc.texi: Likewise.
17119         * doc/posix-functions/mbsinit.texi: Likewise.
17120         * doc/posix-functions/mbsrtowcs.texi: Likewise.
17121         * doc/posix-functions/swprintf.texi: Likewise.
17122         * doc/posix-functions/swscanf.texi: Likewise.
17123         * doc/posix-functions/towctrans.texi: Likewise.
17124         * doc/posix-functions/vfwprintf.texi: Likewise.
17125         * doc/posix-functions/vswprintf.texi: Likewise.
17126         * doc/posix-functions/vwprintf.texi: Likewise.
17127         * doc/posix-functions/wcrtomb.texi: Likewise.
17128         * doc/posix-functions/wcsrtombs.texi: Likewise.
17129         * doc/posix-functions/wcsstr.texi: Likewise.
17130         * doc/posix-functions/wctob.texi: Likewise.
17131         * doc/posix-functions/wctrans.texi: Likewise.
17132         * doc/posix-functions/wmemchr.texi: Likewise.
17133         * doc/posix-functions/wmemcmp.texi: Likewise.
17134         * doc/posix-functions/wmemcpy.texi: Likewise.
17135         * doc/posix-functions/wmemmove.texi: Likewise.
17136         * doc/posix-functions/wmemset.texi: Likewise.
17137         * doc/posix-functions/wprintf.texi: Likewise.
17138         * doc/posix-functions/wscanf.texi: Likewise.
17139
17140 2008-12-21  Bruno Haible  <bruno@clisp.org>
17141
17142         Work around a portability problem.
17143         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
17144         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
17145
17146 2008-12-20  Bruno Haible  <bruno@clisp.org>
17147
17148         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
17149         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
17150         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
17151         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
17152         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
17153
17154         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
17155         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
17156         set.
17157         (GNULIB_defined_mbstate_t): New macro.
17158         (mbsinit): Redefine if REPLACE_MBSINIT is set.
17159         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
17160         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
17161         reuses the system's mbrtowc function but works around the bugs.
17162         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
17163         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
17164         macros.
17165         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
17166         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
17167         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
17168         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
17169         REPLACE_MBSINIT if mbsinit needs to be overridden.
17170         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
17171         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17172         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
17173         REPLACE_MBSINIT, REPLACE_MBRTOWC.
17174         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
17175         m4/locale-zh.m4.
17176         (Depends): Add mbsinit.
17177         * modules/mbsinit (Depends): Add mbrtowc.
17178         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
17179
17180 2008-12-20  Bruno Haible  <bruno@clisp.org>
17181
17182         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
17183         so that there are no conversion errors on AIX.
17184         * tests/test-mbsrtowcs.c (main): LIkewise.
17185
17186 2008-12-20  Bruno Haible  <bruno@clisp.org>
17187
17188         Work around wctob bug on Solaris <= 9.
17189         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
17190         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
17191         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
17192         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
17193         * modules/wctob (Files): Add m4/locale-fr.m4.
17194         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
17195
17196 2008-12-20  Bruno Haible  <bruno@clisp.org>
17197
17198         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
17199         /dev/null.
17200         * tests/test-select-in.sh: Likewise.
17201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17202
17203 2008-12-20  Bruno Haible  <bruno@clisp.org>
17204
17205         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
17206         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
17207         Cygwin 1.5.x.
17208
17209 2008-12-20  Bruno Haible  <bruno@clisp.org>
17210
17211         Ensure mbstate_t is defined on HP-UX 11.11.
17212         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
17213         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
17214         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
17215         AC_USE_SYSTEM_EXTENSIONS.
17216         * modules/fnmatch (Depends-on): Add extensions.
17217         * modules/mbrlen (Depends-on): Likewise.
17218         * modules/mbrtowc (Depends-on): Likewise.
17219         * modules/mbsinit (Depends-on): Likewise.
17220         * modules/mbsrtowcs (Depends-on): Likewise.
17221         * modules/mbswidth (Depends-on): Likewise.
17222         * modules/quotearg (Depends-on): Likewise.
17223         * modules/strftime (Depends-on): Likewise.
17224
17225 2008-12-20  Bruno Haible  <bruno@clisp.org>
17226
17227         Ensure wctob is declared on IRIX 6.5.
17228         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
17229         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
17230         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
17231         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
17232         of HAVE_WCTOB.
17233         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
17234         HAVE_WCTOB.
17235         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
17236
17237 2008-12-19  Bruno Haible  <bruno@clisp.org>
17238
17239         * modules/mbsrtowcs-tests: New file.
17240         * tests/test-mbsrtowcs1.sh: New file.
17241         * tests/test-mbsrtowcs2.sh: New file.
17242         * tests/test-mbsrtowcs3.sh: New file.
17243         * tests/test-mbsrtowcs4.sh: New file.
17244         * tests/test-mbsrtowcs.c: New file.
17245
17246         New module 'mbsrtowcs'.
17247         * lib/wchar.in.h (mbsrtowcs): New declaration.
17248         * lib/mbsrtowcs.c: New file.
17249         * m4/mbsrtowcs.m4: New file.
17250         * modules/mbsrtowcs: New file.
17251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
17252         HAVE_MBSRTOWCS.
17253         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
17254         HAVE_MBSRTOWCS.
17255         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
17256
17257 2008-12-19  Bruno Haible  <bruno@clisp.org>
17258
17259         New module 'mbrlen'.
17260         * lib/wchar.in.h (mbrlen): New declaration.
17261         * lib/mbrlen.c: New file.
17262         * m4/mbrlen.m4: New file.
17263         * modules/mbrlen: New file.
17264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
17265         HAVE_MBRLEN.
17266         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
17267         HAVE_MBRLEN.
17268         * doc/posix-functions/mbrlen.texi: Document the new module.
17269
17270 2008-12-19  Bruno Haible  <bruno@clisp.org>
17271
17272         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
17273         * modules/mbrtowc (Depends-on): Add verify.
17274         Suggested by Paul Eggert.
17275
17276 2008-12-18  Bruno Haible  <bruno@clisp.org>
17277
17278         * modules/mbsinit-tests: New file.
17279         * tests/test-mbsinit.sh: New file.
17280         * tests/test-mbsinit.c: New file.
17281
17282 2008-12-18  Bruno Haible  <bruno@clisp.org>
17283
17284         * modules/mbrtowc-tests: New file.
17285         * tests/test-mbrtowc1.sh: New file.
17286         * tests/test-mbrtowc2.sh: New file.
17287         * tests/test-mbrtowc3.sh: New file.
17288         * tests/test-mbrtowc4.sh: New file.
17289         * tests/test-mbrtowc.c: New file.
17290
17291         New module 'mbrtowc'.
17292         * lib/wchar.in.h (mbstate_t): Override when the system does not have
17293         mbsinit and mbrtowc.
17294         (mbrtowc): New declaration.
17295         * lib/mbrtowc.c: New file.
17296         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
17297         * modules/mbrtowc: New file.
17298         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
17299         HAVE_MBRTOWC.
17300         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
17301         HAVE_MBRTOWC.
17302         * doc/posix-functions/mbrtowc.texi: Document the new module.
17303
17304 2008-12-18  Bruno Haible  <bruno@clisp.org>
17305
17306         New module 'wctob'.
17307         * lib/wchar.in.h (wctob): New declaration.
17308         * lib/wctob.c: New file.
17309         * m4/wctob.m4: New file.
17310         * modules/wctob: New file.
17311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
17312         HAVE_WCTOB.
17313         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
17314         * doc/posix-functions/wctob.texi: Document the new module.
17315
17316 2008-12-18  Bruno Haible  <bruno@clisp.org>
17317
17318         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
17319         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
17320
17321 2008-12-18  Simon Josefsson  <simon@josefsson.org>
17322
17323         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
17324         G. Christensen" <tgc@jupiterrise.com>.
17325
17326         * lib/flock.c: Need to include errno.h.  Reported by "Tom
17327         G. Christensen" <tgc@jupiterrise.com>.
17328
17329         * lib/flock.c: Need to include string.h.  Reported by "Tom
17330         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
17331         <ebb9@byu.net>.
17332
17333 2008-12-18  Bruno Haible  <bruno@clisp.org>
17334
17335         * m4/locale-ja.m4: New file, from GNU gettext.
17336
17337 2008-12-17  Bruno Haible  <bruno@clisp.org>
17338
17339         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
17340         Suggested by Eric Blake.
17341
17342 2008-12-17  Bruno Haible  <bruno@clisp.org>
17343
17344         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
17345
17346 2008-12-17  Bruno Haible  <bruno@clisp.org>
17347
17348         * lib/mbsinit.c: Include verify.h. Verify an assumption.
17349         * modules/mbsinit (Depends-on): Add verify.
17350         Suggested by Paul Eggert.
17351
17352 2008-12-17  Bruno Haible  <bruno@clisp.org>
17353
17354         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
17355         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
17356         gl_FUNC_MBRTOWC.
17357         * m4/mbiter.m4 (gl_MBITER): LIkewise.
17358         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
17359         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
17360         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
17361         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
17362         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
17363         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
17364         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
17365         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
17366         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
17367         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
17368         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
17369         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
17370         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
17371         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
17372         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17373         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
17374         * modules/trim (configure.ac): Likewise.
17375
17376 2008-12-17  Bruno Haible  <bruno@clisp.org>
17377
17378         * modules/btowc-tests: New file.
17379         * tests/test-btowc1.sh: New file.
17380         * tests/test-btowc2.sh: New file.
17381         * tests/test-btowc.c: New file.
17382
17383         New module 'btowc'.
17384         * lib/wchar.in.h (btowc): New declaration.
17385         * lib/btowc.c: New file.
17386         * m4/btowc.m4: New file.
17387         * modules/btowc: New file.
17388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
17389         HAVE_BTOWC.
17390         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
17391         * doc/posix-functions/btowc.texi: Document the new module.
17392
17393 2008-12-17  Bruno Haible  <bruno@clisp.org>
17394
17395         New module 'mbsinit'.
17396         * lib/wchar.in.h (mbsinit): New declaration.
17397         * lib/mbsinit.c: New file.
17398         * m4/mbsinit.m4: New file.
17399         * modules/mbsinit: New file.
17400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
17401         HAVE_MBSINIT.
17402         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
17403         HAVE_MBSINIT.
17404         * doc/posix-functions/mbsinit.texi: Document the new module.
17405
17406 2008-12-16  Bruno Haible  <bruno@clisp.org>
17407
17408         * lib/unistd.in.h: Add comment.
17409         * tests/test-environ.c: Don't include <stdlib.h>.
17410
17411 2008-12-16  Bruno Haible  <bruno@clisp.org>
17412
17413         * lib/parse-duration.h (parse_duration): Document return value
17414         convention.
17415         * lib/parse-duration.c: Include specification header first. Add
17416         comments.
17417         (_): Remove macro.
17418         (parse_year_month_day, parse_hour_minute_second): Move side effects
17419         outside of strchr call.
17420         (parse_non_iso8601): Move side effects outside of isspace call.
17421         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
17422         call.
17423
17424 2008-12-16  Bruno Haible  <bruno@clisp.org>
17425
17426         * tests/test-parse-duration.sh: Produce no output when the test
17427         succeeds.
17428
17429 2008-12-16  Bruno Haible  <bruno@clisp.org>
17430
17431         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
17432         expressions.
17433
17434 2008-12-15  Bruno Haible  <bruno@clisp.org>
17435
17436         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
17437         * doc/glibc-functions/flistxattr.texi: Likewise.
17438         * doc/glibc-functions/fopencookie.texi: Likewise.
17439         * doc/glibc-functions/fremovexattr.texi: Likewise.
17440         * doc/glibc-functions/fsetxattr.texi: Likewise.
17441         * doc/glibc-functions/getxattr.texi: Likewise.
17442         * doc/glibc-functions/lgetxattr.texi: Likewise.
17443         * doc/glibc-functions/listxattr.texi: Likewise.
17444         * doc/glibc-functions/llistxattr.texi: Likewise.
17445         * doc/glibc-functions/lremovexattr.texi: Likewise.
17446         * doc/glibc-functions/lsetxattr.texi: Likewise.
17447         * doc/glibc-functions/removexattr.texi: Likewise.
17448         * doc/glibc-functions/setxattr.texi: Likewise.
17449         * doc/posix-functions/open_memstream.texi: Likewise.
17450
17451 2008-12-15  Eric Blake  <ebb9@byu.net>
17452
17453         Update doc for cygwin 1.7.
17454         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17455         functions.
17456         * doc/posix-functions/fchmodat.texi: Likewise.
17457         * doc/posix-functions/fchownat.texi: Likewise.
17458         * doc/posix-functions/fdopendir.texi: Likewise.
17459         * doc/posix-functions/fmemopen.texi: Likewise.
17460         * doc/posix-functions/freeaddrinfo.texi: Likewise.
17461         * doc/posix-functions/fstatat.texi: Likewise.
17462         * doc/posix-functions/futimens.texi: Likewise.
17463         * doc/posix-functions/gai_strerror.texi: Likewise.
17464         * doc/posix-functions/getaddrinfo.texi: Likewise.
17465         * doc/posix-functions/getnameinfo.texi: Likewise.
17466         * doc/posix-functions/if_freenameindex.texi: Likewise.
17467         * doc/posix-functions/if_indextoname.texi: Likewise.
17468         * doc/posix-functions/if_nameindex.texi: Likewise.
17469         * doc/posix-functions/if_nametoindex.texi: Likewise.
17470         * doc/posix-functions/insque.texi: Likewise.
17471         * doc/posix-functions/linkat.texi: Likewise.
17472         * doc/posix-functions/llrint.texi: Likewise.
17473         * doc/posix-functions/llrintf.texi: Likewise.
17474         * doc/posix-functions/llrintl.texi: Likewise.
17475         * doc/posix-functions/lockf.texi: Likewise.
17476         * doc/posix-functions/lrintl.texi: Likewise.
17477         * doc/posix-functions/mkdirat.texi: Likewise.
17478         * doc/posix-functions/mkfifoat.texi: Likewise.
17479         * doc/posix-functions/mknodat.texi: Likewise.
17480         * doc/posix-functions/mq_close.texi: Likewise.
17481         * doc/posix-functions/mq_getattr.texi: Likewise.
17482         * doc/posix-functions/mq_notify.texi: Likewise.
17483         * doc/posix-functions/mq_open.texi: Likewise.
17484         * doc/posix-functions/mq_receive.texi: Likewise.
17485         * doc/posix-functions/mq_send.texi: Likewise.
17486         * doc/posix-functions/mq_setattr.texi: Likewise.
17487         * doc/posix-functions/mq_timedreceive.texi: Likewise.
17488         * doc/posix-functions/mq_timedsend.texi: Likewise.
17489         * doc/posix-functions/mq_unlink.texi: Likewise.
17490         * doc/posix-functions/open_memstream.texi: Likewise.
17491         * doc/posix-functions/openat.texi: Likewise.
17492         * doc/posix-functions/posix_fadvise.texi: Likewise.
17493         * doc/posix-functions/posix_fallocate.texi: Likewise.
17494         * doc/posix-functions/posix_madvise.texi: Likewise.
17495         * doc/posix-functions/posix_memalign.texi: Likewise.
17496         * doc/posix-functions/posix_openpt.texi: Likewise.
17497         * doc/posix-functions/readlinkat.texi: Likewise.
17498         * doc/posix-functions/remque.texi: Likewise.
17499         * doc/posix-functions/renameat.texi: Likewise.
17500         * doc/posix-functions/rintl.texi: Likewise.
17501         * doc/posix-functions/sem_unlink.texi: Likewise.
17502         * doc/posix-functions/shm_open.texi: Likewise.
17503         * doc/posix-functions/shm_unlink.texi: Likewise.
17504         * doc/posix-functions/signgam.texi: Likewise.
17505         * doc/posix-functions/sigset.texi: Likewise.
17506         * doc/posix-functions/stpcpy.texi: Likewise.
17507         * doc/posix-functions/stpncpy.texi: Likewise.
17508         * doc/posix-functions/strerror.texi: Likewise.
17509         * doc/posix-functions/strtod.texi: Likewise.
17510         * doc/posix-functions/symlinkat.texi: Likewise.
17511         * doc/posix-functions/unlinkat.texi: Likewise.
17512         * doc/posix-functions/utimensat.texi: Likewise.
17513         * doc/glibc-functions/bindresvport.texi: Likewise.
17514         * doc/glibc-functions/dn_expand.texi: Likewise.
17515         * doc/glibc-functions/exp10.texi: Likewise.
17516         * doc/glibc-functions/exp10f.texi: Likewise.
17517         * doc/glibc-functions/fgetxattr.texi: Likewise.
17518         * doc/glibc-functions/flistxattr.texi: Likewise.
17519         * doc/glibc-functions/fopencookie.texi: Likewise.
17520         * doc/glibc-functions/freeifaddrs.texi: Likewise.
17521         * doc/glibc-functions/fremovexattr.texi: Likewise.
17522         * doc/glibc-functions/fsetxattr.texi: Likewise.
17523         * doc/glibc-functions/getifaddrs.texi: Likewise.
17524         * doc/glibc-functions/getxattr.texi: Likewise.
17525         * doc/glibc-functions/lgetxattr.texi: Likewise.
17526         * doc/glibc-functions/listxattr.texi: Likewise.
17527         * doc/glibc-functions/llistxattr.texi: Likewise.
17528         * doc/glibc-functions/lremovexattr.texi: Likewise.
17529         * doc/glibc-functions/lsetxattr.texi: Likewise.
17530         * doc/glibc-functions/pow10.texi: Likewise.
17531         * doc/glibc-functions/pow10f.texi: Likewise.
17532         * doc/glibc-functions/rcmd_af.texi: Likewise.
17533         * doc/glibc-functions/removexattr.texi: Likewise.
17534         * doc/glibc-functions/res_init.texi: Likewise.
17535         * doc/glibc-functions/res_mkquery.texi: Likewise.
17536         * doc/glibc-functions/res_query.texi: Likewise.
17537         * doc/glibc-functions/res_querydomain.texi: Likewise.
17538         * doc/glibc-functions/res_send.texi: Likewise.
17539         * doc/glibc-functions/rresvport_af.texi: Likewise.
17540         * doc/glibc-functions/setxattr.texi: Likewise.
17541         * doc/glibc-functions/strcasestr.texi: Likewise.
17542
17543 2008-12-15  Bruno Haible  <bruno@clisp.org>
17544
17545         Fix compilation error on OSF/1 4.0.
17546         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17547         <sys/time.h>, simply delegate to the system header.
17548         Reported by Daniel Richard G. <oss@teragram.com>.
17549
17550 2008-12-15  Bruno Haible  <bruno@clisp.org>
17551
17552         * doc/posix-functions/openat.texi: Mention the 'openat' module.
17553         * doc/posix-functions/fchmodat.texi: Likewise.
17554         * doc/posix-functions/fchownat.texi: Likewise.
17555         * doc/posix-functions/fdopendir.texi: Likewise.
17556         * doc/posix-functions/fstatat.texi: Likewise.
17557         * doc/posix-functions/mkdirat.texi: Likewise.
17558         * doc/posix-functions/unlinkat.texi: Likewise.
17559
17560 2008-12-14  Bruno Haible  <bruno@clisp.org>
17561
17562         Update doc for POSIX:2008.
17563         * doc/posix-functions/faccessat.texi: New file.
17564         * doc/posix-functions/fchmodat.texi: New file.
17565         * doc/posix-functions/fchownat.texi: New file.
17566         * doc/posix-functions/fdopendir.texi: New file.
17567         * doc/posix-functions/fstatat.texi: New file.
17568         * doc/posix-functions/futimens.texi: New file.
17569         * doc/posix-functions/linkat.texi: New file.
17570         * doc/posix-functions/mkdirat.texi: New file.
17571         * doc/posix-functions/mkfifoat.texi: New file.
17572         * doc/posix-functions/mknodat.texi: New file.
17573         * doc/posix-functions/open_wmemstream.texi: New file.
17574         * doc/posix-functions/openat.texi: New file.
17575         * doc/posix-functions/psiginfo.texi: New file.
17576         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17577         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17578         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17579         * doc/posix-functions/readlinkat.texi: New file.
17580         * doc/posix-functions/renameat.texi: New file.
17581         * doc/posix-functions/strerror_l.texi: New file.
17582         * doc/posix-functions/symlinkat.texi: New file.
17583         * doc/posix-functions/unlinkat.texi: New file.
17584         * doc/posix-functions/utimensat.texi: New file.
17585         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17586
17587 2008-12-14  Bruno Haible  <bruno@clisp.org>
17588
17589         Update doc for POSIX:2008.
17590         * doc/posix-functions/alphasort.texi: Renamed from
17591         doc/glibc-functions/alphasort.texi.
17592         * doc/posix-functions/dirfd.texi: Renamed from
17593         doc/glibc-functions/dirfd.texi.
17594         * doc/posix-functions/dprintf.texi: Renamed from
17595         doc/glibc-functions/dprintf.texi.
17596         * doc/posix-functions/duplocale.texi: Renamed from
17597         doc/glibc-functions/duplocale.texi.
17598         * doc/posix-functions/fexecve.texi: Renamed from
17599         doc/glibc-functions/fexecve.texi.
17600         * doc/posix-functions/fmemopen.texi: Renamed from
17601         doc/glibc-functions/fmemopen.texi.
17602         * doc/posix-functions/freelocale.texi: Renamed from
17603         doc/glibc-functions/freelocale.texi.
17604         * doc/posix-functions/getdate_err.texi: Renamed from
17605         doc/glibc-functions/getdate_err.texi.
17606         * doc/posix-functions/isalnum_l.texi: Renamed from
17607         doc/glibc-functions/isalnum_l.texi.
17608         * doc/posix-functions/isalpha_l.texi: Renamed from
17609         doc/glibc-functions/isalpha_l.texi.
17610         * doc/posix-functions/isblank_l.texi: Renamed from
17611         doc/glibc-functions/isblank_l.texi.
17612         * doc/posix-functions/iscntrl_l.texi: Renamed from
17613         doc/glibc-functions/iscntrl_l.texi.
17614         * doc/posix-functions/isdigit_l.texi: Renamed from
17615         doc/glibc-functions/isdigit_l.texi.
17616         * doc/posix-functions/isgraph_l.texi: Renamed from
17617         doc/glibc-functions/isgraph_l.texi.
17618         * doc/posix-functions/islower_l.texi: Renamed from
17619         doc/glibc-functions/islower_l.texi.
17620         * doc/posix-functions/isprint_l.texi: Renamed from
17621         doc/glibc-functions/isprint_l.texi.
17622         * doc/posix-functions/ispunct_l.texi: Renamed from
17623         doc/glibc-functions/ispunct_l.texi.
17624         * doc/posix-functions/isspace_l.texi: Renamed from
17625         doc/glibc-functions/isspace_l.texi.
17626         * doc/posix-functions/isupper_l.texi: Renamed from
17627         doc/glibc-functions/isupper_l.texi.
17628         * doc/posix-functions/iswalnum_l.texi: Renamed from
17629         doc/glibc-functions/iswalnum_l.texi.
17630         * doc/posix-functions/iswalpha_l.texi: Renamed from
17631         doc/glibc-functions/iswalpha_l.texi.
17632         * doc/posix-functions/iswblank_l.texi: Renamed from
17633         doc/glibc-functions/iswblank_l.texi.
17634         * doc/posix-functions/iswcntrl_l.texi: Renamed from
17635         doc/glibc-functions/iswcntrl_l.texi.
17636         * doc/posix-functions/iswctype_l.texi: Renamed from
17637         doc/glibc-functions/iswctype_l.texi.
17638         * doc/posix-functions/iswdigit_l.texi: Renamed from
17639         doc/glibc-functions/iswdigit_l.texi.
17640         * doc/posix-functions/iswgraph_l.texi: Renamed from
17641         doc/glibc-functions/iswgraph_l.texi.
17642         * doc/posix-functions/iswlower_l.texi: Renamed from
17643         doc/glibc-functions/iswlower_l.texi.
17644         * doc/posix-functions/iswprint_l.texi: Renamed from
17645         doc/glibc-functions/iswprint_l.texi.
17646         * doc/posix-functions/iswpunct_l.texi: Renamed from
17647         doc/glibc-functions/iswpunct_l.texi.
17648         * doc/posix-functions/iswspace_l.texi: Renamed from
17649         doc/glibc-functions/iswspace_l.texi.
17650         * doc/posix-functions/iswupper_l.texi: Renamed from
17651         doc/glibc-functions/iswupper_l.texi.
17652         * doc/posix-functions/iswxdigit_l.texi: Renamed from
17653         doc/glibc-functions/iswxdigit_l.texi.
17654         * doc/posix-functions/isxdigit_l.texi: Renamed from
17655         doc/glibc-functions/isxdigit_l.texi.
17656         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17657         doc/glibc-functions/mbsnrtowcs.texi.
17658         * doc/posix-functions/mkdtemp.texi: Renamed from
17659         doc/glibc-functions/mkdtemp.texi.
17660         * doc/posix-functions/newlocale.texi: Renamed from
17661         doc/glibc-functions/newlocale.texi.
17662         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17663         doc/glibc-functions/nl_langinfo_l.texi.
17664         * doc/posix-functions/open_memstream.texi: Renamed from
17665         doc/glibc-functions/open_memstream.texi.
17666         * doc/posix-functions/opterr.texi: Renamed from
17667         doc/glibc-functions/opterr.texi.
17668         * doc/posix-functions/optind.texi: Renamed from
17669         doc/glibc-functions/optind.texi.
17670         * doc/posix-functions/optopt.texi: Renamed from
17671         doc/glibc-functions/optopt.texi.
17672         * doc/posix-functions/psignal.texi: Renamed from
17673         doc/glibc-functions/psignal.texi.
17674         * doc/posix-functions/scandir.texi: Renamed from
17675         doc/glibc-functions/scandir.texi.
17676         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17677         doc/glibc-functions/sched_get_priority_min.texi.
17678         * doc/posix-functions/signgam.texi: Renamed from
17679         doc/glibc-functions/signgam.texi.
17680         * doc/posix-functions/stpcpy.texi: Renamed from
17681         doc/glibc-functions/stpcpy.texi.
17682         * doc/posix-functions/stpncpy.texi: Renamed from
17683         doc/glibc-functions/stpncpy.texi.
17684         * doc/posix-functions/strcasecmp_l.texi: Renamed from
17685         doc/glibc-functions/strcasecmp_l.texi.
17686         * doc/posix-functions/strcoll_l.texi: Renamed from
17687         doc/glibc-functions/strcoll_l.texi.
17688         * doc/posix-functions/strfmon_l.texi: Renamed from
17689         doc/glibc-functions/strfmon_l.texi.
17690         * doc/posix-functions/strftime_l.texi: Renamed from
17691         doc/glibc-functions/strftime_l.texi.
17692         * doc/posix-functions/strncasecmp_l.texi: Renamed from
17693         doc/glibc-functions/strncasecmp_l.texi.
17694         * doc/posix-functions/strndup.texi: Renamed from
17695         doc/glibc-functions/strndup.texi.
17696         * doc/posix-functions/strnlen.texi: Renamed from
17697         doc/glibc-functions/strnlen.texi.
17698         * doc/posix-functions/strsignal.texi: Renamed from
17699         doc/glibc-functions/strsignal.texi.
17700         * doc/posix-functions/strxfrm_l.texi: Renamed from
17701         doc/glibc-functions/strxfrm_l.texi.
17702         * doc/posix-functions/timer_gettime.texi: Renamed from
17703         doc/glibc-functions/timer_gettime.texi.
17704         * doc/posix-functions/tolower_l.texi: Renamed from
17705         doc/glibc-functions/tolower_l.texi.
17706         * doc/posix-functions/toupper_l.texi: Renamed from
17707         doc/glibc-functions/toupper_l.texi.
17708         * doc/posix-functions/towctrans_l.texi: Renamed from
17709         doc/glibc-functions/towctrans_l.texi.
17710         * doc/posix-functions/towlower_l.texi: Renamed from
17711         doc/glibc-functions/towlower_l.texi.
17712         * doc/posix-functions/towupper_l.texi: Renamed from
17713         doc/glibc-functions/towupper_l.texi.
17714         * doc/posix-functions/uselocale.texi: Renamed from
17715         doc/glibc-functions/uselocale.texi.
17716         * doc/posix-functions/vdprintf.texi: Renamed from
17717         doc/glibc-functions/vdprintf.texi.
17718         * doc/posix-functions/wcpcpy.texi:
17719         Renamed from doc/glibc-functions/wcpcpy.texi.
17720         * doc/posix-functions/wcpncpy.texi: Renamed from
17721         doc/glibc-functions/wcpncpy.texi.
17722         * doc/posix-functions/wcscasecmp.texi: Renamed from
17723         doc/glibc-functions/wcscasecmp.texi.
17724         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17725         doc/glibc-functions/wcscasecmp_l.texi.
17726         * doc/posix-functions/wcscoll_l.texi: Renamed from
17727         doc/glibc-functions/wcscoll_l.texi.
17728         * doc/posix-functions/wcsdup.texi: Renamed from
17729         doc/glibc-functions/wcsdup.texi.
17730         * doc/posix-functions/wcsncasecmp.texi: Renamed from
17731         doc/glibc-functions/wcsncasecmp.texi.
17732         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17733         doc/glibc-functions/wcsncasecmp_l.texi.
17734         * doc/posix-functions/wcsnlen.texi: Renamed from
17735         doc/glibc-functions/wcsnlen.texi.
17736         * doc/posix-functions/wcsnrtombs.texi: Renamed from
17737         doc/glibc-functions/wcsnrtombs.texi.
17738         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17739         doc/glibc-functions/wcsxfrm_l.texi.
17740         * doc/posix-functions/wctrans_l.texi: Renamed from
17741         doc/glibc-functions/wctrans_l.texi.
17742         * doc/posix-functions/wctype_l.texi: Renamed from
17743         doc/glibc-functions/wctype_l.texi.
17744         * doc/gnulib.texi (Function Substitutes): Add these subsections.
17745         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17746         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17747         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17748         these subsections.
17749         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17750         Remove sections.
17751
17752 2008-12-14  Bruno Haible  <bruno@clisp.org>
17753
17754         Update doc for POSIX:2008.
17755         * doc/posix-functions/*.texi: Update URL of POSIX specification.
17756
17757 2008-12-14  Bruno Haible  <bruno@clisp.org>
17758
17759         Update doc for POSIX:2008.
17760         * doc/pastposix-functions/bcmp.texi: Renamed from
17761         doc/posix-functions/bcmp.texi.
17762         * doc/pastposix-functions/bcopy.texi: Renamed from
17763         doc/posix-functions/bcopy.texi.
17764         * doc/pastposix-functions/bsd_signal.texi: Renamed from
17765         doc/posix-functions/bsd_signal.texi.
17766         * doc/pastposix-functions/bzero.texi: Renamed from
17767         doc/posix-functions/bzero.texi.
17768         * doc/pastposix-functions/ecvt.texi: Renamed from
17769         doc/posix-functions/ecvt.texi.
17770         * doc/pastposix-functions/fcvt.texi: Renamed from
17771         doc/posix-functions/fcvt.texi.
17772         * doc/pastposix-functions/ftime.texi: Renamed from
17773         doc/posix-functions/ftime.texi.
17774         * doc/pastposix-functions/gcvt.texi: Renamed from
17775         doc/posix-functions/gcvt.texi.
17776         * doc/pastposix-functions/getcontext.texi: Renamed from
17777         doc/posix-functions/getcontext.texi.
17778         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17779         doc/posix-functions/gethostbyaddr.texi.
17780         * doc/pastposix-functions/gethostbyname.texi: Renamed from
17781         doc/posix-functions/gethostbyname.texi.
17782         * doc/pastposix-functions/getwd.texi: Renamed from
17783         doc/posix-functions/getwd.texi.
17784         * doc/pastposix-functions/h_errno.texi: Renamed from
17785         doc/posix-functions/h_errno.texi.
17786         * doc/pastposix-functions/index.texi: Renamed from
17787         doc/posix-functions/index.texi.
17788         * doc/pastposix-functions/makecontext.texi: Renamed from
17789         doc/posix-functions/makecontext.texi.
17790         * doc/pastposix-functions/mktemp.texi: Renamed from
17791         doc/posix-functions/mktemp.texi.
17792         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17793         doc/posix-functions/pthread_attr_getstackaddr.texi.
17794         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17795         doc/posix-functions/pthread_attr_setstackaddr.texi.
17796         * doc/pastposix-functions/rindex.texi: Renamed from
17797         doc/posix-functions/rindex.texi.
17798         * doc/pastposix-functions/scalb.texi: Renamed from
17799         doc/posix-functions/scalb.texi.
17800         * doc/pastposix-functions/setcontext.texi: Renamed from
17801         doc/posix-functions/setcontext.texi.
17802         * doc/pastposix-functions/swapcontext.texi: Renamed from
17803         doc/posix-functions/swapcontext.texi.
17804         * doc/pastposix-functions/ualarm.texi: Renamed from
17805         doc/posix-functions/ualarm.texi.
17806         * doc/pastposix-functions/usleep.texi: Renamed from
17807         doc/posix-functions/usleep.texi.
17808         * doc/pastposix-functions/vfork.texi: Renamed from
17809         doc/posix-functions/vfork.texi.
17810         * doc/pastposix-functions/wcswcs.texi: Renamed from
17811         doc/posix-functions/wcswcs.texi.
17812         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17813         (Function Substitutes): Update.
17814
17815 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17816
17817         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17818         m4/strerror.m4.
17819
17820 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17821             Bruno Haible  <bruno@clisp.org>
17822
17823         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17824
17825 2008-12-13  Bruno Haible  <bruno@clisp.org>
17826
17827         * modules/strtoull (Depends-on): Remove unistd.
17828
17829 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17830
17831         * modules/strtoull (Depends-on): Add stdlib.
17832
17833 2008-12-11  Simon Josefsson  <simon@josefsson.org>
17834
17835         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17836
17837 2008-12-10  Jim Meyering  <meyering@redhat.com>
17838
17839         gl_ASSERT: don't say assertions are disabled when they're not
17840         * m4/assert.m4 (gl_ASSERT): Do not make configure report
17841         "checking whether to enable assertions... no", when they are in
17842         fact enabled.  This is solely a bug in the output of configure.
17843         In spite of saying "no", NDEBUG was not defined in that case.
17844         Also, as noted by Eric Blake, leave assertions enabled upon
17845         --enable-assert=INVALID.
17846
17847 2008-12-10  Bruno Haible  <bruno@clisp.org>
17848
17849         Change MODULES.html to refer to POSIX:2008 where possible.
17850         * MODULES.html.sh (POSIX2008_URL): New variable.
17851         (posix_headers): Remove sys/timeb, ucontext.
17852         (posix2001_headers): New variable.
17853         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17854         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17855         index, makecontext, mktemp, pthread_attr_getstackaddr,
17856         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17857         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17858         (posix2001_functions): New variable.
17859         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17860         otherwise.
17861
17862 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17863
17864         add missing include to parse-duration.c
17865         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17866         * modules/parse-duration (Depends-on): Add xalloc.
17867
17868         fix sed script reading maint.mk
17869         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17870         (syntax-check-rules): Use it.
17871
17872 2008-12-09  Bruno Haible  <bruno@clisp.org>
17873
17874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17875         MacOS X 10.4/PowerPC.
17876         Reported by Simon Josefsson.
17877
17878 2008-12-08  Jim Meyering  <meyering@redhat.com>
17879
17880         work around mingw's lack of some S_IF definitions
17881         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17882         Reported by Simon Josefsson.
17883
17884 2008-12-08  Bruno Haible  <bruno@clisp.org>
17885
17886         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17887         applied to variables. Needed on MacOS X 10.4/PowerPC.
17888         Reported by Simon Josefsson.
17889
17890 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
17891         and Eric Blake  <ebb9@byu.net>
17892
17893         assert: honor --enable-assert
17894         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17895         order to honor --enable-assert, rather than treating it as a
17896         synonym for --disable-assert.
17897
17898 2008-12-08  Jim Meyering  <meyering@redhat.com>
17899
17900         * lib/posixtm.c: Remove now-useless declaration of mktime.
17901
17902         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17903
17904 2008-12-07  Bruno Haible  <bruno@clisp.org>
17905
17906         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17907         test_once): Mark functions as static.
17908         * tests/test-tls.c (test_tls): Likewise.
17909
17910 2008-12-07  Bruno Haible  <bruno@clisp.org>
17911
17912         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17913         iconv_register_autodetect.
17914
17915 2008-12-07  Jim Meyering  <meyering@redhat.com>
17916
17917         posixtm.c: avoid a warning
17918         * lib/posixtm.c (posixtime): Don't initialize tm0.
17919         It's no longer needed to placate gcc4's -Wuninitialized,
17920         and the attempt to placate would elicit a new warning.
17921
17922         unicodeio.c: mark unused parameters
17923         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17924         (fallback_failure_callback): Likewise.
17925
17926 2008-12-07  Bruno Haible  <bruno@clisp.org>
17927
17928         * gnulib-tool (func_create_testdir): When building the tests
17929         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17930         Reported by Simon Josefsson.
17931
17932 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17933
17934         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17935
17936 2008-12-06  Bruno Haible  <bruno@clisp.org>
17937
17938         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17939         Suggested by Eric Blake.
17940
17941 2008-12-06  Bruno Haible  <bruno@clisp.org>
17942
17943         Fix a c-stack test failure on MacOS X.
17944         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17945         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17946         handler for SIGBUS as well.
17947         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17948         install a signal handler for SIGBUS as well.
17949         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17950
17951 2008-12-06  Bruno Haible  <bruno@clisp.org>
17952
17953         Advocacy documentation.
17954         * doc/gnulib-intro.texi (Benefits): New section.
17955         * doc/gnulib.texi: Update.
17956
17957 2008-12-06  Bruno Haible  <bruno@clisp.org>
17958
17959         Document the 'manywarnings' module.
17960         * doc/manywarnings.texi: New file.
17961         * doc/gnulib.texi: Include it.
17962
17963 2008-12-05  Eric Blake  <ebb9@byu.net>
17964
17965         tests: silence some gcc warnings
17966         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17967         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17968         type mismatches.
17969
17970 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17971             Bruno Haible  <bruno@clisp.org>
17972
17973         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17974
17975 2008-11-29  Jim Meyering  <meyering@redhat.com>
17976
17977         unicodeio.c: mark unused parameters
17978         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17979         (fallback_failure_callback): Likewise.
17980
17981         fts: fix a thinko
17982         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
17983         (set_stat_type): Return S_IF*-valued "type" directly.
17984         Prompted by James Youngman's spotting a related bug.
17985         Confirmed by further testing through find.
17986
17987         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17988         * lib/fts.c (D_TYPE): Define.
17989         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17990         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17991         (s_ifmt_shift_bits): New function.
17992         (set_stat_type): New function.
17993         (fts_build): When not calling fts_stat, call set_stat_type
17994         to propagate dirent.d_type info to fts_read caller.
17995         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17996         fts_statp->st_mode type information may be valid.
17997
17998 2008-11-28  Simon Josefsson  <simon@josefsson.org>
17999
18000         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
18001         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
18002         <sds@gnu.org>.
18003
18004 2008-11-20  Bruno Haible  <bruno@clisp.org>
18005
18006         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
18007         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
18008         INCLUDE_NEXT.
18009         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
18010         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
18011         * modules/math (Makefile.am): Substitute
18012         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
18013         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18014
18015 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
18016             Bruno Haible  <bruno@clisp.org>
18017
18018         * lib/stdint.in.h: Define all type macros so that their expansion is
18019         a single typedef'ed token. Fixes a compilation failure in Boost which
18020         does "using ::int8_t;".
18021
18022 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18023
18024         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
18025         gl_MANYWARN_ALL_GCC.
18026         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
18027         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
18028         * modules/manywarnings: New file.
18029         * MODULES.html.sh: Mention manywarnings module.
18030
18031 2008-11-18  Bruno Haible  <bruno@clisp.org>
18032
18033         * doc/gnulib-tool.texi (Unit tests): New section.
18034
18035 2008-11-18  Simon Josefsson  <simon@josefsson.org>
18036
18037         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
18038         paths like 'lib/po/foo.po'.
18039
18040 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18041
18042         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
18043         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
18044
18045 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18046
18047         * m4/warnings.m4: Use CPPFLAGS to really check whether the
18048         parameter works.
18049
18050 2008-11-17  Simon Josefsson  <simon@josefsson.org>
18051
18052         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
18053
18054 2008-11-17  Bruce Korb  <bkorb@gnu.org>
18055
18056         * modules/parse-duration-tests: New file.
18057         * tests/test-parse-duration.sh: New file.
18058         * tests/test-parse-duration.c: New file.
18059
18060         New module 'parse-duration'.
18061         * lib/parse-duration.h: New file.
18062         * lib/parse-duration.c: New file.
18063         * modules/parse-duration: New file.
18064
18065 2008-11-17  Bruno Haible  <bruno@clisp.org>
18066
18067         * tests/test-select-out.sh: Comment out the first pipe test.
18068         Reported by Simon Josefsson.
18069
18070 2008-11-17  Bruno Haible  <bruno@clisp.org>
18071
18072         * modules/getaddrinfo (Depends-on): Add servent, hostent.
18073         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
18074         gl_HOSTENT.
18075
18076 2008-11-17  Bruno Haible  <bruno@clisp.org>
18077
18078         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
18079         -lnetwork and -lnet. Needed for Haiku and BeOS.
18080
18081 2008-11-16  Bruno Haible  <bruno@clisp.org>
18082
18083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
18084
18085 2008-11-16  Bruno Haible  <bruno@clisp.org>
18086
18087         Avoid test failure on Haiku.
18088         * tests/test-fsync.c: Include <errno.h>.
18089         (main): Don't require that fsync (0) fails.
18090
18091 2008-11-15  Bruno Haible  <bruno@clisp.org>
18092
18093         New module 'hostent'.
18094         * modules/hostent: New file.
18095         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
18096
18097 2008-11-15  Bruno Haible  <bruno@clisp.org>
18098
18099         New module 'servent'.
18100         * modules/servent: New file.
18101         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
18102
18103 2008-11-15  Bruno Haible  <bruno@clisp.org>
18104
18105         Avoid generating same test program with two different rules.
18106         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
18107         test-frexp to test-frexp-nolibm.
18108         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
18109         test-frexpl to test-frexpl-nolibm.
18110
18111 2008-11-15  Bruno Haible  <bruno@clisp.org>
18112
18113         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
18114         $(FREXPL_LIBM).
18115
18116 2008-11-15  Bruno Haible  <bruno@clisp.org>
18117
18118         * lib/netdb.in.h: Activate the definitions also when the system's
18119         <netdb.h> has 'struct addrinfo'.
18120         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
18121         EAI_OVERFLOW or AI_NUMERICSERV.
18122         * doc/posix-headers/netdb.texi: Document the problem.
18123
18124 2008-11-15  Bruno Haible  <bruno@clisp.org>
18125
18126         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
18127
18128         Make the 'sched' module work on platforms where <sched.h> exists but
18129         is incomplete (such as Haiku).
18130         * lib/sched.in.h; Include the system's <sched.h> if it exists.
18131         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
18132         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
18133         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
18134         HAVE_STRUCT_SCHED_PARAM.
18135         * modules/sched (Depends-on): Add include_next.
18136         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
18137         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
18138         * doc/posix-headers/sched.texi: Document the issue.
18139
18140 2008-11-13  Jim Meyering  <meyering@redhat.com>
18141
18142         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
18143         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
18144         test would fail due to the difference in the Report bugs to ...
18145         line.  The expected address is empty, "<>", while the actual
18146         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
18147
18148 2008-11-12  Bruno Haible  <bruno@clisp.org>
18149
18150         lstat: don't compile lstat.c on systems lacking lstat
18151         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
18152         which don't have lstat; this is handled by lib/sys_stat.in.h already.
18153         Reported by Daniel P. Berrange via Jim Meyering.
18154
18155 2008-11-12  Jim Meyering  <meyering@redhat.com>
18156
18157         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
18158
18159 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18160
18161         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
18162         instead.
18163
18164 2008-11-12  Bruno Haible  <bruno@clisp.org>
18165
18166         * lib/unicodeio.c: Include unistr.h.
18167         (utf8_wctomb): Remove function.
18168         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
18169
18170 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18171
18172         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
18173         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
18174         <bruno@clisp.org>.
18175         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
18176
18177 2008-11-12  Simon Josefsson  <simon@josefsson.org>
18178
18179         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
18180         * doc/gnulib.texi: Add section for warnings.
18181
18182 2008-11-11  Bruno Haible  <bruno@clisp.org>
18183
18184         * lib/sockets.h: Add a comment.
18185
18186 2008-11-11  Karl Berry  <karl@gnu.org>
18187
18188         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
18189
18190 2008-11-11  Eric Blake  <ebb9@byu.net>
18191
18192         fdl.texi: avoid git symlinks
18193         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
18194
18195 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18196
18197         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
18198
18199 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18200
18201         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
18202         (gl_WARN_ADD): Substitute $2 if literal.
18203
18204 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18205
18206         * m4/warning.m4: Remove.
18207
18208 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
18209
18210         * m4/warnings.m4: Almost complete rewrite. :-)
18211
18212 2008-11-10  Simon Josefsson  <simon@josefsson.org>
18213
18214         * modules/warnings: New module.
18215         * m4/warnings.m4: New file.
18216         * MODULES.html.sh: Mention warnings module.
18217         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
18218         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18219
18220 2008-11-10  Eric Blake  <ebb9@byu.net>
18221
18222         fdl.texi: make a symlink to the latest version
18223         * doc/standards.texi: Revert today's earlier change.
18224         * doc/fdl-1.2.texi: Rename from old fdl.texi...
18225         * doc/fdl.texi: ...and replace this with a symlink to the newer
18226         fdl-1.3.texi.
18227
18228 2008-11-10  Bruno Haible  <bruno@clisp.org>
18229
18230         * tests/test-select-fd.c (main): Accept the result file name as fourth
18231         argument.
18232         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
18233         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
18234
18235 2008-11-10  Bruno Haible  <bruno@clisp.org>
18236
18237         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
18238         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
18239         as autoconf-substituted macros.
18240         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
18241         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
18242         gl_NETDB_H_DEFAULTS. Set these variables.
18243         * modules/netdb (Makefile.am): Substitute these variables.
18244
18245 2008-11-10  Eric Blake  <ebb9@byu.net>
18246
18247         standards.texi: include correct file for FDL 1.3
18248         * doc/standards.texi (GNU Free Documentation License): Change
18249         include file to pull in FDL 1.3, not 1.2.
18250
18251         fdl.texi: revert accidental change to license
18252         * doc/fdl.texi: This is FDL 1.2, not 1.3.
18253
18254 2008-11-10  Bruno Haible  <bruno@clisp.org>
18255
18256         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
18257         cross-compiling guesses also when the native compile gives no result.
18258
18259 2008-11-10  Bruno Haible  <bruno@clisp.org>
18260
18261         * lib/spawni.c (__spawni): Force variable into the stack.
18262
18263 2008-11-10  Bruno Haible  <bruno@clisp.org>
18264
18265         Add support for Haiku.
18266         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
18267         glibc and BeOS, but also on Haiku.
18268         * lib/fpurge.c (fpurge): Likewise.
18269         * lib/freadable.c (freadable): Likewise.
18270         * lib/freadahead.c (freadahead): Likewise.
18271         * lib/freading.c (freading): Likewise.
18272         * lib/freadptr.c (freadptr): Likewise.
18273         * lib/freadseek.c (freadptrinc): Likewise.
18274         * lib/fseeko.c (rpl_fseeko): Likewise.
18275         * lib/fseterr.c (fseterr): Likewise.
18276         * lib/fwritable.c (fwritable): Likewise.
18277         * lib/fwriting.c (fwriting): Likewise.
18278         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
18279
18280 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18281
18282         * lib/config.charset: Treat Haiku like BeOS.
18283
18284 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
18285
18286         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
18287         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
18288
18289 2008-11-08  Bruno Haible  <bruno@clisp.org>
18290
18291         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
18292         AC_CACHE_CHECK.
18293
18294 2008-11-08  Bruno Haible  <bruno@clisp.org>
18295
18296         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
18297
18298 2008-11-08  Bruno Haible  <bruno@clisp.org>
18299
18300         * tests/test-select-fd.c: New file.
18301         * tests/test-select-in.sh: New file.
18302         * tests/test-select-out.sh: New file.
18303         * tests/test-select-stdin.c: New file.
18304         * modules/select-tests (Files): Add the new files.
18305         (Depends-on): Add gettimeofday.
18306         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
18307         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
18308         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
18309
18310 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
18311             Bruno Haible  <bruno@clisp.org>
18312
18313         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
18314
18315 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
18316
18317         * build-aux/pmccabe2html: Added support for C++ source files.
18318
18319 2008-11-05  Ben Pfaff  <blp@gnu.org>
18320
18321         Fix lib/close.c build on Windows.
18322         * modules/close (Files): Add lib/w32sock.h.
18323
18324 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
18325
18326         Accept Bison's NEWS format.
18327         * build-aux/announce-gen (print_news_deltas): Tweak
18328         $re_prefix.
18329
18330 2008-11-04  Bruno Haible  <bruno@clisp.org>
18331
18332         * modules/random_r (Maintainer): Add glibc.
18333
18334 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18335
18336         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
18337         by karl@freefriends.org (Karl Berry).
18338         * doc/alloca.texi: Likewise.
18339         * doc/c-ctype.texi: Likewise.
18340         * doc/c-strcase.texi: Likewise.
18341         * doc/c-strcaseeq.texi: Likewise.
18342         * doc/c-strcasestr.texi: Likewise.
18343         * doc/c-strstr.texi: Likewise.
18344         * doc/c-strtod.texi: Likewise.
18345         * doc/c-strtold.texi: Likewise.
18346         * doc/ctime.texi: Likewise.
18347         * doc/error.texi: Likewise.
18348         * doc/fdl.texi: Likewise.
18349         * doc/gcd.texi: Likewise.
18350         * doc/getdate.texi: Likewise.
18351         * doc/gnulib-intro.texi: Likewise.
18352         * doc/gnulib-tool.texi: Likewise.
18353         * doc/gnulib.texi: Likewise.
18354         * doc/inet_ntoa.texi: Likewise.
18355         * doc/maintain.texi: Likewise.
18356         * doc/make-stds.texi: Likewise.
18357         * doc/quote.texi: Likewise.
18358         * doc/regexprops-generic.texi: Likewise.
18359         * doc/standards.texi: Likewise.
18360         * doc/verify.texi: Likewise.
18361         * doc/visibility.texi: Likewise.
18362         * doc/gnulib.texi (GNU Free Documentation License): Include
18363         fdl-1.3.texi instead of fdl.texi.
18364
18365 2008-11-04  Simon Josefsson  <simon@josefsson.org>
18366
18367         * doc/fdl-1.3.texi: New file, from
18368         <http://www.gnu.org/licenses/fdl-1.3.texi>.
18369         * modules/fdl-1.3: Add.
18370         * MODULES.html.sh: Add fdl-1.3.
18371
18372 2008-11-03  Bruno Haible  <bruno@clisp.org>
18373
18374         Make determination of absolute name of header file work with AIX xlc.
18375         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
18376         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
18377         preprocessing.
18378         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18379         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
18380
18381 2008-11-03  Simon Josefsson  <simon@josefsson.org>
18382
18383         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
18384         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
18385         <ludo@gnu.org>.
18386
18387 2008-11-02  Bruno Haible  <bruno@clisp.org>
18388
18389         Mark 'strpbrk' obsolete.
18390         * modules/strpbrk (Status, Notice): New sections.
18391         * modules/strtok_r (Depends-on): Add strpbrk.
18392
18393 2008-11-02  Bruno Haible  <bruno@clisp.org>
18394
18395         Mark 'strdup' obsolete.
18396         * modules/strdup (Status, Notice): New sections.
18397         * modules/findprog (Depends-on): Add strdup.
18398         * modules/getaddrinfo (Depends-on): Likewise.
18399         * modules/localename (Depends-on): Likewise.
18400         * modules/relocatable-lib (Depends-on): Likewise.
18401         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
18402         * modules/relocatable-prog (Depends-on): Likewise.
18403         * modules/trim (Depends-on): Likewise.
18404         * modules/unictype/gen-ctype (Depends-on): Likewise.
18405         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18406
18407 2008-11-02  Bruno Haible  <bruno@clisp.org>
18408
18409         Mark 'strcspn' obsolete.
18410         * modules/strcspn (Status, Notice): New sections.
18411
18412 2008-11-02  Bruno Haible  <bruno@clisp.org>
18413
18414         Mark 'rmdir' obsolete.
18415         * modules/rmdir (Status, Notice): New sections.
18416         * modules/clean-temp (Depends-on): Add rmdir.
18417         * modules/openat (Depends-on): Likewise.
18418
18419 2008-11-02  Bruno Haible  <bruno@clisp.org>
18420
18421         Mark 'raise' obsolete.
18422         * modules/raise (Status, Notice): New sections.
18423         (Include): Specify <signal.h>.
18424         * modules/stdio (Depends-on): Add raise.
18425         * modules/write (Depends-on): Likewise.
18426
18427 2008-11-02  Bruno Haible  <bruno@clisp.org>
18428
18429         Mark 'memset' obsolete.
18430         * modules/memset (Status, Notice): New sections.
18431
18432 2008-11-02  Bruno Haible  <bruno@clisp.org>
18433
18434         Mark 'memmove' obsolete.
18435         * modules/memmove (Status, Notice): New sections.
18436         * modules/argp (Depends-on): Add memmove.
18437         * modules/argz (Depends-on): Likewise.
18438         * modules/canonicalize (Depends-on): Likewise.
18439         * modules/canonicalize-lgpl (Depends-on): Likewise.
18440         * modules/fts (Depends-on): Likewise.
18441         * modules/getcwd (Depends-on): Likewise.
18442         * modules/human (Depends-on): Likewise.
18443         * modules/regex (Depends-on): Likewise.
18444         * modules/striconveh (Depends-on): Likewise.
18445         * modules/trim (Depends-on): Likewise.
18446         * modules/unistr/u8-move (Depends-on): Likewise.
18447         * modules/unistr/u16-move (Depends-on): Likewise.
18448         * modules/unistr/u32-move (Depends-on): Likewise.
18449
18450 2008-11-02  Bruno Haible  <bruno@clisp.org>
18451
18452         Mark 'memcpy' obsolete.
18453         * modules/memcpy (Status, Notice): New sections.
18454
18455 2008-11-02  Bruno Haible  <bruno@clisp.org>
18456
18457         Mark 'memcmp' obsolete.
18458         * modules/memcmp (Status, Notice): New sections.
18459         * modules/argmatch (Depends-on): Add memchr.
18460         * modules/backupfile (Depends-on): Likewise.
18461         * modules/c-strcasestr (Depends-on): Likewise.
18462         * modules/crypto/des (Depends-on): Likewise.
18463         * modules/csharpcomp (Depends-on): Likewise.
18464         * modules/fnmatch (Depends-on): Likewise.
18465         * modules/git-merge-changelog (Depends-on): Likewise.
18466         * modules/isnand (Depends-on): Likewise.
18467         * modules/isnand-nolibm (Depends-on): Likewise.
18468         * modules/isnanf (Depends-on): Likewise.
18469         * modules/isnanf-nolibm (Depends-on): Likewise.
18470         * modules/isnanl (Depends-on): Likewise.
18471         * modules/isnanl-nolibm (Depends-on): Likewise.
18472         * modules/mbchar (Depends-on): Likewise.
18473         * modules/memcoll (Depends-on): Likewise.
18474         * modules/quotearg (Depends-on): Likewise.
18475         * modules/regex (Depends-on): Likewise.
18476         * modules/relocatable-prog (Depends-on): Likewise.
18477         * modules/same (Depends-on): Likewise.
18478         * modules/signbit (Depends-on): Likewise.
18479         * modules/strcasestr-simple (Depends-on): Likewise.
18480         * modules/unictype/gen-ctype (Depends-on): Likewise.
18481         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18482         * modules/uniname/uniname (Depends-on): Likewise.
18483         * modules/unistr/u8-cmp (Depends-on): Likewise.
18484
18485 2008-11-02  Bruno Haible  <bruno@clisp.org>
18486
18487         Mark 'memchr' obsolete.
18488         * modules/memchr (Status, Notice): New sections.
18489         * modules/argp (Depends-on): Add memchr.
18490         * modules/base64 (Depends-on): Likewise.
18491         * modules/c-strcasestr (Depends-on): Likewise.
18492         * modules/chdir-long (Depends-on): Likewise.
18493         * modules/fnmatch (Depends-on): Likewise.
18494         * modules/getsubopt (Depends-on): Likewise.
18495         * modules/git-merge-changelog (Depends-on): Likewise.
18496         * modules/glob (Depends-on): Likewise.
18497         * modules/strcasestr-simple (Depends-on): Likewise.
18498         * modules/strnlen (Depends-on): Likewise.
18499
18500 2008-11-02  Bruno Haible  <bruno@clisp.org>
18501
18502         Mark 'atexit' obsolete.
18503         * modules/atexit (Status, Notice): New sections.
18504         * modules/chdir-long (Depends-on): Add atexit.
18505         * modules/wait-process (Depends-on): Likewise.
18506
18507 2008-11-02  Bruno Haible  <bruno@clisp.org>
18508
18509         * gnulib-tool: New option --with-obsolete.
18510         (func_usage): Document it.
18511         (func_modules_transitive_closure): Drop obsolete dependencies if
18512         incobsolete is not true.
18513         (func_import): Read and save the incobsolete variable to the cache.
18514
18515 2008-11-02  Bruno Haible  <bruno@clisp.org>
18516
18517         * modules/TEMPLATE-EXTENDED: New field 'Status'.
18518         * gnulib-tool: New option --extract-status.
18519         (func_usage): Document it.
18520         (sed_extract_prog): Recognize it.
18521         (func_get_status): New function.
18522
18523 2008-10-30  Simon Josefsson  <simon@josefsson.org>
18524
18525         * modules/sockets (License): Change from LGPL to LGPLv2+.
18526
18527 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18528
18529         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18530
18531 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18532
18533         * MODULES.html.sh (Support for systems lacking POSIX:2001):
18534         Mention times and sys_times.
18535         * modules/sys_times, modules/sys_times-tests: New modules.
18536         * modules/times, modules/times-tests: Likewise
18537         * m4/sys_times_h.m4: New file.
18538         * lib/sys_times.in.h: Likewise
18539         * lib/times.c: Likewise.
18540         * tests/test-sys_times.c: Likewise.
18541         * tests/test-times.c: Likewise.
18542         * doc/posix-headers/sys_times.texi: Update.
18543         * doc/posix-functions/times.texi: Update.
18544
18545 2008-10-28  Jim Meyering  <meyering@redhat.com>
18546
18547         * modules/tempname (Depends-on): Add lstat.
18548
18549         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18550
18551 2008-10-28  Simon Josefsson  <simon@josefsson.org>
18552
18553         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18554         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18555         using idiom used elsewhere in gnulib.
18556
18557 2008-10-27  Jim Meyering  <meyering@redhat.com>
18558
18559         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18560
18561 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18562
18563         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18564         TESTS_ENVIRONMENT, for shell scripts that needs to call built
18565         programs.
18566         * tests/test-argp-2.sh: Use $EXEEXT when needed.
18567
18568 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18569
18570         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18571
18572 2008-10-27  Bruno Haible  <bruno@clisp.org>
18573
18574         * tests/test-lstat.c: Include <stdio.h>.
18575
18576 2008-10-27  Simon Josefsson  <simon@josefsson.org>
18577
18578         * modules/lstat-tests: New module.
18579         * tests/test-lstat.c: New file.
18580
18581 2008-10-26  Jim Meyering  <meyering@redhat.com>
18582
18583         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18584
18585 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18586             Bruno Haible  <bruno@clisp.org>
18587
18588         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18589         * modules/configmake (Include): Add a note that the include must come
18590         after all system headers.
18591         * lib/javaversion.c: Include configmake.h after all other includes.
18592
18593 2008-10-26  Bruno Haible  <bruno@clisp.org>
18594
18595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18596         HAVE_STRUCT_RANDOM_DATA to 1.
18597         (gl_STDLIB_H): Simplify.
18598
18599 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18600
18601         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
18602         substitute HAVE_STRUCT_RANDOM_DATA.
18603         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18604         random_data.
18605         * modules/stdlib (Makefile.am): Substitute
18606         HAVE_STRUCT_RANDOM_DATA.
18607
18608 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18609
18610         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18611         * doc/gnulib-intro.texi (Copyright): Likewise.
18612
18613 2008-10-26  Simon Josefsson  <simon@josefsson.org>
18614
18615         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18616         findings.
18617
18618 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
18619             Bruno Haible  <bruno@clisp.org>
18620
18621         * lib/unistd.in.h: Include <winsock2.h>.
18622         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18623         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18624         Provide dummy declarations.
18625         (gethostname): Override.
18626         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18627         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18628         gl_PREREQ_SYS_H_WINSOCK2.
18629         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18630         * doc/posix-functions/gethostname.texi: More details.
18631
18632 2008-10-25  Bruno Haible  <bruno@clisp.org>
18633
18634         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18635         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18636         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18637
18638         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18639         here ...
18640         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18641         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18642         gl_UNISTD_H_DEFAULTS.
18643
18644 2008-10-25  Eric Blake  <ebb9@byu.net>
18645
18646         signbit: avoid spurious compiler failure
18647         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18648         declarations inside function.
18649
18650 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18651             Bruno Haible  <bruno@clisp.org>
18652
18653         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18654         * modules/random_r (Depends-on): Add stdint.
18655
18656 2008-10-24  Bruno Haible  <bruno@clisp.org>
18657
18658         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18659         Eggert.
18660         * modules/strerror (License): Likewise.
18661
18662 2008-10-24  Jim Meyering  <meyering@redhat.com>
18663
18664         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18665         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18666
18667 2008-10-24  Eric Blake  <ebb9@byu.net>
18668
18669         getgroups: fix compilation when getgroups is available
18670         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18671         but with <config.h> override of getgroups disabled.
18672
18673 2008-10-24  Simon Josefsson  <simon@josefsson.org>
18674
18675         * doc/gnulib.texi (Header files): Add note about C++ problems.
18676         Explained by Bruno Haible <bruno@clisp.org>.
18677
18678 2008-10-23  Bruno Haible  <bruno@clisp.org>
18679
18680         Define a dummy SA_NODEFER macro on Interix.
18681         * lib/signal.in.h (SA_NODEFER): Define fallback.
18682         Reported by Aleksey Cheusov <cheusov@tut.by> via
18683         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18684
18685 2008-10-23  Bruno Haible  <bruno@clisp.org>
18686
18687         * modules/freadahead (License): Change to LGPLv2+.
18688         Suggested by Simon Josefsson.
18689
18690 2008-10-23  Jim Meyering  <meyering@redhat.com>
18691
18692         random_r: new module
18693         * modules/random_r: New file.
18694         * m4/random_r.m4: New file.
18695         * lib/random_r.c: New file, from glibc.
18696         * modules/random_r-tests: New file.
18697         * tests/test-random_r.c: New file.
18698         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18699          Declare.
18700         (RAND_MAX): Define.
18701         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18702         * modules/stdlib: Substitute them, too.
18703         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18704         * doc/glibc-functions/initstate_r.texi: Mention the new module.
18705         * doc/glibc-functions/random_r.texi: Likewise.
18706         * doc/glibc-functions/setstate_r.texi: Likewise.
18707         * doc/glibc-functions/srandom_r.texi: Likewise.
18708         * config/srclist.txt: Mention it.
18709
18710 2008-10-23  David Lutterkort  <lutter@redhat.com>
18711
18712         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18713         link requirement
18714
18715 2008-10-23  Jim Meyering  <meyering@redhat.com>
18716
18717         selinux-h: mark parameters of stub functions as intentionally unused
18718         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18719         * lib/se-context.in.h: Likewise.
18720
18721 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18722
18723         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18724
18725 2008-10-22  Simon Josefsson  <simon@josefsson.org>
18726
18727         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18728
18729 2008-10-22  Eric Blake  <ebb9@byu.net>
18730
18731         glthread/thread: avoid compiler warning
18732         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18733         Add unreachable abort to silence compiler.
18734
18735 2008-10-22  Eric Blake  <ebb9@byu.net>
18736
18737         netdb: also supply struct addrinfo for cygwin 1.5.x
18738         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18739         older cygwin.
18740         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18741         cygwin.
18742         * doc/posix-headers/netdb.texi (netdb.h): Document this.
18743
18744 2008-10-22  Bruno Haible  <bruno@clisp.org>
18745
18746         * users.txt: Update entry about pspp.
18747
18748 2008-10-21  Bruno Haible  <bruno@clisp.org>
18749
18750         Simplification.
18751         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18752         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18753
18754         Simplification.
18755         * lib/ioctl.c (ioctl): Don't undefine.
18756         * lib/socket.c (socket): Don't undefine.
18757
18758         Remove unused module indicator macros.
18759         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18760         GNULIB_$1 as a C macro.
18761
18762         * doc/posix-functions/close.texi: Undo last change.
18763         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18764         Windows platforms.
18765
18766 2008-10-21  Bruno Haible  <bruno@clisp.org>
18767
18768         Add gethostname() declaration to <unistd.h>.
18769         * lib/unistd.in.h (gethostname): New declaration.
18770         * lib/gethostname.c: Include <unistd.h>.
18771         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18772         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18774         and HAVE_GETHOSTNAME.
18775         * modules/gethostname (Depends-on): Add unistd.
18776         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18777         (Include): Specify <unistd.h>.
18778         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18779         HAVE_GETHOSTNAME.
18780         * tests/test-gethostname.c: Include <unistd.h> first.
18781
18782 2008-10-21  Bruno Haible  <bruno@clisp.org>
18783
18784         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18785         * modules/select-tests (Depends-on): Likewise.
18786         Reported by Simon Josefsson.
18787
18788 2008-10-21  Simon Josefsson  <simon@josefsson.org>
18789
18790         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18791         * lib/accept.c: New file, based on winsock.c.
18792         * lib/bind.c: New file, based on winsock.c.
18793         * lib/connect.c: New file, based on winsock.c.
18794         * lib/getpeername.c: New file, based on winsock.c.
18795         * lib/getsockname.c: New file, based on winsock.c.
18796         * lib/getsockopt.c: New file, based on winsock.c.
18797         * lib/ioctl.c: New file, based on winsock.c.
18798         * lib/listen.c: New file, based on winsock.c.
18799         * lib/recv.c: New file, based on winsock.c.
18800         * lib/recvfrom.c: New file, based on winsock.c.
18801         * lib/send.c: New file, based on winsock.c.
18802         * lib/sendto.c: New file, based on winsock.c.
18803         * lib/setsockopt.c: New file, based on winsock.c.
18804         * lib/shutdown.c: New file, based on winsock.c.
18805         * lib/socket.c: New file, based on winsock.c.
18806         * lib/w32sock.h: New file, based on winsock.c.
18807         * lib/winsock.c: Remove file.
18808         * modules/accept: Likewise.
18809         * modules/bind: Likewise.
18810         * modules/connect: Likewise.
18811         * modules/getpeername: Likewise.
18812         * modules/getsockname: Likewise.
18813         * modules/getsockopt: Likewise.
18814         * modules/ioctl: Likewise.
18815         * modules/listen: Likewise.
18816         * modules/recv: Likewise.
18817         * modules/recvfrom: Likewise.
18818         * modules/send: Likewise.
18819         * modules/sendto: Likewise.
18820         * modules/setsockopt: Likewise.
18821         * modules/shutdown: Likewise.
18822         * modules/socket: Use socket.c instead of winsock.c.
18823         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18824         * doc/posix-functions/accept.texi: Doc fix.
18825         * doc/posix-functions/bind.texi: Doc fix.
18826         * doc/posix-functions/close.texi: Doc fix.
18827         * doc/posix-functions/connect.texi: Doc fix.
18828         * doc/posix-functions/getpeername.texi: Doc fix.
18829         * doc/posix-functions/getsockname.texi: Doc fix.
18830         * doc/posix-functions/getsockopt.texi: Doc fix.
18831         * doc/posix-functions/ioctl.texi: Doc fix.
18832         * doc/posix-functions/listen.texi: Doc fix.
18833         * doc/posix-functions/recv.texi: Doc fix.
18834         * doc/posix-functions/recvfrom.texi: Doc fix.
18835         * doc/posix-functions/send.texi: Doc fix.
18836         * doc/posix-functions/sendto.texi: Doc fix.
18837         * doc/posix-functions/setsockopt.texi: Doc fix.
18838         * doc/posix-functions/shutdown.texi: Doc fix.
18839         * doc/posix-functions/socket.texi: Doc fix.
18840
18841 2008-10-20  Bruno Haible  <bruno@clisp.org>
18842
18843         Take into account the role of SIGABRT_COMPAT on Windows 2008.
18844         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18845         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18846         as an alias for SIGABRT.
18847         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18848         (sigaction): Map it to SIGABRT.
18849         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18850
18851 2008-10-20  Bruno Haible  <bruno@clisp.org>
18852
18853         * lib/fts.c: Don't include lstat.h.
18854         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18855
18856         Move the lstat() declaration to <sys/stat.h>.
18857         * lib/lstat.h: Remove file.
18858         * lib/sys_stat.in.h: Add special invocation convention.
18859         (lstat): New declaration.
18860         * lib/lstat.c (orig_lstat): New function.
18861         (rpl_lstat): Use orig_lstat instead of lstat.
18862         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18863         AC_C_INLINE. Set REPLACE_LSTAT.
18864         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18865         and REPLACE_LSTAT.
18866         * modules/lstat (Files): Remove lib/lstat.h.
18867         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18868         (Include): Specify <sys/stat.h> instead of lstat.h.
18869         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18870         REPLACE_LSTAT.
18871         * NEWS: Mention the change.
18872
18873 2008-10-20  Bruno Haible  <bruno@clisp.org>
18874
18875         * modules/posix_spawn-tests: New file.
18876         * tests/test-posix_spawn3.c: New file.
18877
18878 2008-10-20  Bruno Haible  <bruno@clisp.org>
18879
18880         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18881         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18882         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18883         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18884         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18885
18886 2008-10-20  Bruno Haible  <bruno@clisp.org>
18887
18888         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18889         of posix_spawn on AIX 5.3.
18890
18891 2008-10-20  Bruno Haible  <bruno@clisp.org>
18892
18893         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18894
18895 2008-10-20  Bruno Haible  <bruno@clisp.org>
18896
18897         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18898         of AC_LANG_PROGRAM.
18899
18900 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18901
18902         * lib/netdb.in.h: Don't define GNU specific constants until they
18903         are supported or needed.  Reported by Bruno Haible
18904         <bruno@clisp.org>.
18905
18906 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18907
18908         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18909
18910 2008-10-20  Simon Josefsson  <simon@josefsson.org>
18911
18912         * lib/getaddrinfo.h: Remove file.
18913         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18914         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
18915         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18916         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18917         * modules/netdb: Substitute GNULIB_GETADDRINFO.
18918         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18919         * tests/test-getaddrinfo.c: Likewise.
18920         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
18921         * NEWS: Mention change.
18922
18923 2008-10-19  Bruno Haible  <bruno@clisp.org>
18924
18925         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18926
18927 2008-10-19  Bruno Haible  <bruno@clisp.org>
18928
18929         * lib/wait-process.c: Include simply <sys/wait.h>.
18930         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18931         WIFSTOPPED): Remove fallback definitions.
18932         * modules/wait-process (Depends-on): Add sys_wait.
18933
18934         New module 'sys_wait'.
18935         * modules/sys_wait: New file.
18936         * lib/sys_wait.in.h: New file, partially copied from
18937         lib/wait-process.c.
18938         * m4/sys_wait_h.m4: New file.
18939         * doc/posix-headers/sys_wait.texi: Mention the new module.
18940
18941 2008-10-19  Bruno Haible  <bruno@clisp.org>
18942
18943         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18944
18945 2008-10-19  Bruno Haible  <bruno@clisp.org>
18946
18947         Assume that waitpid() fills an 'int' status, not a 'union wait'.
18948         * lib/wait-process.c (WAIT_T): Remove type.
18949         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18950         (wait_subprocess): Update.
18951
18952 2008-10-19  Bruno Haible  <bruno@clisp.org>
18953
18954         New module 'atoll'.
18955         * modules/atoll: New file.
18956         * lib/stdlib.in.h (atoll): New declaration.
18957         * lib/atoll.c: New file, from glibc with modifications.
18958         * m4/atoll.m4: New file.
18959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18960         HAVE_ATOLL.
18961         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18962         * doc/posix-functions/atoll.texi: Mention the new module.
18963
18964 2008-10-19  Bruno Haible  <bruno@clisp.org>
18965
18966         Add strtoull() declaration to <stdlib.h>.
18967         * lib/stdlib.in.h (strtoull): New declaration.
18968         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18969         Set HAVE_STRTOULL.
18970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18971         HAVE_STRTOULL.
18972         * modules/strtoull (Depends-on): Add stdlib.
18973         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18974         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18975         HAVE_STRTOULL.
18976
18977 2008-10-19  Bruno Haible  <bruno@clisp.org>
18978
18979         Add strtoll() declaration to <stdlib.h>.
18980         * lib/stdlib.in.h (strtoll): New declaration.
18981         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18982         Set HAVE_STRTOLL.
18983         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18984         HAVE_STRTOLL.
18985         * modules/strtoll (Depends-on): Add stdlib.
18986         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18987         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18988
18989 2008-10-19  Bruno Haible  <bruno@clisp.org>
18990
18991         * modules/bcopy (Depends-on): Add strings.
18992         (Include): Specify <strings.h>.
18993
18994 2008-10-19  Bruno Haible  <bruno@clisp.org>
18995
18996         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18997
18998 2008-10-19  Bruno Haible  <bruno@clisp.org>
18999
19000         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
19001         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
19002         mingw.
19003
19004 2008-10-19  Bruno Haible  <bruno@clisp.org>
19005
19006         * lib/atanl.c: Don't include isnanl.h.
19007         * lib/cosl.c: Likewise.
19008         * lib/ldexpl.c: Likewise.
19009         * lib/logl.c: Likewise.
19010         * lib/sinl.c: Likewise.
19011         * lib/sqrtl.c: Likewise.
19012         * lib/tanl.c: Likewise.
19013
19014         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
19015         * lib/isnanf.h: Remove file.
19016         * lib/isnand.h: Remove file.
19017         * lib/isnanl.h: Remove file.
19018         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
19019         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
19020         macros.
19021         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
19022         HAVE_ISNANF, don't define it as a C macro.
19023         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
19024         HAVE_ISNAND, don't define it as a C macro.
19025         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
19026         HAVE_ISNANL, don't define it as a C macro.
19027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
19028         HAVE_ISNAN[FDL].
19029         * modules/isnanf (Files): Remove lib/isnanf.h.
19030         (Depends-on): Add math.
19031         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19032         (Include): Specify <math.h> instead of isnanf.h.
19033         * modules/isnand (Files): Remove lib/isnand.h.
19034         (Depends-on): Add math.
19035         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19036         (Include): Specify <math.h> instead of isnand.h.
19037         * modules/isnanl (Files): Remove lib/isnanl.h.
19038         (Depends-on): Add math.
19039         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19040         (Include): Specify <math.h> instead of isnanl.h.
19041         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
19042         HAVE_ISNAN[FDL].
19043         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
19044         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
19045         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
19046         * NEWS: Mention the change.
19047
19048 2008-10-18  Bruno Haible  <bruno@clisp.org>
19049
19050         Add getusershell(), setusershell(), endusershell() declarations to
19051         <unistd.h>.
19052         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
19053         declarations.
19054         * lib/getusershell.c: Include unistd.h.
19055         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
19056         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19057         HAVE_GETUSERSHELL.
19058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
19059         and HAVE_GETUSERSHELL.
19060         * modules/getusershell (Depends-on): Add unistd, extensions.
19061         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19062         (Include): Specify <unistd.h>.
19063         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
19064         HAVE_GETUSERSHELL.
19065
19066 2008-10-18  Bruno Haible  <bruno@clisp.org>
19067
19068         Add a getloadavg() declaration to <stdlib.h>.
19069         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
19070         getloadavg declaration.
19071         (getloadavg): New declaration.
19072         * lib/getloadavg.c: Include <stdlib.h> first.
19073         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
19074         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
19075         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
19076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
19077         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19078         * modules/getloadavg (Depends-on): Add stdlib, extensions.
19079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19080         (Include): Specify <stdlib.h>.
19081         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
19082         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
19083
19084 2008-10-18  Bruno Haible  <bruno@clisp.org>
19085
19086         * lib/dirchownmod.c: Don't include lchmod.h.
19087
19088         Move the lchmod() declaration to <sys/stat.h>.
19089         * lib/lchmod.h: Remove file.
19090         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
19091         (lchmod): New declaration, moved here from lib/lchown.h.
19092         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
19093         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
19094         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
19095         and HAVE_LCHMOD.
19096         * modules/lchmod (Files): Remove lib/lchmod.h.
19097         (Depends-on): Add sys_stat, extensions.
19098         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
19099         (Include): Specify <sys/stat.h> instead of lchmod.h.
19100         * modules/sys_stat (Depends-on): Add link-warning.
19101         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
19102         definition of GL_LINK_WARNING.
19103         * NEWS: Mention the change.
19104
19105 2008-10-18  Bruno Haible  <bruno@clisp.org>
19106
19107         * lib/fchdir.c: Don't include dirfd.h.
19108         * lib/fts.c: Likewise.
19109         * lib/getcwd.c: Likewise.
19110         * lib/glob.c: Likewise.
19111
19112         Move the dirfd() declaration to <dirent.h>.
19113         * lib/dirfd.h: Remove file.
19114         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
19115         (dirfd): New declaration.
19116         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
19117         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
19118         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
19119         HAVE_DECL_DIRFD.
19120         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
19121         HAVE_DECL_DIRFD.
19122         * modules/dirfd (Files): Remove lib/dirfd.h.
19123         (Depends-on): Add dirent, extensions.
19124         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
19125         (Include): Specify <dirent.h> instead of dirfd.h.
19126         * modules/dirent (Depends-on): Add link-warning.
19127         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
19128         definition of GL_LINK_WARNING.
19129         * NEWS: Mention the change.
19130
19131 2008-10-18  Bruno Haible  <bruno@clisp.org>
19132
19133         Move the euidaccess() declaration to <unistd.h>.
19134         * lib/euidaccess.h: Remove file.
19135         * lib/unistd.in.h (euidaccess): New declaration.
19136         * lib/euidaccess.c: Don't include euidaccess.h.
19137         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
19138         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
19139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
19140         and HAVE_EUIDACCESS.
19141         * modules/euidaccess (Files): Remove lib/euidaccess.h.
19142         (Depends-on): Add unistd.
19143         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19144         (Include): Specify <unistd.h> instead of euidaccess.h.
19145         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
19146         HAVE_EUIDACCESS.
19147         * NEWS: Mention the change.
19148
19149 2008-10-18  Bruno Haible  <bruno@clisp.org>
19150
19151         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
19152
19153         Move the getdomainname() declaration to <unistd.h>.
19154         * lib/getdomainname.h: Remove file.
19155         * lib/unistd.in.h (getdomainname): New declaration.
19156         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
19157         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19158         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
19159         HAVE_GETDOMAINNAME.
19160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19161         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
19162         * modules/getdomainname (Files): Remove lib/getdomainname.h.
19163         (Depends-on): Add unistd, extensions.
19164         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19165         (Includes): Specify <unistd.h> instead of getdomainname.h.
19166         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
19167         HAVE_GETDOMAINNAME.
19168         * NEWS: Mention the change.
19169
19170 2008-10-18  Bruno Haible  <bruno@clisp.org>
19171
19172         * modules/dirent: New file.
19173         * m4/dirent_h.m4: New file.
19174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
19175         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
19176         * modules/fchdir (Files): Remove lib/dirent.in.h.
19177         (Depends-on): Add dirent.
19178         (Makefile.am): Move rules to modules/dirent.
19179         * doc/posix-headers/dirent.texi: Mention the new module.
19180
19181 2008-10-18  Bruno Haible  <bruno@clisp.org>
19182
19183         Avoid -Wunused-parameter warnings in public gnulib header files.
19184         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
19185         macro.
19186         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
19187
19188 2008-10-18  Bruno Haible  <bruno@clisp.org>
19189
19190         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
19191         * doc/glibc-functions/error.texi: Mention the module 'error'.
19192         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
19193         * doc/glibc-functions/getdomainname.texi: Mention the module
19194         'getdomainname'.
19195         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
19196         * doc/glibc-functions/getpagesize.texi: Mention the module
19197         'getpagesize'.
19198         * doc/glibc-functions/getusershell.texi: Mention the module
19199         'getusershell'.
19200         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
19201         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
19202         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
19203         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
19204         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
19205         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
19206         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
19207         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
19208         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
19209         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
19210         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
19211         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
19212         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
19213         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
19214
19215 2008-10-17  Bruno Haible  <bruno@clisp.org>
19216
19217         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
19218         HP-UX and IRIX, use -0.0L.
19219         * tests/test-ceill.c (minus_zero): Likewise.
19220         * tests/test-floorl.c (minus_zero): Likewise.
19221         * tests/test-frexpl.c (minus_zero): Likewise.
19222         * tests/test-isnan.c (minus_zerol): Likewise.
19223         * tests/test-isnanl.h (minus_zero): Likewise.
19224         * tests/test-ldexpl.c (minus_zero): Likewise.
19225         * tests/test-roundl.c (minus_zero): Likewise.
19226         * tests/test-signbit.c (minus_zerol): Likewise.
19227         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
19228         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
19229         * tests/test-truncl.c (minus_zero): Likewise.
19230         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
19231         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
19232         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
19233         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
19234
19235 2008-10-17  Bruno Haible  <bruno@clisp.org>
19236
19237         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
19238         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
19239         that it gets activated only for gcc >= 3.0.
19240         * lib/dirent.in.h: Likewise.
19241         * lib/errno.in.h: Likewise.
19242         * lib/fcntl.in.h: Likewise.
19243         * lib/float.in.h: Likewise.
19244         * lib/iconv.in.h: Likewise.
19245         * lib/inttypes.in.h: Likewise.
19246         * lib/locale.in.h: Likewise.
19247         * lib/math.in.h: Likewise.
19248         * lib/netdb.in.h: Likewise.
19249         * lib/netinet_in.in.h: Likewise.
19250         * lib/search.in.h: Likewise.
19251         * lib/signal.in.h: Likewise.
19252         * lib/spawn.in.h: Likewise.
19253         * lib/stdarg.in.h: Likewise.
19254         * lib/stdint.in.h: Likewise.
19255         * lib/stdio.in.h: Likewise.
19256         * lib/stdlib.in.h: Likewise.
19257         * lib/string.in.h: Likewise.
19258         * lib/strings.in.h: Likewise.
19259         * lib/sys_file.in.h: Likewise.
19260         * lib/sys_ioctl.in.h: Likewise.
19261         * lib/sys_select.in.h: Likewise.
19262         * lib/sys_socket.in.h: Likewise.
19263         * lib/sys_stat.in.h: Likewise.
19264         * lib/sys_time.in.h: Likewise.
19265         * lib/sysexits.in.h: Likewise.
19266         * lib/time.in.h: Likewise.
19267         * lib/unistd.in.h: Likewise.
19268         * lib/wchar.in.h: Likewise.
19269         * lib/wctype.in.h: Likewise.
19270         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19271
19272 2008-10-17  Jim Meyering  <meyering@redhat.com>
19273
19274         ignore-value: don't depend on inline module
19275         * modules/ignore-value (Depends-on): Remove 'inline'.
19276         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
19277         Suggestion from Bruno Haible.
19278
19279 2008-10-17  Bruno Haible  <bruno@clisp.org>
19280
19281         New implementation of condition variables for Win32.
19282         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
19283         (gl_linked_waitqueue_t): New type.
19284         (gl_cond_t): Use it.
19285         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
19286         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
19287         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
19288         (glthread_cond_init_func, glthread_cond_wait_func,
19289         glthread_cond_timedwait_func, glthread_cond_signal_func,
19290         glthread_cond_broadcast_func, glthread_cond_destroy_func):
19291         Reimplemented on the basis of gl_linked_waitqueue_t.
19292         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
19293         gl_waitqueue_t.
19294         (gl_rwlock_t): Update.
19295         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
19296
19297 2008-10-17  Simon Josefsson  <simon@josefsson.org>
19298
19299         * modules/recvfrom (Depends-on): Add dependency on getpeername.
19300         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19301
19302 2008-10-17  Jim Meyering  <meyering@redhat.com>
19303
19304         ignore-value: new module
19305         * modules/ignore-value: New file.
19306         * lib/ignore-value.h: New file.
19307         * MODULES.html.sh (Compiler warning management): New section,
19308         just for this module.  More to come.
19309
19310 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19311
19312         open-safer.c: avoid 'signed and unsigned in conditional...' warning
19313         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
19314         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
19315
19316 2008-10-16  Jim Meyering  <meyering@redhat.com>
19317
19318         openat-die.c: avoid 'no previous prototype' warning
19319         * lib/openat-die.c: Include "openat.h".
19320         Reported by Reuben Thomas <rrt@sc3d.org>.
19321
19322 2008-10-16  Simon Josefsson  <simon@josefsson.org>
19323
19324         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
19325         * lib/netdb.in.h: Fix typo.
19326         Reported by Bruno Haible  <bruno@clisp.org>
19327
19328         * lib/netdb.in.h: Include sys/socket.h for platforms without
19329         netdb.h, to get structures like hostent on MinGW.
19330         * modules/netdb (Depends-on): Add sys_socket.
19331
19332 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19333
19334         * modules/netdb, modules/netdb-tests: New file.
19335         * m4/netdb_h.m4: New file.
19336         * lib/netdb.in.h: Add, currently just an empty file pending
19337         definitions.
19338         * tests/test-netdb.c: New file.
19339         * doc/posix-headers/netdb.texi: Mention that we replace it if
19340         needed.
19341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19342         netdb.
19343
19344 2008-10-15  Simon Josefsson  <simon@josefsson.org>
19345
19346         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
19347         with code.
19348
19349 2008-10-13  Bruno Haible  <bruno@clisp.org>
19350
19351         * lib/glthread/cond.c (glthread_cond_wait_func,
19352         glthread_cond_timedwait_func): Add a comment.
19353
19354 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19355
19356         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
19357         * tests/test-select.c: Likewise,
19358
19359 2008-10-13  Bruno Haible  <bruno@clisp.org>
19360
19361         * lib/glthread/cond.c (glthread_cond_wait_func,
19362         glthread_cond_timedwait_func): Fix variable name.
19363         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19364
19365 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
19366
19367         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
19368         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
19369         struct sockaddr.sa_len.
19370         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
19371
19372 2008-10-13  Simon Josefsson  <simon@josefsson.org>
19373
19374         * build-aux/pmccabe2html: Add css and css_url parameters.
19375
19376 2008-10-12  Bruno Haible  <bruno@clisp.org>
19377
19378         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
19379         calling aclx_get.
19380         Reported by Rainer Tammer <tammer@tammer.net>.
19381
19382 2008-10-12  Bruno Haible  <bruno@clisp.org>
19383
19384         Use msvcrt aware primitives for creation/termination of Win32 threads.
19385         * lib/glthread/thread.c: Include <process.h>.
19386         (glthread_create_func): Use _beginthreadex instead of CreateThread.
19387         (wrapper_func): Update signature.
19388         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
19389
19390 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19391             Bruno Haible  <bruno@clisp.org>
19392
19393         Provide a Win32 implementation of the 'cond' module.
19394         * lib/glthread/cond.h [USE_WIN32]: New implementation.
19395         * lib/glthread/cond.c (glthread_cond_init_func,
19396         glthread_cond_wait_func, glthread_cond_timedwait_func,
19397         glthread_cond_signal_func, glthread_cond_broadcast_func,
19398         glthread_cond_destroy_func) [USE_WIN32]: New functions.
19399         * modules/cond (Dependencies): Add gettimeofday.
19400
19401 2008-10-11  Bruno Haible  <bruno@clisp.org>
19402
19403         Make sleep work on older versions of mingw.
19404         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
19405         only whether it exists.
19406         * doc/posix-functions/sleep.texi: Mention the problem with older
19407         versions of mingw.
19408
19409 2008-10-11  Bruno Haible  <bruno@clisp.org>
19410
19411         New module 'shutdown'.
19412         * modules/shutdown: New file.
19413         * lib/sys_socket.in.h (shutdown): New declaration.
19414         * lib/winsock.c (shutdown): New function.
19415         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19416         GNULIB_SHUTDOWN.
19417         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
19418         * doc/posix-functions/shutdown.texi: Document the new module.
19419
19420 2008-10-11  Jim Meyering  <meyering@redhat.com>
19421
19422         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
19423
19424 2008-10-11  Bruno Haible  <bruno@clisp.org>
19425
19426         New module 'fclose'.
19427         * modules/fclose: New file.
19428         * lib/stdio.in.h (fclose): New declaration.
19429         * lib/fclose.c: New file.
19430         * m4/fclose.m4: New file.
19431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
19432         REPLACE_FCLOSE.
19433         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
19434         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
19435         REPLACE_FCLOSE.
19436         * modules/close (Depends-on): fclose.
19437         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
19438
19439 2008-10-11  Bruno Haible  <bruno@clisp.org>
19440
19441         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
19442         set errno and don't call _close.
19443
19444 2008-10-10  Bruno Haible  <bruno@clisp.org>
19445
19446         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
19447         ACL, not afterwards. Fixes test failure on Cygwin.
19448
19449 2008-10-09  Ben Pfaff  <blp@gnu.org>
19450
19451         * build-aux/announce-gen: Fix gnulib version related part of usage
19452         message.  Die with a useful error message if no tarballs are
19453         found.
19454
19455 2008-10-10  Jim Meyering  <meyering@redhat.com>
19456
19457         bootstrap: use git's --depth=N option only if it's supported
19458         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19459         recognize the --depth option.  Reported by Pádraig Brady.
19460
19461 2008-10-09  Bruno Haible  <bruno@clisp.org>
19462
19463         New module 'ioctl'.
19464         * modules/ioctl: New file.
19465         * lib/sys_socket.in.h (ioctl): Remove declaration.
19466         * lib/winsock.c: Include <sys/ioctl.h>.
19467         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19468         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19469         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19470         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19471         * doc/posix-functions/ioctl.texi: Mention the new module.
19472
19473 2008-10-09  Bruno Haible  <bruno@clisp.org>
19474
19475         New module 'sys_ioctl'.
19476         * lib/sys_ioctl.in.h: New file.
19477         * m4/sys_ioctl_h.m4: New file.
19478         * modules/sys_ioctl: New file.
19479         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19480
19481 2008-10-09  Bruno Haible  <bruno@clisp.org>
19482
19483         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19484         * lib/winsock.c: Include <stdarg.h>.
19485         (rpl_ioctl): Change to second argument 'int' and then varargs.
19486
19487 2008-10-09  Bruno Haible  <bruno@clisp.org>
19488
19489         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19490         when the sys_socket module is present and the system has <winsock2.h>.
19491
19492 2008-10-09  Bruno Haible  <bruno@clisp.org>
19493
19494         * doc/posix-functions/close.texi: Mention module 'close' instead of
19495         module 'sys_socket'.
19496
19497 2008-10-09  Bruno Haible  <bruno@clisp.org>
19498
19499         * doc/glibc-headers/sys_ioctl.texi: New file.
19500         * doc/gnulib.texi: Include it.
19501
19502 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19503             Bruno Haible  <bruno@clisp.org>
19504
19505         Combine the two replacements of 'close'.
19506         * lib/sys_socket.in.h (close): Define to a reminder to include
19507         <unistd.h>.
19508         (_gl_close_fd_maybe_socket): New declaration.
19509         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19510         * lib/winsock.c (close): Remove undefinition.
19511         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19512         needed for the gnulib module 'close'.
19513         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19514         define to an error symbol or to a warning, if suitable.
19515         * lib/close.c: Include <sys/socket.h>.
19516         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19517         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19518         UNISTD_H_HAVE_WINSOCK2_H.
19519         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19521         UNISTD_H_HAVE_WINSOCK2_H.
19522         * modules/sys_socket (Files): Add m4/unistd_h.m4.
19523         (configure.ac): Set a module indicator.
19524         (Makefile.am): Substitute GNULIB_CLOSE.
19525         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19526         * modules/poll-tests (Depends-on): Add close.
19527         * modules/select-tests (Depends-on): Likewise.
19528
19529 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19530             Bruno Haible  <bruno@clisp.org>
19531
19532         New module 'close'.
19533         * modules/close: New file.
19534         * lib/unistd.in.h (close): Move declaration out of the
19535         FCHDIR_REPLACEMENT scope.
19536         (_gl_unregister_fd): New declaration.
19537         * lib/close.c: New file.
19538         * lib/fchdir.c (rpl_close): Remove function.
19539         * m4/close.m4: New file.
19540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19541         close.
19542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19543         REPLACE_CLOSE.
19544         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19545         REPLACE_CLOSE.
19546         * modules/fchdir (Depends-on): Add close.
19547
19548 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19549             Bruno Haible  <bruno@clisp.org>
19550
19551         * lib/fcntl.in.h (open): Simplify conditionals.
19552         (_gl_register_fd): New declaration.
19553         * lib/fchdir.c (rpl_open): Remove function.
19554         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19555         also.
19556         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19558         open.
19559
19560 2008-10-09  Jim Meyering  <meyering@redhat.com>
19561
19562         GNUmakefile: use the more name-space-friendly "_version"
19563         * top/GNUmakefile (_dummy): Update.
19564         (_version): Rename from "version".
19565
19566 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19567             Bruno Haible  <bruno@clisp.org>
19568
19569         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19570         rpl_close.
19571         (_gl_register_fd): New function, extracted from rpl_open.
19572         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19573         (rpl_open, rpl_opendir): Use _gl_register_fd.
19574
19575 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
19576
19577         Fix organization of 'open' replacement.
19578         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19579         (gl_FUNC_OPEN): Use it.
19580         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19581
19582 2008-10-08  Bruno Haible  <bruno@clisp.org>
19583
19584         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19585
19586 2008-10-08  Simon Josefsson  <simon@josefsson.org>
19587
19588         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
19589         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19590         listen).
19591
19592 2008-10-08  Eric Blake  <ebb9@byu.net>
19593
19594         GNUmakefile: add 'make version' target
19595         * top/GNUmakefile (_curr-ver): Split version update rules...
19596         (version): ...into a target.
19597
19598 2008-10-07  Bruno Haible  <bruno@clisp.org>
19599
19600         Use a more portable replacement expression for -0.0L.
19601         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19602         instead of -0.0L. Fix m4 quotation.
19603
19604         * tests/test-signbit.c: Include <float.h>.
19605         (minus_zero): New variable.
19606         (test_signbitl): Use minus_zero instead of -zero.
19607         * modules/signbit-tests (Depends-on): Add float.
19608
19609         * tests/test-ceill.c: Include <float.h>.
19610         (zero): Remove variable.
19611         (minus_zero): New variable.
19612         (main): Use minus_zero instead of -zero.
19613         * modules/ceill-tests (Depends-on): Add float.
19614
19615         * tests/test-floorl.c: Include <float.h>.
19616         (zero): Remove variable.
19617         (minus_zero): New variable.
19618         (main): Use minus_zero instead of -zero.
19619         * modules/floorl-tests (Depends-on): Add float.
19620
19621         * tests/test-roundl.c: Include <float.h>.
19622         (zero): Remove variable.
19623         (minus_zero): New variable.
19624         (main): Use minus_zero instead of -zero.
19625         * modules/roundl-tests (Depends-on): Add float.
19626
19627         * tests/test-truncl.c: Include <float.h>.
19628         (zero): Remove variable.
19629         (minus_zero): New variable.
19630         (main): Use minus_zero instead of -zero.
19631         * modules/truncl-tests (Depends-on): Add float.
19632
19633         * tests/test-frexpl.c (zero): Remove variable.
19634         (minus_zero): New variable.
19635         (main): Use minus_zero instead of -zero.
19636         * modules/frexpl-tests (Depends-on): Add float.
19637
19638         * tests/test-isnan.c (zerol): Remove variable.
19639         (minus_zerol): New variable.
19640         (test_long_double): Use minus_zerol instead of -zerol.
19641         * modules/isnan-tests (Depends-on): Add float.
19642
19643         * tests/test-isnanl.h (zero): Remove variable.
19644         (minus_zero): New variable.
19645         (main): Use minus_zero instead of -zero.
19646         * modules/isnanl-nolibm-tests (Depends-on): Add float.
19647         * modules/isnanl-tests (Depends-on): Add float.
19648
19649         * tests/test-ldexpl.c (zero): Remove variable.
19650         (minus_zero): New variable.
19651         (main): Use minus_zero instead of -zero.
19652         * modules/ldexpl-tests (Depends-on): Add float.
19653
19654         * tests/test-snprintf-posix.h (zerol): Remove variable.
19655         (minus_zerol): New variable.
19656         (test_function): Use minus_zerol instead of -zerol.
19657         * modules/snprintf-posix-tests (Depends-on): Add float.
19658         * modules/vsnprintf-posix-tests (Depends-on): Add float.
19659
19660         * tests/test-sprintf-posix.h (zerol): Remove variable.
19661         (minus_zerol): New variable.
19662         (test_function): Use minus_zerol instead of -zerol.
19663         * modules/sprintf-posix-tests (Depends-on): Add float.
19664         * modules/vsprintf-posix-tests (Depends-on): Add float.
19665
19666         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19667         (minus_zerol): New variable.
19668         (test_function): Use minus_zerol instead of -zerol.
19669         * modules/vasnprintf-posix-tests (Depends-on): Add float.
19670
19671         * tests/test-vasprintf-posix.c (zerol): Remove variable.
19672         (minus_zerol): New variable.
19673         (test_function): Use minus_zerol instead of -zerol.
19674         * modules/vasprintf-posix-tests (Depends-on): Add float.
19675
19676 2008-10-07  Simon Josefsson  <simon@josefsson.org>
19677
19678         * MODULES.html.sh (Support for building documentation): Mention
19679         pmccabe2html.  Sort entries.
19680
19681         Add pmccabe2html module, from gnupdf.
19682         * build-aux/pmccabe.css: New file.
19683         * build-aux/pmccabe2html: New file.
19684         * m4/pmccabe2html.m4: New file.
19685         * modules/pmccabe2html: New file.
19686
19687 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
19688
19689         flock: new module
19690         * MODULES.html.sh: Add to list of modules.
19691         * lib/flock.c: flock implementation for Windows and Unix systems
19692         which have fcntl.
19693         * doc/glibc-functions/flock.texi: Update documentation.
19694         * lib/sys_file.in.h: <sys/file.h> header file.
19695         * m4/flock.m4: M4 macros.
19696         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19697         * modules/flock: flock module.
19698         * modules/flock-tests: flock tests module.
19699         * modules/sys_file: sys/file.h module.
19700         * tests/test-flock.c: test suite for flock.
19701
19702 2008-10-06  Jim Meyering  <meyering@redhat.com>
19703
19704         bootstrap: check for LT_INIT more portably still ;-)
19705         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19706         Spotted by Bruno Haible.
19707
19708 2008-10-06  Eric Blake  <ebb9@byu.net>
19709
19710         test-signbit: avoid tripping Irix cc bug on -0.0L
19711         * tests/test-signbit.c (minus_zerol): Delete, and replace with
19712         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
19713         entire testsuite consistent and avoids an Irix 6.2 bug.
19714
19715 2008-10-05  Bruno Haible  <bruno@clisp.org>
19716             Jim Meyering  <jim@meyering.net>
19717
19718         Add an option for ignoring EPIPE during close_stdout.
19719         * lib/closeout.h: Include <stdbool.h>.
19720         (close_stdout_set_ignore_EPIPE): New declaration.
19721         * lib/closeout.c: Include <stdbool.h>.
19722         (ignore_EPIPE): New variable.
19723         (close_stdout_set_ignore_EPIPE): New function.
19724         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19725         * lib/close-stream.c (close_stream): Mention the possible EPIPE
19726         failure.
19727         * modules/closeout (Depends-on): Add stdbool.
19728
19729 2008-10-05  Bruno Haible  <bruno@clisp.org>
19730
19731         * modules/accept: New file.
19732         * modules/bind: New file.
19733         * modules/connect: New file.
19734         * modules/getpeername: New file.
19735         * modules/getsockname: New file.
19736         * modules/getsockopt: New file.
19737         * modules/listen: New file.
19738         * modules/recv: New file.
19739         * modules/recvfrom: New file.
19740         * modules/send: New file.
19741         * modules/sendto: New file.
19742         * modules/setsockopt: New file.
19743         * modules/socket: New file.
19744         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19745         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19746         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19747         the particular module is requested. Add a link warning when the
19748         particular module is not requested.
19749         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19750         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19751         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19752         the particular module is requested.
19753         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19754         gl_SYS_SOCKET_H_DEFAULTS): New macros.
19755         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19756         * modules/sys_socket (Depends-on): Add link-warning.
19757         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19758         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19759         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19760         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19761         GL_LINK_WARNING.
19762         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19763         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19764         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19765         * doc/posix-functions/getpeername.texi: Mention the new module
19766         'getpeername'.
19767         * doc/posix-functions/getsockname.texi: Mention the new module
19768         'getsockname'.
19769         * doc/posix-functions/getsockopt.texi: Mention the new module
19770         'getsockopt'.
19771         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19772         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19773         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19774         * doc/posix-functions/send.texi: Mention the new module 'send'.
19775         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19776         * doc/posix-functions/setsockopt.texi: Mention the new module
19777         'setsockopt'.
19778         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19779         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19780         listen, connect, accept.
19781         * modules/select-tests (Depends-on): Likewise.
19782
19783 2008-10-05  Bruno Haible  <bruno@clisp.org>
19784
19785         * lib/winsock.c (strerror): Remove unused #undef.
19786         (rpl_close): Remove unused local variable.
19787
19788         * modules/sys_socket (Depends-on); Add errno.
19789
19790 2008-10-05  Bruno Haible  <bruno@clisp.org>
19791
19792         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19793         (select): Add a link warning when the 'select' module is not used.
19794         * modules/sys_select (Depends-on): Add link-warning.
19795         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19796         Suggested by Paolo Bonzini.
19797
19798 2008-10-05  Jim Meyering  <meyering@redhat.com>
19799
19800         bootstrap: check for LT_INIT more portably
19801         * build-aux/bootstrap: Avoid using grep -E, since it's not
19802         portable enough.  Suggestion from Bruno Haible.
19803
19804 2008-10-05  Bruno Haible  <bruno@clisp.org>
19805
19806         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19807         as being fixed by gnulib.
19808
19809 2008-10-05  Bruno Haible  <bruno@clisp.org>
19810
19811         * modules/select-tests: New file, mostly copied from
19812         modules/sys_select-tests.
19813         * tests/test-select.c: New file, mostly copied from
19814         tests/test-sys_select.c.
19815         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19816         * modules/sys_select-tests (Depends-on): Remove all dependencies.
19817         (Makefile.am): Remove test_sys_select_LDADD.
19818
19819         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19820         to an undefined symbol, for an error message.
19821         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19822         (gl_SYS_SELECT_H_DEFAULTS): New macro.
19823         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19824         winsock-select.c here.
19825         * modules/sys_select (Files): Remove lib/winsock-select.c.
19826         (Depends-on): Remove alloca.
19827         (Makefile.am): Substitute GNULIB_SELECT.
19828         * modules/select: New file.
19829         * doc/posix-functions/select.texi: Update.
19830
19831 2008-10-05  Bruno Haible  <bruno@clisp.org>
19832
19833         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19834         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19835         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19836         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19837         getdtablesize.
19838         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19839         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19840
19841 2008-10-05  Bruno Haible  <bruno@clisp.org>
19842
19843         * modules/getdtablesize-tests: New file.
19844         * tests/test-getdtablesize.c: New file.
19845
19846         New module 'getdtablesize'.
19847         * lib/unistd.in.h (getdtablesize): New declaration.
19848         * lib/getdtablesize.c: New file.
19849         * m4/getdtablesize.m4: New file.
19850         * modules/getdtablesize: New file.
19851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19852         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19853         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19854         HAVE_GETDTABLESIZE.
19855         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19856
19857 2008-10-05  Bruno Haible  <bruno@clisp.org>
19858
19859         * modules/sched (Makefile.am): Fix typo.
19860         Reported by Simon Josefsson.
19861
19862 2008-10-05  Jim Meyering  <meyering@redhat.com>
19863
19864         bootstrap: check for LT_INIT, too
19865         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19866         are deprecated.  Suggestion from Ralf Wildenhues.
19867
19868 2008-10-05  Bruno Haible  <bruno@clisp.org>
19869
19870         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19871         overriding them by ours.
19872         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19873
19874 2008-10-05  Jim Meyering  <meyering@redhat.com>
19875
19876         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19877         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19878         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
19879
19880 2008-10-04  Bruno Haible  <bruno@clisp.org>
19881
19882         * modules/dup2 (License): Change to LGPLv2+.
19883         * modules/sleep (License): Likewise.
19884         * modules/perror (License): Likewise.
19885         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19886         Blake.
19887         * modules/signal (License): Likewise.
19888         * modules/sigprocmask (License): Likewise.
19889         * modules/raise (License): Change to LGPLv2+, with approval by Jim
19890         Meyering.
19891
19892 2008-10-04  Bruno Haible  <bruno@clisp.org>
19893
19894         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19895         Reported by Rainer Tammer <tammer@tammer.net>.
19896
19897 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
19898             Bruno Haible  <bruno@clisp.org>
19899
19900         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19901         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19902         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19903
19904 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
19905
19906         filevercmp: new module
19907         * lib/filevercmp.h: New function filevercmp comparing version strings.
19908         * lib/filevercmp.c: Implementation of filevercmp function.
19909         * modules/filevercmp: Module metadata.
19910         * tests/test-filevercmp.c: Unit test for new module.
19911         * modules/filevercmp-tests: Unit test metadata.
19912         * MODULES.html.sh: Add filevercmp module.
19913
19914 2008-10-03  Bruno Haible  <bruno@clisp.org>
19915
19916         * lib/c-ctype.h: Add comment.
19917         Reported by Jim Meyering.
19918
19919 2008-10-02  Bruno Haible  <bruno@clisp.org>
19920
19921         * modules/posix_spawn-internal (Depends-on): Add 'open'.
19922
19923 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19924
19925         * build-aux/bootstrap: Allow renaming bootstrap, and change the
19926         name of bootstrap.conf accordingly.
19927
19928 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19929
19930         * build-aux/bootstrap: Install git-merge-changelog configuration
19931         items into .gitconfig if needed.
19932
19933 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
19934
19935         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19936         git repository, and initialize/update it accordingly.
19937
19938 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
19939
19940         * modules/fsync-tests: New file.
19941         * tests/test-fsync.c: New file.
19942
19943         New module 'fsync'.
19944         * lib/fsync.c: New file.
19945         * m4/fsync.m4: New file.
19946         * modules/fsync: New file.
19947         * lib/unistd.in.h (fsync): New declaration.
19948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19949         GNULIB_FSYNC and HAVE_FSYNC.
19950         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19951         * MODULES.html.sh (posix_functions): Add fsync.
19952         * doc/posix-functions/fsync.texi: Mention the new module.
19953
19954 2008-10-02  Jim Meyering  <meyering@redhat.com>
19955
19956         fts.c: sync with similar code from coreutils' remove.c
19957         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19958         Guard also with "#if defined __linux__", since for now at least,
19959         this code is Linux-kernel-specific.
19960
19961 2008-10-02  Jim Meyering  <meyering@redhat.com>
19962
19963         fts: bug fixes
19964         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19965         Include <sys/vfs.h>, not <sys/statfs.h>.
19966
19967         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19968         Include <sys/vfs.h>, not <sys/statfs.h>.
19969
19970 2008-10-01  Bruno Haible  <bruno@clisp.org>
19971
19972         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19973         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19974         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19975         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19976         * doc/posix-functions/posix_spawnp.texi: Likewise.
19977         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19978         whether posix_spawn actually works.
19979         * m4/pipe.m4 (gl_PIPE): Likewise.
19980         * modules/execute (Files): Add m4/posix_spawn.m4.
19981         * modules/pipe (Files): Add m4/posix_spawn.m4.
19982         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19983
19984 2008-10-01  Jim Meyering  <meyering@redhat.com>
19985
19986         remove trailing spaces
19987         * NEWS: Likewise.
19988         * lib/poll.c (poll): Likewise.
19989         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19990         * lib/winsock.c (rpl_close): Likewise.
19991         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19992         * modules/yield: Likewise.
19993         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19994         * tests/test-sys_select.c (connect_to_socket): Likewise.
19995
19996         fts.c: adjust a new interface to be more generally useful
19997         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19998         (fts_build): Adjust caller.
19999
20000 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20001
20002         * modules/cond-tests: New file.
20003         * tests/test-cond.c: New file.
20004
20005 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20006             Bruno Haible  <bruno@clisp.org>
20007
20008         * modules/cond (Dependencies): Add errno, time.
20009         * lib/glthread/cond.h: Include <time.h>.
20010         (gl_cond_define, gl_cond_define_initialized): Use the same definition
20011         across platforms.
20012
20013 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20014             Bruno Haible  <bruno@clisp.org>
20015
20016         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
20017
20018 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20019             Bruno Haible  <bruno@clisp.org>
20020
20021         * modules/tls-tests (Depends-on): Add thread, yield.
20022         (configure.ac): Remove all checks.
20023         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
20024         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20025         gl_thread_self): Remove definitions. Include glthread/thread.h and
20026         glthread/yield.h instead.
20027         (test_tls): Pass an additional NULL argument to gl_thread_join.
20028
20029 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20030             Bruno Haible  <bruno@clisp.org>
20031
20032         * modules/lock-tests (Depends-on): Add thread, yield.
20033         (configure.ac): Remove all checks.
20034         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
20035         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
20036         gl_thread_self): Remove definitions. Include glthread/thread.h and
20037         glthread/yield.h instead.
20038         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
20039         additional NULL argument to gl_thread_join.
20040
20041 2008-09-30  Bruno Haible  <bruno@clisp.org>
20042
20043         Fix the Win32 implementation of the 'thread' module.
20044         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
20045         pointer type.
20046         (gl_thread_self): Invoke gl_thread_self_func.
20047         (gl_thread_self_func): New declaration.
20048         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
20049         (do_init_self_key, init_self_key): New functions.
20050         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
20051         Remove some fields.
20052         (running_threads, running_lock): Remove variables.
20053         (get_current_thread_handle): New function.
20054         (gl_thread_self_func, wrapper_func, glthread_create_func,
20055         glthread_join_func, gl_thread_exit_func): Largely rewritten and
20056         simplified.
20057
20058 2008-09-30  Bruno Haible  <bruno@clisp.org>
20059
20060         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
20061         files.
20062
20063 2008-09-30  Jim Meyering  <meyering@redhat.com>
20064
20065         fts.m4: correct the test for statfs.f_type
20066         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
20067         when checking for statfs.f_type.
20068
20069 2008-09-15  Simon Josefsson  <simon@josefsson.org>
20070
20071         tests: avoid some compiler warnings
20072         * tests/test-memchr.c (main): Pass NULL indirectly.
20073         * tests/test-getdate.c (main): Remove unused variable 'ret'.
20074
20075 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
20076
20077         getdate.y: disallow countable dayshifts like "4 yesterday ago"
20078         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
20079         exactly specified dayshifts.
20080         (dayshift): New rule.
20081         (rel): Add dayshift.
20082         (relative_time_table) [tomorrow, yesterday, today, now]:
20083         Use tDAY_SHIFT in place of tDAY_UNIT.
20084         * tests/test-getdate.c: Add tests for now-disallowed countable
20085         dayshifts, e.g., "4 yesterday ago".
20086
20087 2008-09-29  Bruno Haible  <bruno@clisp.org>
20088
20089         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
20090         * tests/test-posix_spawn1.in.sh: Renamed from
20091         tests/test-posix_spawn.in.sh.
20092         * tests/test-posix_spawn2.c: New file.
20093         * tests/test-posix_spawn2.in.sh: New file.
20094         * modules/posix_spawnp-tests (Files): Update.
20095         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
20096
20097 2008-09-29  Bruno Haible  <bruno@clisp.org>
20098
20099         Propagate effects of putenv/setenv/unsetenv to child processes.
20100         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
20101         * lib/pipe.c (create_pipe): Likewise.
20102
20103 2008-09-29  Bruno Haible  <bruno@clisp.org>
20104
20105         Enable use of shell scripts as executables in mingw.
20106         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
20107         run the program as a shell script.
20108         * lib/pipe.c (create_pipe): Likewise.
20109         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
20110         resulting array.
20111
20112 2008-09-29  Eric Blake  <ebb9@byu.net>
20113
20114         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
20115
20116 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
20117
20118         * doc/posix-functions/accept.texi: Update mingw problems.
20119         * doc/posix-functions/bind.texi: Update mingw problems.
20120         * doc/posix-functions/close.texi: Update mingw problems.
20121         * doc/posix-functions/connect.texi: Update mingw problems.
20122         * doc/posix-functions/getpeername.texi: Update mingw problems.
20123         * doc/posix-functions/getsockname.texi: Update mingw problems.
20124         * doc/posix-functions/getsockopt.texi: Update mingw problems.
20125         * doc/posix-functions/ioctl.texi: Update mingw problems.
20126         * doc/posix-functions/listen.texi: Update mingw problems.
20127         * doc/posix-functions/recv.texi: Update mingw problems.
20128         * doc/posix-functions/recvfrom.texi: Update mingw problems.
20129         * doc/posix-functions/select.texi: Update mingw problems.
20130         * doc/posix-functions/send.texi: Update mingw problems.
20131         * doc/posix-functions/sendto.texi: Update mingw problems.
20132         * doc/posix-functions/setsockopt.texi: Update mingw problems.
20133         * doc/posix-functions/socket.texi: Update mingw problems.
20134
20135 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
20136             Bruno Haible  <bruno@clisp.org>
20137
20138         * lib/sys_select.in.h: Include sys/time.h.
20139         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
20140         * modules/sys_select: Depend on sys_time.
20141         * tests/test-sys_select.c: Test that sys/select.h defines struct
20142         timeval fully.
20143
20144 2008-09-29  Bruno Haible  <bruno@clisp.org>
20145
20146         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
20147         * lib/sys_select.in.h: Likewise.
20148
20149 2008-09-29  Bruno Haible  <bruno@clisp.org>
20150
20151         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
20152
20153 2008-09-29  Bruno Haible  <bruno@clisp.org>
20154
20155         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
20156         Set LIBSOCKET instead of augmenting LIBS.
20157         * modules/sockets (Link): New section.
20158         * modules/sockets-tests (test_sockets_LDADD): New variable.
20159         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
20160         * modules/poll-tests (test_poll_LDADD): New variable.
20161         * NEWS: Document the change.
20162
20163 2008-09-29  Bruno Haible  <bruno@clisp.org>
20164
20165         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
20166         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
20167         ARPA_INET_H directly.
20168         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
20169
20170 2008-09-28  Bruno Haible  <bruno@clisp.org>
20171
20172         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
20173         from gl_HEADER_SYS_SOCKET.
20174         (gl_HEADER_SYS_SOCKET): Invoke it.
20175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20176
20177 2008-09-28  Bruno Haible  <bruno@clisp.org>
20178
20179         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
20180         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
20181         Needed on OSF/1 4.0.
20182
20183 2008-09-28  Bruno Haible  <bruno@clisp.org>
20184
20185         Override open more carefully.
20186         * lib/open.c (orig_open): New function.
20187         (rpl_open): Use orig_open instead of open.
20188         * lib/fcntl.in.h: Add special invocation convention.
20189         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
20190         (gl_FUNC_OPEN): Invoke it.
20191
20192         Override freopen more carefully.
20193         * lib/freopen.c (orig_freopen): New function.
20194         (rpl_freopen): Use orig_freopen instead of freopen.
20195         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
20196         (gl_FUNC_FREOPEN): Invoke it.
20197
20198         Override fopen more carefully.
20199         * lib/fopen.c (orig_fopen): New function.
20200         (rpl_fopen): Use orig_fopen instead of fopen.
20201         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
20202         (gl_FUNC_FOPEN): Invoke it.
20203         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
20204
20205 2008-09-28  Bruno Haible  <bruno@clisp.org>
20206
20207         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
20208         SIGPIPE.
20209
20210 2008-09-28  Bruno Haible  <bruno@clisp.org>
20211
20212         * tests/test-sigaction.c (handler, main): Disable the check whether
20213         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
20214         glibc systems with LinuxThreads.
20215
20216 2008-09-28  Bruno Haible  <bruno@clisp.org>
20217
20218         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
20219
20220         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
20221         with AIX xlc.
20222         * lib/fcntl.in.h (open): Likewise.
20223         Reported by Rainer Tammer <tammer@tammer.net>.
20224
20225 2008-09-28  Bruno Haible  <bruno@clisp.org>
20226
20227         * modules/posix_spawnp-tests: New file.
20228         * tests/test-posix_spawn.c: New file.
20229         * tests/test-posix_spawn.in.sh: New file.
20230
20231         New module 'posix_spawnp'.
20232         * modules/posix_spawnp: New file.
20233         * lib/spawnp.c: New file, from GNU libc with modifications.
20234         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
20235
20236         New module 'posix_spawn'.
20237         * modules/posix_spawn: New file.
20238         * lib/spawn.c: New file, from GNU libc with modifications.
20239         * doc/posix-functions/posix_spawn.texi: Mention the new module.
20240
20241         New module 'posix_spawnattr_destroy'.
20242         * modules/posix_spawnattr_destroy: New file.
20243         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
20244         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
20245         module.
20246
20247         New module 'posix_spawnattr_setsigmask'.
20248         * modules/posix_spawnattr_setsigmask: New file.
20249         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
20250         modifications.
20251         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
20252         new module.
20253
20254         New module 'posix_spawnattr_getsigmask'.
20255         * modules/posix_spawnattr_getsigmask: New file.
20256         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
20257         modifications.
20258         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
20259         new module.
20260
20261         New module 'posix_spawnattr_setsigdefault'.
20262         * modules/posix_spawnattr_setsigdefault: New file.
20263         * lib/spawnattr_setdefault.c: New file, from GNU libc with
20264         modifications.
20265         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
20266         new module.
20267
20268         New module 'posix_spawnattr_getsigdefault'.
20269         * modules/posix_spawnattr_getsigdefault: New file.
20270         * lib/spawnattr_getdefault.c: New file, from GNU libc with
20271         modifications.
20272         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
20273         new module.
20274
20275         New module 'posix_spawnattr_setschedpolicy'.
20276         * modules/posix_spawnattr_setschedpolicy: New file.
20277         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
20278         modifications.
20279         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
20280         new module.
20281
20282         New module 'posix_spawnattr_getschedpolicy'.
20283         * modules/posix_spawnattr_getschedpolicy: New file.
20284         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
20285         modifications.
20286         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
20287         new module.
20288
20289         New module 'posix_spawnattr_setschedparam'.
20290         * modules/posix_spawnattr_setschedparam: New file.
20291         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
20292         modifications.
20293         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
20294         new module.
20295
20296         New module 'posix_spawnattr_getschedparam'.
20297         * modules/posix_spawnattr_getschedparam: New file.
20298         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
20299         modifications.
20300         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
20301         new module.
20302
20303         New module 'posix_spawnattr_setpgroup'.
20304         * modules/posix_spawnattr_setpgroup: New file.
20305         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
20306         modifications.
20307         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
20308         module.
20309
20310         New module 'posix_spawnattr_getpgroup'.
20311         * modules/posix_spawnattr_getpgroup: New file.
20312         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
20313         modifications.
20314         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
20315         module.
20316
20317         New module 'posix_spawnattr_setflags'.
20318         * modules/posix_spawnattr_setflags: New file.
20319         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
20320         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
20321         module.
20322
20323         New module 'posix_spawnattr_getflags'.
20324         * modules/posix_spawnattr_getflags: New file.
20325         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
20326         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
20327         module.
20328
20329         New module 'posix_spawnattr_init'.
20330         * modules/posix_spawnattr_init: New file.
20331         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
20332         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
20333         module.
20334
20335         New module 'posix_spawn_file_actions_destroy'.
20336         * modules/posix_spawn_file_actions_destroy: New file.
20337         * lib/spawn_faction_destroy.c: New file, from GNU libc with
20338         modifications.
20339         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
20340         the new module.
20341
20342         New module 'posix_spawn_file_actions_addopen'.
20343         * modules/posix_spawn_file_actions_addopen: New file.
20344         * lib/spawn_faction_addopen.c: New file, from GNU libc with
20345         modifications.
20346         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
20347         the new module.
20348
20349         New module 'posix_spawn_file_actions_adddup2'.
20350         * modules/posix_spawn_file_actions_adddup2: New file.
20351         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
20352         modifications.
20353         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
20354         the new module.
20355
20356         New module 'posix_spawn_file_actions_addclose'.
20357         * modules/posix_spawn_file_actions_addclose: New file.
20358         * lib/spawn_faction_addclose.c: New file, from GNU libc with
20359         modifications.
20360         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
20361         the new module.
20362
20363         New module 'posix_spawn_file_actions_init'.
20364         * modules/posix_spawn_file_actions_init: New file.
20365         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
20366         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
20367         new module.
20368
20369         New module 'posix_spawn-internal'.
20370         * modules/posix_spawn-internal: New file.
20371         * lib/spawn_int.h: New file, from GNU libc with modifications.
20372         * lib/spawni.c: New file, from GNU libc with modifications.
20373         * m4/posix_spawn.m4: New file.
20374
20375         New module 'spawn'.
20376         * modules/spawn: New file.
20377         * lib/spawn.in.h: New file, from GNU libc with modifications.
20378         * m4/spawn_h.m4: New file.
20379         * doc/posix-headers/spawn.texi: Mention the new module.
20380
20381 2008-09-28  Bruno Haible  <bruno@clisp.org>
20382
20383         * modules/sched-tests: New file.
20384         * tests/test-sched.c: New file.
20385
20386         New module 'sched'.
20387         * modules/sched: New file.
20388         * lib/sched.in.h: New file.
20389         * m4/sched_h.m4: New file.
20390         * doc/posix-headers/sched.texi: Mention the new module.
20391
20392 2008-09-27  Eric Blake  <ebb9@byu.net>
20393
20394         Fix previous patch, and tweak references to $0.
20395         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
20396         (func_version, func_gnulib_dir): Don't call this program
20397         gnulib-tool.
20398         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
20399         with using $0 in function.
20400         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
20401         (func_fatal_error): Reuse the name the user invoked us with.
20402
20403 2008-09-27  Bruno Haible  <bruno@clisp.org>
20404
20405         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
20406         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
20407         (gl_ICONV_H): Not here.
20408         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
20409         instead of assigning ICONV_H directly.
20410
20411         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
20412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
20413         WCHAR_H directly.
20414
20415 2008-09-27  Bruno Haible  <bruno@clisp.org>
20416
20417         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
20418         * modules/arpa_inet (Depends-on): Add link-warning.
20419         (Makefile.am): Insert the definition of GL_LINK-WARNING.
20420         * modules/unistd (Makefile.am): Likewise.
20421
20422 2008-09-26  Bruno Haible  <bruno@clisp.org>
20423
20424         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
20425         variables.
20426         (func_version): Essentially copied from gnulib-tool.
20427         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
20428         func_readlink): Copied from gnulib-tool.
20429
20430 2008-09-26  Bruno Haible  <bruno@clisp.org>
20431
20432         * gnulib-tool (func_version): Change directory to $gnulib_dir before
20433         invoking git-version-gen.
20434
20435 2008-09-26  Bruno Haible  <bruno@clisp.org>
20436
20437         * posix-modules: Update to directory names changed on 2008-01-19.
20438         Remove commas in output before splitting into words. No more need to
20439         avoid 'ftruncate' since 2007-02-19.
20440
20441 2008-09-26  Bruno Haible  <bruno@clisp.org>
20442
20443         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
20444
20445 2008-09-26  Bruno Haible  <bruno@clisp.org>
20446
20447         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20448         * modules/fwriteerror (Depends-on): Add errno.
20449
20450 2008-09-26  Bruno Haible  <bruno@clisp.org>
20451
20452         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20453         * tests/test-vc-list-files-cvs.sh: Likewise.
20454
20455 2008-09-26  Bruno Haible  <bruno@clisp.org>
20456
20457         * doc/posix-headers/sys_resource.texi: Reorder items.
20458
20459 2008-09-26  Jim Meyering  <meyering@redhat.com>
20460
20461         fts: tweak inode comparison function
20462         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20463         inode numbers, as documented.
20464
20465         fts: sort dirent entries on inode number before traversing
20466         This avoids a quadratic, seek-related performance penalty when
20467         operating on a directory containing many entries (measurable at 10k;
20468         3.5 hours at 2 million entries with a cold cache) on certain types
20469         of file systems, including ext3 and ext4, but not tmpfs.
20470         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20471         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20472         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20473         (fs_handles_readdir_ordered_dirents_efficiently): New function.
20474         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20475         (fts_build): Set the stat.st_ino member from D_INO.
20476         If it is likely to be useful, sort dirent entries on inode number.
20477
20478         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20479         and the struct statfs.f_type member.
20480         * modules/fts (Depends-on): Add d-ino.
20481
20482 2008-09-26  Bruno Haible  <bruno@clisp.org>
20483
20484         * modules/sigpipe-die (Depends-on): Add sigpipe.
20485
20486         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20487         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20488         and GNULIB_STDIO_H_SIGPIPE are set.
20489         * lib/stdio-write.c: New file.
20490         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20491         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20492         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20493         REPLACE_STDIO_WRITE_FUNCS.
20494         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20495         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20496         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20497         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20498         * modules/stdio (Files): Add lib/stdio-write.c.
20499         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20500         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20501         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20502         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20503         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20504         REPLACE_FPRINTF_POSIX.
20505         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20506         REPLACE_PRINTF_POSIX.
20507         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20508         REPLACE_VFPRINTF_POSIX.
20509         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20510         REPLACE_VPRINTF_POSIX.
20511         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20512         SIGPIPE issue.
20513         * doc/posix-functions/fputc.texi: Likewise.
20514         * doc/posix-functions/fputs.texi: Likewise.
20515         * doc/posix-functions/fwrite.texi: Likewise.
20516         * doc/posix-functions/printf.texi: Likewise.
20517         * doc/posix-functions/putc.texi: Likewise.
20518         * doc/posix-functions/putchar.texi: Likewise.
20519         * doc/posix-functions/puts.texi: Likewise.
20520         * doc/posix-functions/vfprintf.texi: Likewise.
20521         * doc/posix-functions/vprintf.texi: Likewise.
20522
20523         * modules/safe-write (Depends-on): Add write.
20524
20525         * modules/sigpipe-tests: New file.
20526         * tests/test-sigpipe.c: New file.
20527         * tests/test-sigpipe.sh: New file.
20528
20529         * modules/write: New file.
20530         * lib/unistd.in.h: Include <sys/types.h>.
20531         (write): New declaration.
20532         * lib/write.c: New file.
20533         * m4/write.m4: New file.
20534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20535         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20536         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20537         GNULIB_WRITE, REPLACE_WRITE.
20538         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20539         and the SIGPIPE issue.
20540
20541         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20542         (raise): New declaration.
20543         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20544         (ext_signal): New function.
20545         (rpl_raise): New function.
20546         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20547         GNULIB_SIGNAL_H_SIGPIPE.
20548         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20549         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20550
20551         * modules/sigpipe: New file.
20552         * m4/sigpipe.m4: New file.
20553
20554 2008-09-25  Derek Price  <derek@ximbiot.com>
20555             Bruno Haible  <bruno@clisp.org>
20556
20557         * gnulib-tool (func_import): Report all license incompatibilities, not
20558         just the first one.
20559
20560 2008-09-25  Bruno Haible  <bruno@clisp.org>
20561
20562         * gnulib-tool (func_import): When computing the edits, consider not
20563         only the Makefile.ams that exist but also those that will be generated.
20564
20565 2008-09-25  Simon Josefsson  <simon@josefsson.org>
20566
20567         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20568         fixes gnulib-tool --test warning about duplicate dependency.
20569
20570 2008-09-25  Bruno Haible  <bruno@clisp.org>
20571
20572         * gnulib-tool: Don't ask the user to perform edits in the generated
20573         Makefile.ams.
20574         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20575         apply to the Makefile.am being generated.
20576         (func_emit_tests_Makefile_am): Execute edits that apply to the
20577         Makefile.am being generated.
20578         (func_import): Setup list of Makefile.am edits before emitting the
20579         Makefile.ams, not at the end.
20580         (func_create_testdir): Update.
20581         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20582
20583 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20584
20585         * gnulib-tool (func_import): Store the --tests-base option in the
20586         comment in gnulib-cache.m4.
20587
20588 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
20589
20590         * NEWS: Document increased portability that sys_select now provides.
20591
20592         * lib/sys_select.in.h: Install select wrapper.
20593         * lib/sys_socket.in.h: Use more descriptive name when there is no
20594         select wrapper.
20595         * lib/winsock-select.c: New.
20596         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20597         Require gl_HEADER_SYS_SOCKET.
20598         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20599         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20600         * tests/test-sys_select.c: Add functional tests.
20601
20602 2008-09-24  Eric Blake  <ebb9@byu.net>
20603
20604         open, fopen: close fd leak in last patch
20605         * lib/open.c (rpl_open): Close fd before returning error.
20606         * lib/fopen.c (rpl_fopen): Close fd before returning error.
20607         * doc/posix-functions/open.texi (open): Document that Irix also
20608         has the bug.
20609         * doc/posix-functions/fopen.texi (fopen): Likewise.
20610         Reported by Paolo Bonzini.
20611
20612 2008-09-24  Bruno Haible  <bruno@clisp.org>
20613
20614         Ensure that a filename ending in a slash cannot be used to access a
20615         non-directory.
20616         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20617         to check whether it's really a directory.
20618         * lib/fopen.c: Include fcntl.h, unistd.h.
20619         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20620         and fdopen().
20621         * modules/fopen (Depends-on): Add unistd.
20622         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20623         * tests/test-fopen.c (main): Likewise.
20624         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20625         * doc/posix-functions/fopen.texi: Likewise.
20626         Reported by Eric Blake.
20627
20628 2008-09-23  Eric Blake  <ebb9@byu.net>
20629
20630         c-stack: avoid compiler optimizations when provoking overflow
20631         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20632         recursion harder to optimize, to ensure a stack overflow occurs.
20633         * tests/test-c-stack.c (recurse): Likewise.
20634         Borrowed from libsigsegv.
20635
20636         c-stack: work around Irix sigaltstack bug
20637         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20638         whether sigaltstack uses wrong end of stack_t (copied in part from
20639         libsigsegv).
20640         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20641         Irix bug, without requiring an over-allocation.
20642         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20643         bug.
20644
20645         fopen: document mingw bug on directories
20646         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20647         not allowing a stream visiting a directory, even though reading
20648         from such a stream is not portable.
20649
20650 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20651
20652         * lib/poll.c: Rewrite.
20653         * modules/poll: Depend on alloca.
20654
20655 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20656
20657         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20658         instead define prototypes for a full set of wrappers.  Ensure
20659         that Cygwin does not use the compatibility code, which is only
20660         for MinGW.
20661         * lib/winsock.c: New.
20662         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20663         * modules/sys_socket: Add lib/winsock.c.
20664
20665         * modules/poll-tests: Add errno and perror.
20666         * tests/test-poll.c: Use ioctl, not ioctlsocket.
20667
20668 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
20669
20670         * tests/test-poll.c: Downgrade minimum needed Winsock version.
20671
20672 2008-09-23  Bruno Haible  <bruno@clisp.org>
20673
20674         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20675         * doc/glibc-functions/*: Likewise.
20676
20677 2008-09-23  Simon Josefsson  <simon@josefsson.org>
20678
20679         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20680         success.
20681
20682 2008-09-22  Eric Blake  <ebb9@byu.net>
20683             Bruno Haible  <bruno@clisp.org>
20684
20685         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20686         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20687         supply %A but mishandle pseudo-NaN.
20688         Reported by Simon Josefsson.
20689
20690 2008-09-21  Bruno Haible  <bruno@clisp.org>
20691
20692         * tests/test-lock.c (main): Tweak skip message.
20693         * tests/test-tls.c (main): Likewise.
20694
20695 2008-09-21  Bruno Haible  <bruno@clisp.org>
20696
20697         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20698         whether 'struct sigaction' has sa_sigaction here...
20699         (gl_PREREQ_SIG_HANDLER_H): ... not here.
20700         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20701
20702 2008-09-21  Bruno Haible  <bruno@clisp.org>
20703
20704         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20705         section.
20706         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20707         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20708         the new section.
20709         (Support for obsolete systems lacking POSIX:2001): New section.
20710         (String handling <string.h>): Move strdup to the new section.
20711         Suggested by Simon Josefsson and Paolo Bonzini.
20712
20713 2008-09-21  Bruno Haible  <bruno@clisp.org>
20714
20715         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20716         exponents in %e and %g results on 'long double'. Needed for mingw's
20717         improved *printf functions.
20718         * tests/test-vasprintf-posix.c (test_function): Likewise.
20719         * tests/test-snprintf-posix.h (test_function): Likewise.
20720         * tests/test-sprintf-posix.h (test_function): Likewise.
20721         Reported by Eric Blake.
20722
20723 2008-09-21  Bruno Haible  <bruno@clisp.org>
20724
20725         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20726         * tests/test-sprintf-posix.h (test_function): Likewise.
20727
20728 2008-09-21  Bruno Haible  <bruno@clisp.org>
20729
20730         * modules/getpass (Depends-on): Add strdup-posix.
20731
20732         New module 'strdup-posix'.
20733         * modules/strdup-posix: New file.
20734         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20735         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20737         REPLACE_STRDUP.
20738         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20739         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20740         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20741         strdup-posix.
20742
20743         * modules/strdup (Depends-on): Remove malloc-posix.
20744
20745 2008-09-20  Bruno Haible  <bruno@clisp.org>
20746
20747         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20748         Wildenhues.
20749
20750 2008-09-20  Bruno Haible  <bruno@clisp.org>
20751
20752         Ensure that wint_t gets defined on IRIX 5.3.
20753         * lib/wchar.in.h (wint_t): Define if not defined by the system.
20754         * lib/wctype.in.h (wint_t): Likewise.
20755         (__wctype_wint_t): Remove type.
20756         (isw*): Use wint_t instead of __wctype_wint_t.
20757         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20758         * modules/wchar (Files): Add m4/wint_t.m4.
20759         (Makefile.am): Substitute HAVE_WINT_T.
20760         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20761         * tests/test-wctype.c: Check that wint_t is defined.
20762         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20763         * doc/posix-headers/wctype.texi: Likewise.
20764         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20765
20766 2008-09-18  Bruno Haible  <bruno@clisp.org>
20767
20768         * gnulib-tool (func_exit): Update comment.
20769
20770 2008-09-18  Simon Josefsson  <simon@josefsson.org>
20771
20772         * modules/getaddrinfo (Depends-on): Remove strdup, this module
20773         assumes strdup exists and does not depend on strdup to return
20774         ENOMEM on out of memory conditions.
20775
20776 2008-09-18  Bruno Haible  <bruno@clisp.org>
20777
20778         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20779         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20780         digits for the exponent.
20781
20782 2008-09-18  Jim Meyering  <meyering@redhat.com>
20783             Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/vasnprintf.c (decimal_point_char): Define also if
20786         NEED_PRINTF_INFINITE_LONG_DOUBLE.
20787
20788 2008-09-16  Bruno Haible  <bruno@clisp.org>
20789         and Eric Blake  <ebb9@byu.net>
20790
20791         vasnprintf: support Irix 5.3
20792         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20793         that mishandle long double infinity.
20794         Reported by Tom G. Christensen.
20795
20796 2008-09-16  Bruno Haible  <bruno@clisp.org>
20797
20798         * doc/glibc-functions/scandir.texi: Mention the function is missing on
20799         Solaris 9.
20800         * doc/glibc-functions/alphasort.texi: Likewise.
20801         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20802
20803 2008-09-16  Jim Meyering  <meyering@redhat.com>
20804
20805         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20806         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20807         a umask modification leak out of a subshell.  Otherwise, the
20808         opensolaris /bin/sh would be accepted and thus cause unwarranted
20809         failures in the coreutils test suite.
20810
20811 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
20812
20813         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20814         to succeed.
20815
20816 2008-09-16  Jim Meyering  <meyering@redhat.com>
20817
20818         avoid spurious test failure when library is built without ACL support
20819         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20820         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20821         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20822         * tests/test-copy-acl.sh: Likewise.
20823
20824 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20825
20826         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20827         based on character occurrence counts.
20828
20829 2008-09-15  Eric Blake  <ebb9@byu.net>
20830
20831         tests: avoid some compiler warnings
20832         * tests/test-memchr.c (main): Pass NULL indirectly.
20833         * tests/test-closein.c (main): Avoid unused variable.
20834
20835 2008-09-15  Bruno Haible  <bruno@clisp.org>
20836
20837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20838         are missing on OpenBSD 4.0 individually.
20839         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20840
20841 2008-09-15  Bruno Haible  <bruno@clisp.org>
20842
20843         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20844         * doc/posix-functions/strerror.texi: Mention also Cygwin.
20845         * doc/posix-functions/perror.texi: Likewise.
20846         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20847         is missing.
20848         Reported by Eric Blake.
20849
20850         * lib/errno.in.h: Use replacement values >= 2000.
20851         Reported by Eric Blake.
20852
20853 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20854
20855         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20856         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20857         limit.
20858         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20859         compareseq was aborted.
20860
20861 2008-09-14  Bruno Haible  <bruno@clisp.org>
20862
20863         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20864         yvec_edit_count.
20865         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20866         (fstrcmp_bounded): Simplify result computation accordingly.
20867
20868 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20869
20870         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20871         (fstrcmp): Define in terms of fstrcmp_bounded.
20872         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20873         lower_bound argument.
20874         Return quickly if the result is certainly < lower_bound.
20875         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20876
20877 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20878
20879         * lib/diffseq.h (EARLY_ABORT): New macro.
20880         (compareseq): Change return type to bool. Return true when EARLY_ABORT
20881         evaluates to true.
20882
20883 2008-09-14  Bruno Haible  <bruno@clisp.org>
20884
20885         * modules/perror-tests: New file.
20886         * tests/test-perror.sh: New file.
20887         * tests/test-perror.c: New file.
20888
20889         New module 'perror'.
20890         * lib/stdio.in.h (perror): New declaration.
20891         * lib/perror.c: New file.
20892         * m4/perror.m4: New file.
20893         * modules/perror: New file.
20894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20895         * doc/posix-functions/perror.texi: Mention the perror module.
20896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20897         REPLACE_PERROR.
20898         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20899         REPLACE_PERROR.
20900
20901 2008-09-14  Bruno Haible  <bruno@clisp.org>
20902
20903         * modules/stdio (Makefile.am): Reorder to match the order in
20904         lib/stdio.in.h.
20905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20906
20907 2008-09-13  Bruno Haible  <bruno@clisp.org>
20908
20909         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20910
20911 2008-09-13  Bruno Haible  <bruno@clisp.org>
20912
20913         Extend strerror to cover the added errno values.
20914         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20915         (rpl_strerror): Provide error messages for the added errno values and
20916         for the WSA* values.
20917         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20918         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20919         strerror.
20920         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20921         * modules/strerror (Depends-on): Add errno.
20922         * doc/posix-functions/strerror.texi: Document the change.
20923         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20924         and EOVERFLOW.
20925
20926 2008-09-13  Bruno Haible  <bruno@clisp.org>
20927
20928         * modules/EOVERFLOW: Remove file.
20929         * m4/eoverflow.m4: Remove file.
20930         * modules/EOVERFLOW-tests: Remove file.
20931         * tests/test-EOVERFLOW.c: Remove file.
20932         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20933         * modules/ftell (Depends-on): Likewise.
20934         * modules/getdelim (Depends-on): Likewise.
20935         * modules/getugroups (Depends-on): Likewise.
20936         * modules/poll (Depends-on): Likewise.
20937         * modules/snprintf (Depends-on): Likewise.
20938         * modules/sprintf-posix (Depends-on): Likewise.
20939         * modules/vasnprintf (Depends-on): Likewise.
20940         * modules/vasprintf (Depends-on): Likewise.
20941         * modules/vfprintf-posix (Depends-on): Likewise.
20942         * modules/vsnprintf (Depends-on): Likewise.
20943         * modules/vsprintf-posix (Depends-on): Likewise.
20944         * modules/xvasprintf (Depends-on): Likewise.
20945         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20946         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20947         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20948         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20949         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20950         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20951         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20952         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20953         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20954         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20955         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20956         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20957         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20958         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20959         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20960         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20961         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20962         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20963         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20964         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20965         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20966         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20967         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20968         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20969         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20970         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20971         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20972         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20973         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20974         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20975         * MODULES.html.sh: Remove EOVERFLOW.
20976         * NEWS: Mention the change.
20977
20978 2008-09-13  Bruno Haible  <bruno@clisp.org>
20979
20980         * modules/errno-tests: New file.
20981         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20982
20983         * lib/errno.in.h: New file.
20984         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20985         * modules/errno: New file.
20986         * doc/posix-headers/errno.texi: Update documentation.
20987         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20988
20989 2008-09-13  Bruno Haible  <bruno@clisp.org>
20990
20991         * tests/test-poll.c: Use #if for native Windows, rather than testing
20992         __MSVCRT__.
20993
20994 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20995             Bruno Haible  <bruno@clisp.org>
20996
20997         * lib/glob.c: Don't include <pwd.h> on native Windows.
20998         (WINDOWS32): New macro.
20999         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
21000
21001 2008-09-13  Bruno Haible  <bruno@clisp.org>
21002
21003         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
21004         (ETIMEDOUT): Remove macro.
21005         (glthread_cond_timedwait_multithreaded): New declaration.
21006         (glthread_cond_timedwait): Use it.
21007         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
21008         (glthread_cond_timedwait_multithreaded): New function.
21009
21010 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21011
21012         * modules/poll-tests: Do not check for io.h.
21013         * tests/test-poll.c: Check for __MSVCRT__ instead.
21014
21015 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21016
21017         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
21018         * modules/poll-tests: Add inet_pton, stdbool, sockets.
21019         * tests/test-poll.c: Use them.  Use _pipe on Windows.
21020
21021 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
21022
21023         * modules/poll-tests: New.
21024         * tests/test-poll.c: New.
21025
21026 2008-09-12  Eric Blake  <ebb9@byu.net>
21027
21028         frexp: test for NetBSD failure on -0.0
21029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
21030         not all, bugs from NetBSD 3.0 have been fixed.
21031         * doc/posix-functions/frexp.texi (frexp): Document bug.
21032         Reported by Thomas Klausner.
21033
21034         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
21035         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
21036         literal -0.0.
21037         Reported by Jonathan C. Patschke <jp@centtech.com>.
21038
21039 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21040
21041         * lib/glthread/cond.h: Use dummy implementation also if
21042         USE_WIN32_THREADS.
21043
21044 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21045
21046         * modules/fnmatch-posix (License): Change to LGPLv2+.
21047         * modules/fnmatch-gnu (License): Likewise.
21048
21049 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21050
21051         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
21052
21053 2008-09-11  Jim Meyering  <meyering@redhat.com>
21054
21055         * users.txt: Add gtk-vnc.
21056
21057 2008-09-08  Simon Josefsson  <simon@josefsson.org>
21058
21059         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
21060         rotate amounts.
21061
21062         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
21063         required for 16-bit and 8-bit rotates.
21064         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
21065         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
21066         UINT8_MAX instead of hard-coded constants.
21067         Suggested by Paul Eggert.
21068
21069 2008-09-07  Bruno Haible  <bruno@clisp.org>
21070
21071         * tests/test-striconveh.c (main): Check behaviour when converting from
21072         UTF-7.
21073
21074         Make striconveh work better with stateful encodings.
21075         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
21076         that iconv does not increment the inptr when returning -1/EINVAL.
21077
21078 2008-09-07  Bruno Haible  <bruno@clisp.org>
21079
21080         * build-aux/config.rpath: Update according to libtool-2.2.6.
21081         * build-aux/config.libpath: Likewise.
21082
21083 2008-09-06  Bruno Haible  <bruno@clisp.org>
21084
21085         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
21086         * lib/freadptr.c (freadptr): Likewise.
21087         * lib/freadseek.c (freadptrinc): Likewise.
21088         Reported by Simon Josefsson.
21089
21090 2008-09-06  Bruno Haible  <bruno@clisp.org>
21091
21092         * modules/freadptr (License): Change to LGPLv2+.
21093         * modules/freadseek (License): Likewise.
21094         Suggested by Eric Blake.
21095
21096         * modules/memchr2 (License): Change to LGPLv2+.
21097         Approved by Eric Blake.
21098
21099 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21100             Bruno Haible  <bruno@clisp.org>
21101
21102         Make gnulib-tool work with native 'sed' on AIX.
21103         * gnulib-tool (sed_noop): New variable.
21104         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
21105         func_add_or_update, func_create_testdir): Use it to initialize sed
21106         script variables.
21107         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21108
21109 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
21110             Bruno Haible  <bruno@clisp.org>
21111
21112         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
21113         also works after #include directives.
21114
21115 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
21116
21117         getdate.y: reject an out-of-range timezone value
21118         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
21119         the range [-24...+24].  When specified with only one or two digits,
21120         * tests/test-getdate.c: Tests for the fix.
21121         * doc/getdate.texi: Document this change.
21122
21123 2008-09-03  Bruno Haible  <bruno@clisp.org>
21124
21125         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
21126
21127 2008-09-02  Simon Josefsson  <simon@josefsson.org>
21128
21129         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
21130         <bruce.korb@gmail.com> with ideas from Ben Pfaff
21131         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
21132         Blake <ebb9@byu.net>.
21133
21134         * tests/test-bitrotate.c: Add more test vectors.
21135
21136 2008-09-02  Eric Blake  <ebb9@byu.net>
21137
21138         vasnprintf-posix: handle large precision via %.*d
21139         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
21140         when handling it ourselves.
21141         * tests/test-vasnprintf-posix.c (test_function): Add test.
21142         * tests/test-snprintf-posix.h (test_function): Likewise.
21143         * tests/test-sprintf-posix.h (test_function): Likewise.
21144         * tests/test-vasprintf-posix.c (test_function): Likewise.
21145         Reported by Alain Guibert.
21146
21147 2008-09-01  Eric Blake  <ebb9@byu.net>
21148
21149         c-stack: make configure-time check more robust
21150         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
21151         successful sigaction call.
21152         Reported by Tom G. Christensen.
21153
21154 2008-09-01  Bruno Haible  <bruno@clisp.org>
21155
21156         New module 'findprog-lgpl'.
21157         * modules/findprog-lgpl: New file.
21158         * lib/findprog-lgpl.c: New file.
21159         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
21160         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
21161         to decide whether to use strdup or xstrdup, concatenated_filename or
21162         xconcatenated_filename.
21163
21164 2008-09-01  Bruno Haible  <bruno@clisp.org>
21165
21166         Split module 'concat-filename' into 'concat-filename' (LGPL) and
21167         'xconcat-filename' (GPL).
21168         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
21169         (License): Change to LGPLv2+.
21170         * modules/xconcat-filename: New file.
21171         * lib/concat-filename.h (concatenated_filename): Change specification.
21172         (xconcatenated_filename): New declaration.
21173         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
21174         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
21175         memory situations.
21176         * lib/xconcat-filename.c: New file.
21177         * NEWS: Mention the change.
21178         * lib/findprog.c: Include concat-filename.h, not filename.h.
21179         (find_in_path): Use xconcatenated_filename instead of
21180         concatenated_filename.
21181         * lib/javacomp.c: Include concat-filename.h, not filename.h.
21182         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
21183         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
21184         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
21185         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
21186         instead of concatenated_filename.
21187         * lib/javaexec.c: Include concat-filename.h, not filename.h.
21188         (execute_java_class): Use xconcatenated_filename instead of
21189         concatenated_filename.
21190         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
21191         * modules/javacomp (Depends-on): Likewise.
21192         * modules/javaexec (Depends-on): Likewise.
21193
21194 2008-09-01  Bruno Haible  <bruno@clisp.org>
21195
21196         Split module 'filename' into 'filename' and 'concat-filename'.
21197         * modules/filename: Keep only lib/filename.h.
21198         (License): Change to LGPLv2+.
21199         * modules/concat-filename: New file, extracted from modules/filename.
21200         * lib/filename.h (concatenated_filename): Remove declaration.
21201         * lib/concat-filename.h: New file, extracted from lib/filename.h.
21202         * lib/concat-filename.c: Include concat-filename.h.
21203         * NEWS: Mention the change.
21204
21205 2008-09-01  Simon Josefsson  <simon@josefsson.org>
21206
21207         * lib/bitrotate.h (rotl8, rotr8): Add.
21208
21209         * modules/bitrotate (configure.ac): Need
21210         AC_REQUIRE([AC_C_INLINE]).
21211         (Description): Mention stdint.h.  Reported by Bruno Haible
21212         <bruno@clisp.org>.
21213
21214         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
21215         Paolo Bonzini <bonzini@gnu.org>.
21216
21217 2008-08-31  Bruno Haible  <bruno@clisp.org>
21218
21219         Assume Solaris specific bi-arch conventions on Solaris systems.
21220         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
21221         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
21222         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
21223         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
21224         like acl_libdirstem.
21225         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
21226         acl_libdirstem.
21227         * NEWS: Mention the change.
21228         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
21229
21230 2008-08-31  Jim Meyering  <meyering@redhat.com>
21231
21232         * lib/strftime.h: Add comments describing the two added arguments.
21233
21234         remove duplicate #include directives
21235         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
21236         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
21237
21238 2008-08-31  Bruno Haible  <bruno@clisp.org>
21239
21240         New module 'sigpipe-die'.
21241         * modules/sigpipe-die: New file.
21242         * lib/sigpipe-die.h: New file.
21243         * lib/sigpipe-die.c: New file.
21244         * MODULES.html.sh (Signal handling): Add sigpipe-die.
21245
21246 2008-08-31  Bruno Haible  <bruno@clisp.org>
21247
21248         Don't override previously installed signal handlers.
21249         * lib/fatal-signal.c (saved_sigactions): New variable.
21250         (uninstall_handlers): Reset the signal to the saved handler, not
21251         to SIG_DFL (except when ignored).
21252         (install_handlers): Save the previous handlers.
21253
21254 2008-08-30  Bruno Haible  <bruno@clisp.org>
21255
21256         * gnulib-tool (func_reset_sigpipe): New function.
21257         (func_get_automake_snippet, func_modules_transitive_closure,
21258         func_import): Invoke it before a join command that reads from stdin,
21259         to avoid "echo: write error: Broken pipe" error messages on stderr.
21260         Reported by Sam Steingold <sds@gnu.org>.
21261
21262 2008-08-30  Bruno Haible  <bruno@clisp.org>
21263
21264         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
21265         Code copied from m4/open.m4.
21266         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
21267         access and the filename ends in a slash. Code copied from lib/open.c.
21268         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
21269         * tests/test-fopen.c (main): Check against bug with trailing slash.
21270
21271 2008-08-29  Bruno Haible  <bruno@clisp.org>
21272
21273         Avoid some "gcc -pedantic" warnings.
21274         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
21275         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
21276         * lib/dirent.in.h: Likewise.
21277         * lib/fcntl.in.h: Likewise.
21278         * lib/float.in.h: Likewise.
21279         * lib/iconv.in.h: Likewise.
21280         * lib/inttypes.in.h: Likewise.
21281         * lib/locale.in.h: Likewise.
21282         * lib/math.in.h: Likewise.
21283         * lib/netinet_in.in.h: Likewise.
21284         * lib/search.in.h: Likewise.
21285         * lib/signal.in.h: Likewise.
21286         * lib/stdarg.in.h: Likewise.
21287         * lib/stdint.in.h: Likewise.
21288         * lib/stdio.in.h: Likewise.
21289         * lib/stdlib.in.h: Likewise.
21290         * lib/string.in.h: Likewise.
21291         * lib/strings.in.h: Likewise.
21292         * lib/sys_select.in.h: Likewise.
21293         * lib/sys_socket.in.h: Likewise.
21294         * lib/sys_stat.in.h: Likewise.
21295         * lib/sys_time.in.h: Likewise.
21296         * lib/sysexits.in.h: Likewise.
21297         * lib/time.in.h: Likewise.
21298         * lib/unistd.in.h: Likewise.
21299         * lib/wchar.in.h: Likewise.
21300         * lib/wctype.in.h: Likewise.
21301         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
21302         * modules/fchdir (Makefile.am): Likewise.
21303         * modules/fcntl (Makefile.am): Likewise.
21304         * modules/float (Makefile.am): Likewise.
21305         * modules/iconv_open (Makefile.am): Likewise.
21306         * modules/inttypes (Makefile.am): Likewise.
21307         * modules/locale (Makefile.am): Likewise.
21308         * modules/math (Makefile.am): Likewise.
21309         * modules/netinet_in (Makefile.am): Likewise.
21310         * modules/search (Makefile.am): Likewise.
21311         * modules/signal (Makefile.am): Likewise.
21312         * modules/stdarg (Makefile.am): Likewise.
21313         * modules/stdint (Makefile.am): Likewise.
21314         * modules/stdio (Makefile.am): Likewise.
21315         * modules/stdlib (Makefile.am): Likewise.
21316         * modules/string (Makefile.am): Likewise.
21317         * modules/strings (Makefile.am): Likewise.
21318         * modules/sys_select (Makefile.am): Likewise.
21319         * modules/sys_socket (Makefile.am): Likewise.
21320         * modules/sys_stat (Makefile.am): Likewise.
21321         * modules/sys_time (Makefile.am): Likewise.
21322         * modules/sysexits (Makefile.am): Likewise.
21323         * modules/time (Makefile.am): Likewise.
21324         * modules/unistd (Makefile.am): Likewise.
21325         * modules/wchar (Makefile.am): Likewise.
21326         * modules/wctype (Makefile.am): Likewise.
21327         Reported by Reuben Thomas <rrt@sc3d.org>.
21328
21329 2008-08-29  Bruno Haible  <bruno@clisp.org>
21330
21331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
21332         any more.
21333
21334 2008-08-29  Simon Josefsson  <simon@josefsson.org>
21335
21336         * MODULES.html.sh (Misc): Add bitrotate.
21337
21338         * modules/bitrotate: New file.
21339
21340         * lib/bitrotate.h: New file.
21341
21342         * modules/bitrotate-tests: New file.
21343
21344         * tests/test-bitrotate.c: New file.
21345
21346         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
21347         on the bitrotate module.
21348
21349         * lib/arctwo.c: Use new bitrotate module.
21350
21351 2008-08-29  Jim Meyering  <meyering@redhat.com>
21352
21353         bootstrap: merge changes from coreutils
21354         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
21355         of copied files.  Remove a kludge, now that this is fixed.
21356         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
21357         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
21358         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
21359
21360 2008-08-29  Bruno Haible  <bruno@clisp.org>
21361
21362         * MODULES.html.sh: Remove --cvs-urls option.
21363
21364 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
21365
21366         maint.mk: adjust to file name change
21367         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
21368
21369 2008-08-28  Jim Meyering  <meyering@redhat.com>
21370
21371         * modules/getndelim2 (License): Relicense to LGPLv2+.
21372         Approved by Richard Stallman for the version of 1995, and by
21373         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
21374
21375 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
21376
21377         * lib/getdelim.c (flockfile, funlockfile): Make all of them
21378         dummy if one is not available.  Do not touch them if
21379         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
21380         (getc_maybe_unlocked): New.
21381         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
21382
21383 2008-08-26  Eric Blake  <ebb9@byu.net>
21384
21385         doc/INSTALL: resync from autoconf
21386         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
21387         (INSTALL_PRELUDE): Delete; this is done more efficiently by
21388         moving...
21389         * install.texi [!autoconf]: ...here.  Resync from autoconf.
21390         * INSTALL: Regenerate.
21391         * INSTALL.ISO: New file.
21392         * INSTALL.UTF-8: Likewise.
21393
21394 2008-08-26  Jim Meyering  <meyering@redhat.com>
21395
21396         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
21397         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
21398         these definitions conditional, so that they may be overridden, too.
21399
21400 2008-08-26  Bruno Haible  <bruno@clisp.org>
21401
21402         Generate INSTALL file variants with prettier quotes.
21403         * doc/Makefile (INSTALL_PRELUDE): New macro.
21404         (INSTALL): Use it.
21405         (INSTALL.ISO, INSTALL.UTF-8): New rules.
21406
21407 2008-08-26  Bruno Haible  <bruno@clisp.org>
21408
21409         Run makeinfo in an English locale.
21410         * doc/Makefile (MAKEINFO): New variable.
21411
21412 2008-08-26  Bruno Haible  <bruno@clisp.org>
21413
21414         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
21415         Suggested by Eric Blake.
21416
21417 2008-08-25  Bruno Haible  <bruno@clisp.org>
21418
21419         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
21420
21421 2008-08-25  Eric Blake  <ebb9@byu.net>
21422
21423         c-stack: test that stack overflow can be caught
21424         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
21425         that platform allows handling stack overflow; at least OS/2 EMX
21426         has sigaltstack, but crashes before transferring control to
21427         handler on stack overflow.
21428         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
21429         check for HAVE_STACK_OVERFLOW_HANDLING.
21430         Reported by Elbert Pol.
21431
21432 2008-08-25  Bruno Haible  <bruno@clisp.org>
21433
21434         * doc/posix-functions/strftime.texi: Fix description of strftime
21435         module.
21436
21437 2008-08-24  Bruno Haible  <bruno@clisp.org>
21438
21439         * tests/uniwidth/test-uc_width2.c: New file.
21440         * tests/uniwidth/test-uc_width2.sh: New file.
21441         * modules/uniwidth/width-tests (Files): Add the new files.
21442         (TESTS): Add uniwidth/test-uc_width2.sh.
21443         (TESTS_ENVIRONMENT): New variable.
21444         (check_PROGRAMS): Add test-uc_width2.
21445         (test_uc_width2_SOURCES): New variable.
21446
21447         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21448         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21449         not 0x00AB.
21450         Reported by Alexander V. Lukyanov <lav@netis.ru>.
21451
21452 2008-08-22  Eric Blake  <ebb9@byu.net>
21453
21454         test-lock, test-tls: mention why a test is skipped
21455         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21456         skipped.
21457         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21458
21459         count-one-bits: relax license
21460         * modules/count-one-bits (License): Relicense to LGPLv2+.
21461         Suggested by Ludovic Courtès, approved by Ben Pfaff.
21462
21463 2008-08-22  Andreas Schwab  <schwab@suse.de>
21464
21465         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21466         Remove spurious space in assignment.
21467
21468 2008-08-21  Simon Josefsson  <simon@josefsson.org>
21469
21470         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
21471         Paul Eggert <eggert@CS.UCLA.EDU>.
21472
21473 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
21474
21475         * modules/gettext: Add m4/threadlib.m4.
21476
21477 2008-08-19  Eric Blake  <ebb9@byu.net>
21478
21479         test-c-stack: fix compilation failure on FreeBSD 5.0
21480         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21481         headers before <sys/resource.h>.
21482         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21483         the bug.
21484         Reported by Nelson H. F. Beebe.
21485
21486         strverscmp: migrate from "strverscmp.h" to <string.h>
21487         * modules/string (Makefile.am): Add new hooks.
21488         * modules/strverscmp (Files): Remove strverscmp.h.
21489         (Depends-on): Add string.
21490         (configure.ac): Add indicator.
21491         (Include): Mention new header.
21492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21493         defaults.
21494         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21495         results.
21496         * lib/strverscmp.h: Delete.
21497         * lib/string.in.h (strverscmp): Provide declaration, when needed.
21498         * tests/test-strverscmp.c (includes): Adjust client.
21499         * lib/check-version.c (includes): Likewise.
21500         * NEWS: Document the change.
21501
21502         strverscmp: add unit test
21503         * modules/strverscmp-tests: New file.
21504         * tests/test-strverscmp.c: Likewise.
21505
21506 2008-08-19  Simon Josefsson  <simon@josefsson.org>
21507
21508         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
21509         regarding Windows crypto stuff, from Mono.
21510
21511 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
21512
21513         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
21514         if present, for intel RND.  Return error on failures.
21515
21516 2008-08-18  Ben Pfaff  <blp@gnu.org>
21517
21518         gitlog-to-changelog: give better diagnostic for failed pipe-open
21519         * build-aux/gitlog-to-changelog: Improve error message: suggest
21520         that the version of Git may be too old.
21521
21522 2008-08-18  Simon Josefsson  <simon@josefsson.org>
21523
21524         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
21525         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
21526
21527 2008-08-18  Bruno Haible  <bruno@clisp.org>
21528
21529         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21530         pthread_in_use().
21531
21532 2008-08-18  Bruno Haible  <bruno@clisp.org>
21533
21534         * lib/glthread/threadlib.c: Include <pthread.h>.
21535
21536 2008-08-18  Bruno Haible  <bruno@clisp.org>
21537
21538         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21539         glthread_recursive_lock_* macros.
21540         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21541         Fix syntax error.
21542
21543 2008-08-18  Bruno Haible  <bruno@clisp.org>
21544
21545         * lib/glthread/thread.c: Avoid forcing a context switch right after
21546         thread creation.
21547
21548 2008-08-17  Bruno Haible  <bruno@clisp.org>
21549
21550         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21551         * lib/glthread/thread.h: Provide Win32 specific implementation.
21552         * modules/thread (Files): Add lib/glthread/thread.c.
21553         (Depends-on): Add lock.
21554         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21555
21556 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21557
21558         New module 'yield'.
21559         * modules/yield: New file.
21560         * lib/glthread/yield.h: New file.
21561         * m4/yield.m4: New file.
21562         * MODULES.html.sh (Multithreading): Add yield.
21563
21564 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21565
21566         New module 'thread'.
21567         * modules/thread: New file.
21568         * lib/glthread/thread.h: New file.
21569         * m4/thread.m4: New file.
21570         * MODULES.html.sh (Multithreading): Add thread.
21571
21572 2008-08-17  Bruno Haible  <bruno@clisp.org>
21573
21574         * lib/glthread/lock.h: Include <stdlib.h> always.
21575         * lib/glthread/tls.h: Likewise.
21576         * lib/glthread/cond.h: Likewise.
21577
21578 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21579
21580         New module 'cond'.
21581         * modules/cond: New file.
21582         * lib/glthread/cond.h: New file.
21583         * lib/glthread/cond.c: New file.
21584         * m4/cond.m4: New file.
21585         * MODULES.html.sh (Multithreading): Add cond.
21586
21587 2008-08-16  Eric Blake  <ebb9@byu.net>
21588
21589         c-stack: fix regression on Irix 5.3 from 2008-06-21
21590         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21591         sa_sigaction...
21592         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21593         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21594         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21595         * modules/signal (Makefile.am): Use the value.
21596         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21597         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21598         * doc/posix-headers/signal.texi (signal.h): Document this
21599         portability issue.
21600         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21601         Reported by Tom G. Christensen.
21602
21603 2008-08-17  Bruno Haible  <bruno@clisp.org>
21604
21605         New module 'threadlib'.
21606         * modules/threadlib: New file.
21607         * lib/glthread/threadlib.c: New file, extracted from
21608         lib/glthread/lock.c.
21609         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21610         functions.
21611         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21612         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21613         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21614         macros.
21615         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21616         (gl_DISABLE_THREADS): Remove macro.
21617         * modules/lock (Files): Remove build-aux/config.rpath.
21618         (Depends-on): Remove havelib. Add threadlib.
21619         (configure.ac-early): Remove section.
21620         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21621         * modules/tls (Depends-on): Remove lock. Add threadlib.
21622         (Link): New section, copied from threadlib.
21623         * MODULES.html.sh (Multithreading): Add threadlib.
21624
21625 2008-08-14  Bruno Haible  <bruno@clisp.org>
21626
21627         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21628         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21629         glthread_rwlock_unlock, glthread_rwlock_destroy,
21630         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21631         glthread_recursive_lock_destroy): Define as macros always.
21632         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21633         glthread_lock_lock.
21634         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21635         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21636         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21637         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21638         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21639         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21640         (glthread_recursive_lock_lock_func): Renamed from
21641         glthread_recursive_lock_lock.
21642         (glthread_recursive_lock_unlock_func): Renamed from
21643         glthread_recursive_lock_unlock.
21644         (glthread_recursive_lock_destroy_func): Renamed from
21645         glthread_recursive_lock_destroy.
21646
21647 2008-08-14  Bruno Haible  <bruno@clisp.org>
21648
21649         * lib/glthread/lock.h: Renamed from lib/lock.h.
21650         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21651         * lib/glthread/tls.h: Renamed from lib/tls.h.
21652         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21653         * lib/fstrcmp.c: Update includes.
21654         * lib/strsignal.c: Update includes.
21655         * modules/lock (Files, Makefile.am): Update.
21656         (Include): Change to "glthread/lock.h".
21657         * modules/tls (Files, Makefile.am): Update.
21658         (Include): Change to "glthread/tls.h".
21659         * tests/test-lock.c: Update includes.
21660         * tests/test-tls.c: Update includes.
21661         * NEWS: Mention the renamed header files.
21662
21663 2008-08-11  Jim Meyering  <meyering@redhat.com>
21664
21665         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21666
21667 2008-08-11  Eric Blake  <ebb9@byu.net>
21668
21669         test-c-stack: avoid C99-ism
21670         * tests/test-c-stack.c (main): Fix whitespace, move declaration
21671         before statement.
21672         Reported by Alain Guibert.
21673
21674 2008-08-10  Jim Meyering  <meyering@redhat.com>
21675
21676         ensure that return value of uinttostr et al are not ignored
21677         * lib/inttostr.h (__GNUC_PREREQ): Define.
21678         (__attribute_warn_unused_result__): Define.
21679         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21680
21681 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
21682
21683         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21684         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21685
21686 2008-08-07  Jim Meyering  <meyering@redhat.com>
21687
21688         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21689
21690         * modules/mkstemp (License): Relicense under LGPLv2+.
21691         * modules/tempname (License): Likewise.
21692
21693 2008-08-06  Bruno Haible  <bruno@clisp.org>
21694
21695         * lib/poll.c (poll): Further micro-optimization.
21696
21697 2008-08-06  Jim Meyering  <meyering@redhat.com>
21698
21699         inet_pton.c: use locale-independent tolower
21700         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21701         (inet_pton6): Use c_tolower rather than tolower.
21702         * modules/inet_pton (Depends-on): Add c-ctype.
21703
21704 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
21705
21706         * lib/poll.c (poll): Avoid division when timeout is 0, cache
21707         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
21708
21709 2008-08-06  Jim Meyering  <meyering@redhat.com>
21710
21711         * modules/inet_pton (License): Relicense under LGPLv2+.
21712
21713 2008-08-03  Bruno Haible  <bruno@clisp.org>
21714
21715         Additional non-aborting API for lock and tls.
21716         * lib/lock.h: Include <errno.h>.
21717         (glthread_lock_init): New macro/function.
21718         (gl_lock_init): Define as wrapper around glthread_lock_init.
21719         (glthread_lock_lock): New macro/function.
21720         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21721         (glthread_lock_unlock): New macro/function.
21722         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21723         (glthread_lock_destroy): New macro/function.
21724         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21725         (glthread_rwlock_init): New macro/function.
21726         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21727         (glthread_rwlock_rdlock): New macro/function.
21728         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21729         (glthread_rwlock_wrlock): New macro/function.
21730         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21731         (glthread_rwlock_unlock): New macro/function.
21732         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21733         (glthread_rwlock_destroy): New macro/function.
21734         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21735         (glthread_recursive_lock_init): New macro/function.
21736         (gl_recursive_lock_init): Define as wrapper around
21737         glthread_recursive_lock_init.
21738         (glthread_recursive_lock_lock): New macro/function.
21739         (gl_recursive_lock_lock): Define as wrapper around
21740         glthread_recursive_lock_lock.
21741         (glthread_recursive_lock_unlock): New macro/function.
21742         (gl_recursive_lock_unlock): Define as wrapper around
21743         glthread_recursive_lock_unlock.
21744         (glthread_recursive_lock_destroy): New macro/function.
21745         (gl_recursive_lock_destroy): Define as wrapper around
21746         glthread_recursive_lock_destroy.
21747         (glthread_once): New macro/function.
21748         (gl_once): Define as wrapper around glthread_once.
21749         Update function declarations.
21750         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21751         glthread_rwlock_init. Return error code.
21752         (glthread_rwlock_rdlock_multithreaded): Renamed from
21753         glthread_rwlock_rdlock. Return error code.
21754         (glthread_rwlock_wrlock_multithreaded): Renamed from
21755         glthread_rwlock_wrlock. Return error code.
21756         (glthread_rwlock_unlock_multithreaded): Renamed from
21757         glthread_rwlock_unlock. Return error code.
21758         (glthread_rwlock_destroy_multithreaded): Renamed from
21759         glthread_rwlock_destroy. Return error code.
21760         (glthread_recursive_lock_init_multithreaded): Renamed from
21761         glthread_recursive_lock_init. Return error code.
21762         (glthread_recursive_lock_lock_multithreaded): Renamed from
21763         glthread_recursive_lock_lock. Return error code.
21764         (glthread_recursive_lock_unlock_multithreaded): Renamed from
21765         glthread_recursive_lock_unlock. Return error code.
21766         (glthread_recursive_lock_destroy_multithreaded): Renamed from
21767         glthread_recursive_lock_destroy. Return error code.
21768         (glthread_once_call): Make static.
21769         (glthread_once_multithreaded): Renamed from glthread_once.
21770         * lib/tls.h: Include <errno.h>.
21771         (glthread_tls_key_init): New macro/function.
21772         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21773         (glthread_tls_set): New macro/function.
21774         (gl_tls_set): Define as wrapper around glthread_tls_set.
21775         (glthread_tls_key_destroy): New macro/function.
21776         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21777         Update function declarations.
21778         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21779         glthread_tls_get.
21780         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21781
21782 2008-08-04  Eric Blake  <ebb9@byu.net>
21783
21784         gnumakefile: use space, not TAB, outside of targets
21785         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21786
21787 2008-08-02  Jim Meyering  <meyering@redhat.com>
21788
21789         getdate.y: avoid locale-dependent date parsing failure
21790         In Turkish locales, getdate would fail to recognize keywords
21791         containing a lowercase "i".  The solution is not to rely on
21792         locale-sensitive case-conversion.
21793         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21794         (lookup_word): Use c_toupper in place of toupper.
21795         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21796         Reported by Vefa Bicakci <bicave@superonline.com> in
21797         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21798         * modules/getdate (Depends-on): Add c-ctype.
21799
21800 2008-08-02  Bruno Haible  <bruno@clisp.org>
21801
21802         * gnulib-tool (func_import): When updating or creating a .gitignore
21803         file, prepend each added line with a slash, and ignore leading slashes
21804         from the existing lines.
21805         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21806
21807 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21808
21809         Portability fix for GNU make 3.79.1.
21810         * top/GNUmakefile: Avoid 'else COND', which older GNU make
21811         versions do not understand.
21812
21813 2008-08-01  Bruno Haible  <bruno@clisp.org>
21814
21815         Work around bug of HP-UX 10.20 cc with -0.0 literal.
21816         * tests/test-isnanf.h (zero): New variable.
21817         (main): Avoid literal -0.0f.
21818         * tests/test-isnand.h (zero): New variable.
21819         (main): Avoid literal -0.0.
21820         * tests/test-isnanl.h (zero): New variable.
21821         (main): Avoid literal -0.0L.
21822         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21823         (test_float, test_double, test_long_double): Avoid literals -0.0f,
21824         -0.0, -0.0L.
21825         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21826         (test_signbitd): Avoid literal -0.0.
21827         (test_signbitl): Avoid literal -0.0L.
21828         * tests/test-ceilf1.c (zero): New variable.
21829         (main): Avoid literal -0.0f.
21830         * tests/test-ceill.c (zero): New variable.
21831         (main): Avoid literal -0.0L.
21832         * tests/test-floorf1.c (zero): New variable.
21833         (main): Avoid literal -0.0f.
21834         * tests/test-floorl.c (zero): New variable.
21835         (main): Avoid literal -0.0L.
21836         * tests/test-roundf1.c (zero): New variable.
21837         (main): Avoid literal -0.0f.
21838         * tests/test-round1.c (zero): New variable.
21839         (main): Avoid literal -0.0.
21840         * tests/test-roundl.c (zero): New variable.
21841         (main): Avoid literal -0.0L.
21842         * tests/test-truncf1.c (zero): New variable.
21843         (main): Avoid literal -0.0f.
21844         * tests/test-trunc1.c (zero): New variable.
21845         (main): Avoid literal -0.0.
21846         * tests/test-truncl.c (zero): New variable.
21847         (main): Avoid literal -0.0L.
21848         * tests/test-frexp.c (zero): New variable.
21849         (main): Avoid literal -0.0.
21850         * tests/test-frexpl.c (zero): New variable.
21851         (main): Avoid literal -0.0L.
21852         * tests/test-ldexpl.c (zero): New variable.
21853         (main): Avoid literal -0.0L.
21854         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21855         (zerod, zerol): New variables.
21856         (test_function): Avoid literals -0.0, -0.0L.
21857         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21858         (zerod, zerol): New variables.
21859         (test_function): Avoid literals -0.0, -0.0L.
21860         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21861         (zerod, zerol): New variables.
21862         (test_function): Avoid literals -0.0, -0.0L.
21863         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21864         (zerod, zerol): New variables.
21865         (test_function): Avoid literals -0.0, -0.0L.
21866         * tests/test-strtod.c (zero): New variable.
21867         (main): Avoid literal -0.0.
21868         Reported by Jonathan C. Patschke <jp@centtech.com>.
21869
21870 2008-07-31  Jim Meyering  <meyering@redhat.com>
21871
21872         sha256.h: correct definition of SHA224_DIGEST_SIZE
21873         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21874         Reported by Paulie Pena IV <paulie4@gmail.com>.
21875         Define as 224 / 8, rather than as a literal.
21876         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21877         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21878         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21879
21880 2008-07-31  Bruno Haible  <bruno@clisp.org>
21881
21882         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21883         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21884         Reported by Jonathan Patschke <jp@centtech.com>.
21885
21886 2008-07-31  Bruno Haible  <bruno@clisp.org>
21887
21888         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21889         Reported by Paolo Bonzini <bonzini@gnu.org>.
21890
21891 2008-07-30  Eric Blake  <ebb9@byu.net>
21892
21893         test-strtod: allow compilation without -lm
21894         * tests/test-strtod.c (main): Avoid link dependence on fabs.
21895         Reported by Dennis Clarke <blastwave@gmail.com>.
21896
21897 2008-07-28  Jim Meyering  <meyering@redhat.com>
21898
21899         bootstrap: work also when there are no .po files in po/
21900         * build-aux/bootstrap (update_po_files): Complete the change
21901         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21902
21903 2008-07-27  Jim Meyering  <meyering@redhat.com>
21904
21905         * users.txt: Add zile.
21906
21907 2008-07-26  Ben Pfaff  <blp@gnu.org>
21908
21909         Add missing dependencies on new m4/exponent[fdl].m4 files.
21910         * modules/isnanf-nolibm: Add m4/exponentf.m4.
21911         * modules/isnand-nolibm: Add m4/exponentd.m4.
21912         * modules/isnanl-nolibm: Add m4/exponentl.m4.
21913         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21914         m4/isnan[fdl].m4, because the macros actually used moved.
21915         Reported by Jim Meyering.
21916
21917 2008-07-14  Ben Pfaff  <blp@gnu.org>
21918
21919         Add isinf module.
21920         * lib/isinf.c: New file.
21921         * lib/math.in.h: Define isinf macro if we have decided to replace
21922         it.
21923         * m4/isinf.m4: New file.
21924         * m4/math_h.m4: Initialize and substitute variables for isinf
21925         module.
21926         * modules/isinf: New file.
21927         * modules/isinf-tests: New file.
21928         * modules/math: Add substitutions for new module.
21929         * tests/test-isinf.c: New file.
21930         * doc/posix-functions/isinf.texi: Mention new module.
21931         * MODULES.html.sh: Mention new module.
21932
21933 2008-07-14  Ben Pfaff  <blp@gnu.org>
21934
21935         Factor out some macros for use by additional modules.
21936         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21937         exponentf.m4.
21938         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21939         exponentd.m4.
21940         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21941         file exponentl.m4.
21942         * m4/exponentf.m4: New file.
21943         * m4/exponentd.m4: New file.
21944         * m4/exponentl.m4: New file.
21945         * modules/isnanf: Use new file m4/exponentf.m4.
21946         * modules/isnand: Use new file m4/exponentd.m4.
21947         * modules/isnanl: Use new file m4/exponentl.m4.
21948
21949 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
21950
21951         mktime.c: normalize tp->tm_isdst value to -1/0/1.
21952         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21953         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21954         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21955
21956         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21957         readlink on platforms without PATH_MAX.
21958
21959 2008-07-21  Eric Blake  <ebb9@byu.net>
21960
21961         Warn, not fail, on stale version.
21962         * top/GNUmakefile (_curr-ver): Tone down previous patch.
21963
21964         Don't allow installation with stale devel version number.
21965         * top/GNUmakefile (_is-install-target): New macro.
21966         (_curr-ver): Forbid installation with stale version number.
21967
21968 2008-07-20  Bruno Haible  <bruno@clisp.org>
21969
21970         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21971         TESTS_ENVIRONMENT.
21972         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21973
21974 2008-07-20  Bruno Haible  <bruno@clisp.org>
21975
21976         * lib/c-stack.h (c_stack_action): Add documentation.
21977         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21978
21979 2008-07-20  Bruno Haible  <bruno@clisp.org>
21980
21981         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21982         * modules/readlink (License): Likewise.
21983
21984 2008-07-17  Eric Blake  <ebb9@byu.net>
21985
21986         * modules/c-stack (Link): Fix typo.
21987
21988         Make c-stack use libsigsegv, when available.
21989         * modules/c-stack (Depends-on): Add libsigsegv.
21990         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21991         needed.
21992         * lib/c-stack.c (SIGSTKSZ): Define fallback.
21993         (segv_handler, overflow_handler, c_stack_action)
21994         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21995         implementation when libsigsegv is available, but only when using
21996         the library is necessary.
21997         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21998         comment, explaining why XSI check fails on Linux.
21999         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
22000         * tests/test-c-stack2.sh: Tweak skip message.
22001         * NEWS: Document new link-time requirements.
22002
22003 2008-07-16  Eric Blake  <ebb9@byu.net>
22004
22005         c-stack: Expose false positives when not using libsigsegv.
22006         * modules/c-stack-tests (Files): Expand test.
22007         * tests/test-c-stack.c (main): Add means to conditionally trigger
22008         non-overflow SIGSEGV.
22009         * tests/test-c-stack2.sh: New file.
22010
22011 2008-07-14  Bruno Haible  <bruno@clisp.org>
22012
22013         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
22014         Reported by Eric Blake.
22015
22016 2008-07-14  Sam Steingold  <sds@gnu.org>
22017             Bruno Haible  <bruno@clisp.org>
22018
22019         New module libsigsegv.
22020         * modules/libsigsegv: New file.
22021         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
22022         modifications.
22023         * MODULES.html.sh (Signal handling): New section.
22024
22025 2008-07-14  Bruno Haible  <bruno@clisp.org>
22026
22027         * modules/unictype/ctype-* (Description): Add the word "function".
22028         Improves the resulting doc in MODULES.html.
22029
22030 2008-07-12  Ben Pfaff  <blp@gnu.org>
22031
22032         Add longlong module.
22033         * modules/longlong: New file.
22034
22035 2008-07-12  Bruno Haible  <bruno@clisp.org>
22036
22037         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
22038         to empty.
22039
22040 2008-07-10  Ben Pfaff  <blp@gnu.org>
22041
22042         Add isnan module.
22043         * doc/posix-functions/isnan.texi: Mention new module.
22044         * lib/math.in.h: Define isnan macro if we have decided to replace
22045         it.
22046         * m4/isnan.m4: New file.
22047         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
22048         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
22049         also.
22050         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
22051         redundancy.
22052         * m4/math_h.m4: Initialize and substitute variables for isnan
22053         module.
22054         * modules/isnan: New file.
22055         * modules/isnan-tests: New file.
22056         * modules/math: Add substitutions for new module.
22057         * tests/test-isnan.c: New file.
22058         * MODULES.html.sh: Mention new module.
22059
22060 2008-07-10  Ben Pfaff  <blp@gnu.org>
22061
22062         Add isnanf module.
22063         * lib/isnanf.m4: New file.
22064         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
22065         (gl_HAVE_ISNANF_IN_LIBM): New macro.
22066         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
22067         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
22068         * modules/isnanf: New file.
22069         * modules/isnanf-tests: New file.
22070         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
22071         files.
22072         * tests/test-isnanf-nolibm.c: factored most of its contents into
22073         new file tests/test-isnanf.h.
22074         * tests/test-isnanf.h: New file.
22075         * tests/test-isnanf.c: New file.
22076         * MODULES.html.sh: Mention new module.
22077         * doc/glibc-functions/isnanf.texi: Mention new module.
22078
22079 2008-07-10  Ben Pfaff  <blp@gnu.org>
22080
22081         Add isnand module.
22082         * lib/isnand.h: New file.
22083         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
22084         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
22085         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
22086         functionality also.
22087         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
22088         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
22089         (gl_HAVE_ISNAND_IN_LIBM): New macro.
22090         * modules/isnand: New file.
22091         * modules/isnand-tests: New file.
22092         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
22093         files.
22094         * tests/test-isnand-nolibm.c: factored most of its contents into
22095         new file tests/test-isnand.h.
22096         * tests/test-isnand.h: New file.
22097         * tests/test-isnand.c: New file.
22098         * MODULES.html.sh: Mention new module.
22099
22100 2008-07-10  Ben Pfaff  <blp@gnu.org>
22101
22102         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
22103         * lib/isnand.h: Rename lib/isnand-nolibm.h.
22104         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
22105         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
22106         * modules/isnanf-nolibm: Update references to renamed files.
22107         * modules/isnand-nolibm: Likewise.
22108         * modules/isnanf-nolibm-tests: Likewise.
22109         * modules/isnand-nolibm-tests: Likewise.
22110         * lib/frexp.c: Likewise.
22111         * lib/isfinite.c: Likewise.
22112         * lib/signbitd.c: Likewise.
22113         * lib/signbitf.c: Likewise.
22114         * lib/vasnprintf.c: Likewise.
22115         * tests/test-ceilf1.c: Likewise.
22116         * tests/test-ceilf2.c: Likewise.
22117         * tests/test-floorf1.c: Likewise.
22118         * tests/test-floorf2.c: Likewise.
22119         * tests/test-frexp.c: Likewise.
22120         * tests/test-round1.c: Likewise.
22121         * tests/test-round2.c: Likewise.
22122         * tests/test-roundf1.c: Likewise.
22123         * tests/test-strtod.c: Likewise.
22124         * tests/test-trunc1.c: Likewise.
22125         * tests/test-trunc2.c: Likewise.
22126         * tests/test-truncf1.c: Likewise.
22127         * tests/test-truncf2.c: Likewise.
22128         * NEWS: Mention the renamed header files.
22129
22130 2008-07-11  Jim Meyering  <meyering@redhat.com>
22131
22132         vc-list-files: make the last-resort awk code more portable
22133         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
22134         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
22135         does not support it.
22136
22137 2008-07-10  Eric Blake  <ebb9@byu.net>
22138
22139         Work with tar's bootstrap.
22140         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
22141         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
22142         an m4 comment.
22143
22144 2008-07-09  Jim Meyering  <meyering@redhat.com>
22145
22146         posix-shell.m4: fix typo that made this test malfunction
22147         * m4/posix-shell.m4: Remove capitalization in variable name.
22148
22149 2008-07-08  Bruno Haible  <bruno@clisp.org>
22150
22151         * m4/onceonly.m4: Update comments.
22152         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22153
22154 2008-07-04  Jim Meyering  <meyering@redhat.com>
22155
22156         * users.txt: Add vc-dwim.
22157         (bison, coreutils): Use the gitweb URL.
22158
22159 2008-07-03  Jim Meyering  <meyering@redhat.com>
22160
22161         * users.txt: Add libffcall.  From Sam Steingold.
22162
22163 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
22164
22165         getdate.y: do not ignore TZ with relative day, month or year offset
22166         * lib/getdate.y (get_date): Move the tz-handling block to follow the
22167         relative-date-handling, since otherwise, the latter would clobber the
22168         sole output (an updated Start value) of the tz-handling block.
22169         * tests/test-getdate.c: Tests for the fix
22170
22171 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22172
22173         Recognize 'foo_LIBRARIES += libgnu.a'.
22174         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
22175         makefile snippet has already specified an installation location,
22176         also using '+='.
22177
22178 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
22179
22180         getdate.y: factor out common actions
22181         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
22182         Use them in place of open-coded actions.
22183
22184 2008-07-01  Simon Josefsson  <simon@josefsson.org>
22185
22186         Add self-test for getdate module.
22187         * modules/getdate-tests: New file.
22188         * tests/test-getdate.c: New file.
22189
22190 2008-06-29  Bruno Haible  <bruno@clisp.org>
22191
22192         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
22193         .gitignore.
22194         Reported by Sylvain Beucler <beuc@beuc.net>.
22195
22196 2008-06-29  Bruno Haible  <bruno@clisp.org>
22197
22198         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
22199         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
22200
22201 2008-06-29  Bruno Haible  <bruno@clisp.org>
22202
22203         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
22204         EXTRA_DIST.
22205         Reported by Sylvain Beucler <beuc@beuc.net>.
22206
22207 2008-06-26  Jim Meyering  <meyering@redhat.com>
22208
22209         make several modules depend on the "open" module
22210         This provides slightly increased consistency when opening-for-write
22211         the name of a non-directory spelled with a trailing slash.
22212         * modules/chdir-safer: Likewise.
22213         * modules/chown: Likewise.
22214         * modules/clean-temp: Likewise.
22215         * modules/copy-file: Likewise.
22216         * modules/fchdir: Likewise.
22217         * modules/fcntl-safer: Likewise.
22218         * modules/pipe: Likewise.
22219         * modules/utime: Likewise.
22220         Prompted by Eric Blake and Bruno Haible.
22221
22222 2008-06-24  Andreas Schwab  <schwab@suse.de>
22223
22224         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
22225         literals can be used as initializers for global variables.
22226
22227 2008-06-23  Eric Blake  <ebb9@byu.net>
22228
22229         Make gnulib-cache.m4 easier to diff.
22230         * gnulib-tool (func_import): Allow newlines when reading cached
22231         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
22232
22233 2008-06-23  Bruno Haible  <bruno@clisp.org>
22234
22235         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
22236         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
22237         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
22238         m4/signalblocking.m4.
22239         (gl_PREREQ_SIGACTION): Don't invoke it.
22240         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
22241         gl_PREREQ_SIG_HANDLER_H.
22242         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22243         Don't check for sigaction here.
22244
22245 2008-06-23  Bruno Haible  <bruno@clisp.org>
22246
22247         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
22248         (install_handlers): Don't set the SA_RESETHAND flag.
22249
22250 2008-06-23  Bruno Haible  <bruno@clisp.org>
22251
22252         * m4/sigaction.m4: Comment fixes.
22253         * lib/signal.in.h: Likewise.
22254
22255 2008-06-23  Eric Blake  <ebb9@byu.net>
22256
22257         Fix typo.
22258         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
22259
22260         Avoid SA_ namespace.
22261         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
22262         Reported by Ralf Wildenhues.
22263
22264         Avoid test failure due to SA_RESTORER.
22265         * tests/test-sigaction.c (SA_MASK): New macro.
22266         (main): Avoid failing due to extension flags being set.
22267         Reported by Jim Meyering.
22268
22269         Revert use of sig-handler.h in sigprocmask.c.
22270         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
22271         it requires the existence of struct sigaction.
22272         * lib/sigprocmask.c (handler_t): Restore typedef.
22273         (rpl_signal, old_handlers): Use local type.
22274
22275 2008-06-22  Bruno Haible  <bruno@clisp.org>
22276
22277         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
22278         conditionally.
22279         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22280
22281 2008-06-22  Bruno Haible  <bruno@clisp.org>
22282
22283         * doc/posix-functions/siginterrupt.texi: Move note.
22284
22285         * lib/signal.in.h (SA_RESTART): New macro.
22286         * lib/sigaction.c: Update comment.
22287
22288         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
22289
22290         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
22291         (gl_PREREQ_SIGPROCMASK): Invoke it.
22292         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
22293
22294         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
22295
22296         * lib/sigprocmask.c: Update a comment.
22297
22298 2008-06-21  Eric Blake  <ebb9@byu.net>
22299
22300         Use sigaction module rather than signal().
22301         * modules/c-stack (Depends-on): Add sigaction.
22302         * modules/fatal-signal (Depends-on): Likewise.
22303         * modules/nanosleep (Depends-on): Likewise.
22304         * modules/sigprocmask (Files): Add sig-handler.h.
22305         * modules/sigaction (Files): Likewise.
22306         * lib/sig-handler.h (get_handler): New file, suggested by Paul
22307         Eggert.
22308         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
22309         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
22310         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22311         (init_fatal_signals): Likewise.
22312         * lib/nanosleep.c (rpl_nanosleep): Likewise.
22313         (siginterrupt): Delete fallback.
22314         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
22315         instead.
22316         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
22317         siginterrupt.
22318
22319         New module sigaction, for mingw.
22320         * modules/sigaction: New module...
22321         * modules/sigaction-tests: ...and its test.
22322         * m4/sigaction.m4: New file.
22323         * lib/sigaction.c: Likewise.
22324         * tests/test-sigaction.c: Likewise.
22325         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
22326         * modules/signal (Makefile.am): Likewise.
22327         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
22328         needed.
22329         * doc/posix-headers/signal.texi (signal.h): Mention provided
22330         types.
22331         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
22332         that sigaction is preferable.
22333         * doc/posix-functions/sigaction.texi (sigaction): Mention new
22334         module.
22335         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22336         sigaction.
22337
22338         Improve robustness of sigprocmask by overriding signal.
22339         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
22340         is in use.
22341         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
22342         (SIGKILL, SIGSTOP): Provide fallbacks.
22343         (rpl_signal): Implement.
22344         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
22345         signal can be called inside handlers.
22346
22347         Fix nanosleep module on mingw.
22348         * modules/nanosleep (Depends-on): Add sys_select.
22349         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
22350
22351         Fix licensing of sigprocmask.
22352         * modules/raise (License): Relicense as LGPL.
22353
22354 2008-06-21  Bruno Haible  <bruno@clisp.org>
22355
22356         * lib/propername.c (proper_name_utf8): Don't use the transliterated
22357         result if it contains question marks.
22358         Reported by Michael Geng <linux@michaelgeng.de>.
22359
22360 2008-06-19  Bruno Haible  <bruno@clisp.org>
22361
22362         Fix CVS-ism.
22363         * doc/gnulib.texi: Include updated-stamp.texi.
22364         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
22365         (updated-stamp.texi): New rule.
22366         (gnulib.info): Depend on it.
22367         * doc/.gitignore: Add updated-stamp.texi.
22368         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
22369
22370 2008-06-19  Bruno Haible  <bruno@clisp.org>
22371
22372         * doc/Makefile (gnulib.info): Update and simplify dependencies.
22373         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22374
22375 2008-06-19  Eric Blake  <ebb9@byu.net>
22376
22377         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
22378         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
22379         Reported by Stepan Kasal.
22380
22381 2008-06-18  Bruno Haible  <bruno@clisp.org>
22382
22383         * lib/fatal-signal.c (init_fatal_signals): Add comment.
22384         Reported by Eric Blake.
22385
22386 2008-06-18  Eric Blake  <ebb9@byu.net>
22387
22388         Work around cygwin 1.5.25 strsignal bug.
22389         * tests/test-strsignal.c: Allow for const char *.
22390         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
22391
22392 2008-06-18  Simon Josefsson  <simon@josefsson.org>
22393
22394         * users.txt: Update URL to article and add author/date
22395         information.
22396
22397 2008-06-17  Bruno Haible  <bruno@clisp.org>
22398
22399         New macro gl_DISABLE_THREADS.
22400         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
22401         if the user did not pass --enable-threads or --disable-threads option.
22402         (gl_DISABLE_THREADS): New macro.
22403         Reported by Eric Blake <ebb9@byu.net>.
22404
22405 2008-06-17  Bruno Haible  <bruno@clisp.org>
22406
22407         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
22408         when the macro ignores it.
22409         Based on a patch by Eric Blake <ebb9@byu.net>.
22410
22411 2008-06-17  Bruno Haible  <bruno@clisp.org>
22412
22413         * modules/tls (License): Change to LGPLv2+.
22414         Reported by Eric Blake.
22415
22416 2008-06-17  Eric Blake  <ebb9@byu.net>
22417
22418         Simplify c-stack prerequisites.
22419         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
22420         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
22421         no longer requires <ucontext.h> to exist.  Optimize setrlimit
22422         check.
22423         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
22424         <sys/resource.h>.
22425
22426         Move c-stack test into testsuite.
22427         * modules/c-stack-tests: New file.
22428         * lib/c-stack.c [DEBUG]: Move test program...
22429         * tests/test-c-stack.c: ...into this new file.  Skip rather than
22430         fail test if sigaltstack is lacking.
22431         * tests/test-c-stack.sh: New driver file.
22432
22433 2008-06-16  Eric Blake  <ebb9@byu.net>
22434
22435         Use raise module consistently.
22436         * modules/fatal-signal (Depends-on): Add raise.
22437         * modules/sigprocmask (Depends-on): Likewise.
22438         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
22439         * lib/sigprocmask.c (sigprocmask): Likewise.
22440         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
22441         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
22442
22443         Fix compliance bug in sigpending.
22444         * lib/sigprocmask.c (sigpending): Return pending array via
22445         parameter, not return value.
22446
22447 2008-06-14  Eric Blake  <ebb9@byu.net>
22448
22449         Improve obstack-printf test code.
22450         * tests/test-obstack-printf.c (test_function): Fix comment, and
22451         simplify usage of obstack_* in macros.  Add a test for coverage.
22452         Reported by Bruno Haible.
22453
22454 2008-06-14  Bruno Haible  <bruno@clisp.org>
22455
22456         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22457         array size as a constant, not as a const variable.
22458         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22459         AC_USE_SYSTEM_EXTENSIONS.
22460         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22461         Test whether the obstack_printf function actually exists.
22462         * modules/obstack-printf (Depends-on): Add extensions.
22463         (Include): Remove obstack.h.
22464         * modules/obstack-printf-posix (Depends-on): Add extensions.
22465         (Include): Remove obstack.h.
22466
22467 2008-06-13  Eric Blake  <ebb9@byu.net>
22468
22469         Add obstack-printf and obstack-printf-posix modules.
22470         * modules/obstack-printf: New file.
22471         * modules/obstack-printf-posix: Likewise.
22472         * MODULES.html.sh (Misc): Mention them.
22473         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22474         Likewise.
22475         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22476         Likewise.
22477         * modules/stdio (Makefile.am): Accomodate new modules.
22478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22479         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22480         Declare.
22481         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22482         functions.
22483         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22484         (gl_REPLACE_OBSTACK_PRINTF): New macros
22485         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22486         * tests/test-obstack-printf.c: New file.
22487         * modules/obstack-printf-tests: Likewise.
22488         * modules/obstack-printf-posix-tests: Likewise.
22489
22490 2008-06-11  Bruno Haible  <bruno@clisp.org>
22491
22492         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22493         * lib/open.c: Include errno.h.
22494         (open): Fail when attempting to write to a file that has a trailing
22495         slash.
22496         * tests/test-open.c (main): Test against trailing slash bug.
22497         * doc/posix-functions/open.texi: Mention the trailing slash bug.
22498
22499 2008-06-10  Bruno Haible  <bruno@clisp.org>
22500
22501         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22502         for $? to work inside the trap command, with various /bin/sh-s.
22503         * tests/test-vc-list-files-cvs.sh: Likewise.
22504
22505 2008-06-10  Bruno Haible  <bruno@clisp.org>
22506
22507         * lib/acl-internal.h: Don't include gettext.h here.
22508         * lib/set-mode-acl.c: Include gettext.h here.
22509         * lib/copy-acl.c: Likewise.
22510
22511 2008-06-10  Bruno Haible  <bruno@clisp.org>
22512
22513         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22514         * lib/wait-process.c (wait_subprocess): Likewise.
22515         * lib/execute.h (execute): Add termsigp argument.
22516         * lib/execute.c (execute): Likewise.
22517         * lib/csharpcomp.c (compile_csharp_using_pnet,
22518         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22519         * lib/csharpexec.c (execute_csharp_using_pnet,
22520         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22521         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22522         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22523         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22524         is_jikes_present): Update.
22525         * lib/javaexec.c (execute_java_class): Update.
22526         * lib/javaversion.c (execute_and_read_line): Update.
22527         * NEWS: Document the changes.
22528         Reported by Eric Blake.
22529
22530 2008-06-10  Eric Blake  <ebb9@byu.net>
22531
22532         Add missing include.
22533         * tests/test-strstr.c (includes): Add <signal.h>.
22534         * tests/test-strcasestr.c (includes): Likewise.
22535         * tests/test-memmem.c (includes): Likewise.
22536
22537 2008-06-10  Bruno Haible  <bruno@clisp.org>
22538
22539         * lib/wait-process.c (wait_subprocess): Add an assertion.
22540
22541 2008-06-10  Bruno Haible  <bruno@clisp.org>
22542
22543         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22544
22545 2008-06-10  Bruno Haible  <bruno@clisp.org>
22546
22547         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22548         using alarm().
22549         * tests/test-strcasestr.c (main): Likewise.
22550         * tests/test-strstr.c (main): Likewise.
22551
22552 2008-06-09  Bruno Haible  <bruno@clisp.org>
22553
22554         Work around the Solaris 10 ACE ACLs ABI change.
22555         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22556         declare if ACL_NO_TRIVIAL is present.
22557         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22558         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22559         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22560         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22561         define if ACL_NO_TRIVIAL is present.
22562         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22563         and use the current ABI.
22564         (file_has_acl): Use same #if condition as elsewhere.
22565         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22566         in use, and use the current ABI.
22567         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22568         Reported by Jim Meyering.
22569
22570 2008-06-09  Eric Blake  <ebb9@byu.net>
22571
22572         Work around environments that (stupidly) ignore SIGALRM.
22573         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22574         before using alarm().
22575         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22576         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22577         Reported by Ian Beckwith <ianb@erislabs.net>.
22578
22579         Produce autobuild blurb earlier in log.
22580         * modules/autobuild (configure.ac-early): Move AB_INIT here.
22581
22582 2008-06-09  Jim Meyering  <meyering@redhat.com>
22583         and Ondřej Vašík  <ovasik@redhat.com>
22584
22585         utimens.c: correct kernel bug work-around
22586         Ondřej Vašík found that the invalid return value of 280 indicates
22587         failure, not success, and the kernel bug we're trying to work
22588         around affects not just the utimensat call, but also the fallback
22589         futimens call.
22590         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22591         not success.
22592         [HAVE_FUTIMENS]: Use the same work-around, here.
22593
22594 2008-06-09  Jim Meyering  <meyering@redhat.com>
22595
22596         add more guards around definition of ACE_-related code
22597         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22598         ALLOW and ACE_OWNER are also defined.
22599
22600 2008-06-08  Bruno Haible  <bruno@clisp.org>
22601
22602         * lib/acl-internal.h: Add me as co-author.
22603         * lib/file-has-acl.c: Likewise.
22604         * lib/set-mode-acl.c: Likewise.
22605         * lib/copy-acl.c: Likewise.
22606
22607 2008-06-08  Bruno Haible  <bruno@clisp.org>
22608
22609         Add support for AIX ACLs.
22610         * lib/acl-internal.h (acl_nontrivial): New declaration.
22611         * lib/file-has-acl.c (acl_nontrivial): New function.
22612         (file_has_acl): Add implementation using AIX 4 ACL API.
22613         * lib/set-mode-acl.c (qset_acl): Likewise.
22614         * lib/copy-acl.c (qcopy_acl): Likewise.
22615
22616 2008-06-08  Bruno Haible  <bruno@clisp.org>
22617
22618         Add support for HP-UX ACLs.
22619         * lib/acl-internal.h (acl_nontrivial): New declaration.
22620         * lib/file-has-acl.c (acl_nontrivial): New function.
22621         (file_has_acl): Add implementation using HP-UX 11 ACL API.
22622         * lib/set-mode-acl.c (qset_acl): Likewise.
22623         * lib/copy-acl.c (qcopy_acl): Likewise.
22624
22625 2008-06-08  Bruno Haible  <bruno@clisp.org>
22626
22627         Add support for Cygwin ACLs.
22628         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22629         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22630         the chmod_or_fchmod call.
22631         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22632
22633 2008-06-08  Bruno Haible  <bruno@clisp.org>
22634
22635         Fix bug with setuid modes in Solaris 10+ code.
22636         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22637         succeeded, when the mode contains some special bits.
22638
22639 2008-06-08  Bruno Haible  <bruno@clisp.org>
22640
22641         Add support for Solaris 7..10 ACLs.
22642         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22643         declarations.
22644         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22645         functions.
22646         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22647         * lib/set-mode-acl.c (qset_acl): Likewise.
22648         * lib/copy-acl.c (qcopy_acl): Likewise.
22649
22650 2008-06-08  Bruno Haible  <bruno@clisp.org>
22651
22652         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22653         declaration.
22654         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22655         (acl_access_nontrivial): Remove MacOS X case.
22656         (file_has_acl): Use acl_extended_nontrivial.
22657         * lib/copy-acl.c (qcopy_acl): Likewise.
22658
22659 2008-06-08  Bruno Haible  <bruno@clisp.org>
22660
22661         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22662
22663 2008-06-08  Jim Meyering  <meyering@redhat.com>
22664
22665         * modules/acl (Maintainer): Add Bruno Haible.
22666
22667 2008-06-07  Bruno Haible  <bruno@clisp.org>
22668
22669         Improve support for Tru64 ACLs.
22670         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22671         ACL on OSF/1.
22672
22673 2008-06-07  Bruno Haible  <bruno@clisp.org>
22674
22675         Add support for MacOS X ACLs.
22676         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22677         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22678         * lib/set-mode-acl.c (qset_acl): Likewise.
22679         * lib/copy-acl.c (qcopy_acl): Likewise.
22680
22681 2008-06-07  Bruno Haible  <bruno@clisp.org>
22682
22683         Fix memory leak introduced on 2008-05-22.
22684         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22685         use.
22686
22687 2008-06-07  Bruno Haible  <bruno@clisp.org>
22688
22689         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22690         to construct an empty ACL.
22691
22692 2008-06-07  Bruno Haible  <bruno@clisp.org>
22693
22694         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22695         precisely.
22696         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22697
22698 2008-06-07  Bruno Haible  <bruno@clisp.org>
22699
22700         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22701         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22702
22703 2008-06-07  Bruno Haible  <bruno@clisp.org>
22704
22705         * doc/posix-functions/_setjmp.texi: Explain the use of this function
22706         regardless of POSIX.
22707         * doc/posix-functions/_longjmp.texi: Likewise.
22708         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22709         SystemV platform in this case.
22710
22711 2008-06-06  Eric Blake  <ebb9@byu.net>
22712
22713         Document abort() bugs.
22714         * doc/posix-functions/abort.texi (abort): Mention anomalies.
22715
22716         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22717         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22718         sigsetjmp.
22719         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22720         siglongjmp, but only as a macro.
22721         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22722         is obsolete.
22723         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22724
22725         Tweak documentation to cover cygwin argz bugs.
22726         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22727         argz bug fix; no code change needed since no cygwin releases
22728         occurred between the last fix and the bug being tested.
22729         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22730         module and recently fixed cygwin bugs.
22731         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22732         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22733         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22734         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22735         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22736         Likewise.
22737         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22738         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22739         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22740         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22741         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22742         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22743         Likewise.
22744
22745         Avoid gcc warning on cygwin.
22746         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22747         !ACL_NO_TRIVIAL]: Avoid unused variable.
22748
22749 2008-06-05  Eric Blake  <ebb9@byu.net>
22750
22751         Be tolerant of UNKNOWN version in gnulib-tool test dir.
22752         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22753         git-version-gen fails to come up with a version.
22754         Reported by Simon Josefsson.
22755
22756 2008-06-05  Jim Meyering  <meyering@redhat.com>
22757             Paul Eggert  <eggert@cs.ucla.edu>
22758
22759         utimens.c: work around a probable Linux kernel bug
22760         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22761         appears to be a kernel bug that causes utimensat to return 280
22762         instead of 0, indicating success.
22763
22764 2008-06-04  Bruno Haible  <bruno@clisp.org>
22765
22766         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22767         2008-06-01 commit.
22768
22769 2008-06-04  Bruno Haible  <bruno@clisp.org>
22770
22771         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22772         * lib/file-has-acl.c (acl_access_nontrivial): New function.
22773         (file_has_acl): Use it. Save errno afterwards.
22774         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22775
22776 2008-06-03  Bruno Haible  <bruno@clisp.org>
22777
22778         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22779         draft code. Simplify #ifs.
22780         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22781         Put Solaris code after POSIX-draft code. Fix comments regarding
22782         Solaris 10, HP-UX. Mention Cygwin.
22783         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22784
22785 2008-06-03  Eric Blake  <ebb9@byu.net>
22786
22787         Provide fallback for older kernels.
22788         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22789         Provide runtime fallback if kernel lacks support.
22790         Reported by Mike Frysinger.
22791
22792 2008-06-02  Bruno Haible  <bruno@clisp.org>
22793
22794         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22795         it exists.
22796
22797 2008-06-02  Bruno Haible  <bruno@clisp.org>
22798
22799         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22800         * lib/copy-acl.c (qcopy_acl): Update comment.
22801
22802 2008-06-02  Bruno Haible  <bruno@clisp.org>
22803
22804         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22805         like ACL APIs.
22806
22807 2008-06-02  Bruno Haible  <bruno@clisp.org>
22808
22809         * tests/test-file-has-acl.sh: Use different code for Cygwin.
22810         * tests/test-set-mode-acl.sh: Likewise.
22811         * tests/test-copy-acl.sh: Likewise.
22812         * tests/test-copy-file.sh: Likewise.
22813
22814 2008-06-02  Bruno Haible  <bruno@clisp.org>
22815
22816         * tests/test-file-has-acl.sh: Remove unused code.
22817
22818 2008-06-01  Bruno Haible  <bruno@clisp.org>
22819
22820         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22821         (copy_acl): Just a wrapper around qcopy_acl that emits the error
22822         messages.
22823         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22824
22825 2008-06-01  Bruno Haible  <bruno@clisp.org>
22826
22827         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22828         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22829         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22830         APIs.
22831         * modules/acl-tests (configure.ac): Remove tests now contained in
22832         m4/acl.m4.
22833
22834 2008-06-02  Jim Meyering  <meyering@redhat.com>
22835
22836         announce-gen: use a better key-server host name
22837         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22838         it may be more consistently reliable.  Suggested by Werner Koch
22839         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22840
22841 2008-06-01  Bruno Haible  <bruno@clisp.org>
22842
22843         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22844         Reported by Voroskoi Andras <voroskoi@gmail.com>.
22845
22846 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
22847
22848         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22849
22850 2008-06-01  Bruno Haible  <bruno@clisp.org>
22851
22852         New ACL tests.
22853         * tests/test-file-has-acl.sh: New file.
22854         * tests/test-file-has-acl.c: New file.
22855         * tests/test-set-mode-acl.sh: New file.
22856         * tests/test-set-mode-acl.c: New file.
22857         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22858         * tests/test-copy-acl.c: New file.
22859         * modules/acl-tests: New file, based on modules/copy-file-tests.
22860         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22861         (Depends-on): Add acl-tests.
22862         (configure.ac): Remove checks.
22863         (Makefile.am): Don't create test-sameacls program here any more.
22864
22865 2008-06-01  Bruno Haible  <bruno@clisp.org>
22866
22867         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22868         * tests/test-sameacls.c: Include progname.h.
22869         (main): Invoke set_program_name. Portability fixes for MacOS X,
22870         Solaris, HP-UX.
22871
22872 2008-06-01  Bruno Haible  <bruno@clisp.org>
22873
22874         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22875         function.
22876         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22877
22878 2008-06-01  Bruno Haible  <bruno@clisp.org>
22879
22880         * modules/rpmatch (Depends-on): Add strdup.
22881
22882 2008-06-01  Bruno Haible  <bruno@clisp.org>
22883
22884         * lib/pipe.c: Include unistd-safer.h.
22885         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22886         * modules/pipe (Depends-on): Add unistd-safer.
22887
22888 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22889
22890         * modules/autobuild (configure.ac): Call AB_INIT.
22891
22892 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22893
22894         * tests/test-getaddrinfo.c: Don't print debug messages by default.
22895         Suggested by Bruno Haible <bruno@clisp.org>.
22896
22897 2008-05-30  Simon Josefsson  <simon@josefsson.org>
22898
22899         * tests/test-base64.c: Cast size_t to unsigned long when invoking
22900         printf.  Use %lu instead of %d.  Reported by Bruno Haible
22901         <bruno@clisp.org>.
22902
22903 2008-05-29  Eric Blake  <ebb9@byu.net>
22904
22905         Prefer new POSIX 200x interfaces over futimesat.
22906         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22907         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22908         when available.
22909         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22910
22911 2008-05-28  Bruno Haible  <bruno@clisp.org>
22912
22913         * modules/stpcpy (License): Change to LGPLv2+.
22914         Requested by David Lutterkort <dlutter@redhat.com>.
22915
22916 2008-05-27  Bruno Haible  <bruno@clisp.org>
22917
22918         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22919         current mingw.
22920         Reported by Jose E. Marchesi <jemarch@gnu.org>.
22921
22922 2008-05-27  Bruno Haible  <bruno@clisp.org>
22923
22924         * modules/iconv_open (Link): New section, from module 'iconv'.
22925         * modules/striconv (Link): Likewise.
22926         * modules/striconveh (Link): Likewise.
22927         * modules/xstriconv (Link): Likewise.
22928         * modules/unicodeio (Link): Likewise.
22929         * modules/propername (Link): Likewise.
22930         Reported by Jim Meyering.
22931
22932 2008-05-26  Jim Meyering  <meyering@redhat.com>
22933
22934         sha256: do not artificially restrict buffer length to be < 2^32
22935         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22936         uint32_t to size_t.
22937         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22938         to match.
22939
22940         avoid unaligned access errors, e.g., on sparc
22941         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22942         direct access through a possibly-unaligned uint64* pointer.
22943         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22944         direct access through a possibly-unaligned uint32* pointer.
22945         Prompted by this patch from Tom "spot" Callaway:
22946         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22947
22948         sha512.c: fix typo in comment
22949         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22950
22951 2008-05-25  Bruno Haible  <bruno@clisp.org>
22952
22953         * lib/set-mode-acl.c: Renamed from lib/acl.c.
22954         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22955         (Makefile.am): Update lib_SOURCES.
22956
22957 2008-05-25  Bruno Haible  <bruno@clisp.org>
22958
22959         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22960
22961 2008-05-25  Jim Meyering  <meyering@redhat.com>
22962
22963         useless-if-before-free: freed expr may have white-space differences
22964         * build-aux/useless-if-before-free: Recognize cases in which the
22965         freed expression differs from the tested one in embedded white
22966         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
22967         $1 was used, so we can't make any regexp shy.  Improved tests now
22968         detect this.
22969
22970         useless-if-before-free: accept white space in the expression.
22971         * build-aux/useless-if-before-free: For now, any white space
22972         in the expression must be identical in the free argument.
22973
22974         useless-if-before-free: efficiency tweak
22975         * build-aux/useless-if-before-free: Make the expression-matching
22976         regexp "shy".
22977         Make the *outer* regexp shy, not the expr-matching one.
22978
22979         update code-in-comment to accept cast of free arg
22980         * build-aux/useless-if-before-free: Update regexp.
22981
22982 2008-05-25  Bruno Haible  <bruno@clisp.org>
22983
22984         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22985         * modules/copy-file-tests (Files, Makefile.am): Update.
22986         * tests/test-copy-file.c (func_test_copy): Update.
22987
22988 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
22989
22990         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22991
22992 2008-05-23  Bruno Haible  <bruno@clisp.org>
22993
22994         Improve support for ACLs on OSF/1.
22995         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22996         Remove fallback for unknown flavors of ACLs.
22997
22998 2008-05-22  Bruno Haible  <bruno@clisp.org>
22999
23000         Add support for ACLs on OSF/1.
23001         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
23002         replacements.
23003         (acl_free_text): New macro fallback.
23004         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
23005         acl_free.
23006         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
23007         acl_free_text function. Require AC_C_INLINE.
23008
23009 2008-05-22  Bruno Haible  <bruno@clisp.org>
23010
23011         Make copy_acl work on MacOS X 10.5.
23012         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
23013         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
23014         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
23015         If MODE_INSIDE_ACL, don't assume that every system has the same text
23016         representation for ACLs as FreeBSD.
23017         * lib/copy-acl.c (copy_acl): Add support for platforms with
23018         !MODE_INSIDE_ACL.
23019         * lib/file-has-acl.c (file_has_acl): Likewise.
23020         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
23021         FreeBSD, MacOS X, or IRIX, respectively.
23022
23023 2008-05-22  Bruno Haible  <bruno@clisp.org>
23024
23025         * lib/acl.h: Don't include <sys/acl.h>.
23026         (GETACLCNT): Move fallback to lib/acl-internal.h.
23027         * lib/acl-internal.h: Include <sys/acl.h> here.
23028         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
23029
23030 2008-05-22  Bruno Haible  <bruno@clisp.org>
23031
23032         Split off copy_acl function to separate file.
23033         * lib/copy-acl.c: New file, extracted from lib/acl.c.
23034         * lib/acl.c (copy_acl): Moved function to separate file.
23035         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
23036         * modules/acl (Files): Add lib/copy-acl.c.
23037         (Makefiles.am): Augment lib_SOURCES.
23038
23039 2008-05-22  Bruno Haible  <bruno@clisp.org>
23040
23041         * modules/copy-file-tests: New file.
23042         * tests/test-copy-file.sh: New file.
23043         * tests/test-copy-file.c: New file.
23044         * tests/test-copy-file-sameacls.c: New file.
23045
23046 2008-05-22  Eric Blake  <ebb9@byu.net>
23047
23048         Avoid gcc warning.
23049         * tests/test-memcmp.c (main): Pass NULL indirectly.
23050
23051 2008-05-21  Bruno Haible  <bruno@clisp.org>
23052
23053         Add reference doc about ACLs.
23054         * doc/acl-resources.txt: New file.
23055         * doc/acl-cygwin.txt: New file.
23056
23057 2008-05-21  Bruno Haible  <bruno@clisp.org>
23058
23059         Avoid one more warning from gcc.
23060         * lib/vasnprintf.c (IF_LINT): Update comments.
23061         (VASNPRINTF): Use it also for the 'prefix' array initializer.
23062
23063 2008-05-21  Jim Meyering  <meyering@redhat.com>
23064
23065         avoid a warning from gcc
23066         * lib/vasnprintf.c (IF_LINT): Define.
23067         (scale10_round_decimal_long_double):
23068         Use it to avoid a "may be used uninitialized" warning.
23069         (scale10_round_decimal_double): Likewise.
23070
23071 2008-05-21  Simon Josefsson  <simon@josefsson.org>
23072
23073         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
23074         declared.
23075
23076 2008-05-20  Bruno Haible  <bruno@clisp.org>
23077
23078         * tests/test-memcmp.c (main): Test also the sign of the result. Test
23079         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
23080
23081 2008-05-20  Simon Josefsson  <simon@josefsson.org>
23082
23083         * modules/memcmp-tests: New file.
23084         * tests/test-memcmp.c: New file.
23085
23086 2008-05-19  Bruno Haible  <bruno@clisp.org>
23087
23088         * modules/propername (Notice, configure.ac): Put quoted "..." into
23089         --keyword option.
23090         * lib/propername.h: Update comments accordingly.
23091         Reported by Eric Blake.
23092
23093 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
23094
23095         * modules/getpass-gnu (Depends-on): Add fseeko.
23096
23097 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23098
23099         * modules/base64-tests: New file.
23100
23101 2008-05-19  Bo Borgerson <gigabo@gmail.com>
23102
23103         * lib/base64.c (base64_decode_ctx): If a decode context structure
23104         was passed in use it to ignore newlines.  If a context structure
23105         was _not_ passed in, continue to treat newlines as garbage (this
23106         is the historical behavior).  Formerly base64_decode.
23107         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23108         takes a decode context structure.
23109         * lib/base64.h (base64_decode): Macro for four-argument calls.
23110         (base64_decode_alloc): Likewise.
23111         * lib/base64.c (base64_decode_ctx): If a decode context structure
23112         was passed in use it to ignore newlines.  If a context structure
23113         was _not_ passed in, continue to treat newlines as garbage (this
23114         is the historical behavior).  Formerly base64_decode.
23115         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
23116         takes a decode context structure.
23117         * lib/base64.h (base64_decode): Macro for four-argument calls.
23118         (base64_decode_alloc): Likewise.
23119
23120 2008-05-19  Jim Meyering  <meyering@redhat.com>
23121
23122         avoid a warning from gcc
23123         * lib/trim.c (IF_LINT): Define.
23124         (trim2): Use it to avoid a "may be used uninitialized" warning.
23125
23126         Fix doc typo.
23127         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
23128
23129 2008-05-19  Bruno Haible  <bruno@clisp.org>
23130
23131         * doc/glibc-functions/getpass.texi: Document limits of other
23132         implementations.
23133
23134 2008-05-19  Simon Josefsson  <simon@josefsson.org>
23135             Bruno Haible <bruno@clisp.org>
23136
23137         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
23138
23139 2008-05-18  Bruno Haible  <bruno@clisp.org>
23140
23141         * modules/propername: New file, from GNU gettext.
23142         * lib/propername.h: New file, from GNU gettext.
23143         * lib/propername.c: New file, from GNU gettext.
23144         * MODULES.html.sh (Internationalization functions): Add propername.
23145
23146 2008-05-16  Jim Meyering  <meyering@redhat.com>
23147             Bruno Haible  <bruno@clisp.org>
23148
23149         Avoid some warnings from "gcc -Wshadow".
23150         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
23151
23152 2008-05-15  Eric Blake  <ebb9@byu.net>
23153
23154         Extend previous patch to cygwin 1.7.0.
23155         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
23156         fast implementation in cygwin >= 1.7.0.
23157         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23158         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23159
23160 2008-05-15  Bruno Haible  <bruno@clisp.org>
23161
23162         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
23163         implementation in glibc >= 2.9.
23164         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23165         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23166
23167 2008-05-15  Bruno Haible  <bruno@clisp.org>
23168
23169         * MODULES.html.sh (Internationalization functions): Remove linebreak.
23170         (Unicode string functions): Add unilbrk/*.
23171         Reported by Karl Berry.
23172
23173 2008-05-15  Eric Blake  <ebb9@byu.net>
23174
23175         Fix violation of <stdbool.h> replacement in regex.
23176         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
23177         * lib/regexec.c (re_search_internal): Likewise.
23178         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
23179
23180 2008-05-15  Jim Meyering  <meyering@redhat.com>
23181
23182         avoid distracting test output when git or cvs is not found
23183         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
23184         * tests/test-vc-list-files-git.sh: Likewise.
23185
23186 2008-05-15  Eric Blake  <ebb9@byu.net>
23187
23188         Glibc finally accepted the memmem speedup code, bugzilla #5514.
23189         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
23190         glibc version.
23191         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23192         * doc/posix-functions/strstr.texi (strstr): Likewise.
23193         * lib/str-two-way.h (MAX): Sychronize with glibc.
23194
23195 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
23196
23197         * lib/regcomp.c (optimize_utf8): Add a note on why we test
23198         opr.ctx_type.
23199         (calc_first): Initialize constraint field.
23200         (duplicate_node_closure): Use it instead of special casing ANCHORS.
23201         Fix grammar.
23202         (duplicate_node): Merge constraint field for all node types.
23203         (calc_eclosure_iter): Look at constraint field for all node types.
23204         * lib/regex_internal.c (create_cd_newstate): Don't look at
23205         opr.ctx_type.
23206
23207 2008-05-14  Bruno Haible  <bruno@clisp.org>
23208
23209         Help GCC to do better code generation.
23210         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
23211         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23212         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
23213         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
23214         Declare with attribute 'malloc' if supported.
23215
23216 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
23217
23218         use "echo STR|wc -c" rather than unportable "expr length STR"
23219         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
23220         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
23221
23222 2008-05-14  Jim Meyering  <meyering@redhat.com>
23223
23224         use dd ibs=$n count=1 ... rather than less-portable head -c$n
23225         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
23226         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
23227         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
23228         via Collin Lasse.
23229
23230 2008-05-14  Eric Blake  <ebb9@byu.net>
23231
23232         Avoid quadratic growth in gl_LIBSOURCES.
23233         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
23234         Suggested by Bruno Haible.
23235
23236         Test xmemdup0.
23237         * modules/xmemdup0-tests: New file.
23238         * tests/test-xmemdup0.c: Likewise.
23239
23240 2008-05-13  Eric Blake  <ebb9@byu.net>
23241
23242         Split xmemdup0 into its own module.
23243         * modules/xmemdup0: New file.
23244         * lib/xmemdup0.h: Likewise.
23245         * lib/xmemdup0.c: Likewise.
23246         * MODULES.html.sh (Memory management functions): Add xmemdup0.
23247         * lib/xalloc.h (xmemdup0): Remove.
23248         * lib/xmalloc.c (xmemdup0): Likewise.
23249
23250 2008-05-13  Eric Blake  <ebb9@byu.net>
23251             Bruno Haible  <bruno@clisp.org>
23252
23253         Reduce number of forks required during autoconf.
23254         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
23255         and gl_LIBSOURCES_DIR.
23256         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
23257         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
23258         m4_syscmd per file.
23259         <m4_foreach_w>: Move...
23260         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
23261
23262 2008-05-13  Eric Blake  <ebb9@byu.net>
23263
23264         * gnulib-tool: Fix various comment typos.
23265
23266 2008-05-12  Bruno Haible  <bruno@clisp.org>
23267
23268         Tailor the linebreaking algorithm.
23269         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
23270
23271 2008-05-12  Bruno Haible  <bruno@clisp.org>
23272
23273         Update to Unicode 5.0.0.
23274         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23275         LBP_JV, LBP_JT. Redistribute values.
23276         (unilbrk_table): Change size.
23277         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
23278         Unicode TR#14 rev. 22.
23279         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
23280         LBP_JV, LBP_JT. Redistribute values.
23281         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
23282         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
23283         Update.
23284         * lib/unilbrk/lbrkprop1.h: Regenerated.
23285         * lib/unilbrk/lbrkprop2.h: Regenerated.
23286         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
23287         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
23288         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
23289         Likewise.
23290         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
23291         Likewise.
23292         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
23293         result.
23294         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23295         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23296         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23297         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
23298         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
23299         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
23300
23301 2008-05-11  Bruno Haible  <bruno@clisp.org>
23302
23303         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
23304
23305 2008-05-11  Bruno Haible  <bruno@clisp.org>
23306
23307         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
23308         * modules/unilbrk/gen-lbrk: New file.
23309
23310 2008-05-11  Bruno Haible  <bruno@clisp.org>
23311
23312         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
23313         * m4/sha512.m4 (gl_SHA512): Likewise.
23314
23315 2008-05-11  Jim Meyering  <meyering@redhat.com>
23316
23317         New modules: crypto/sha256, crypto/sha512 (from coreutils)
23318         * modules/crypto/sha256: New file.
23319         * modules/crypto/sha512: Likewise.
23320         * lib/sha256.c: Likewise.
23321         * lib/sha256.h: Likewise.
23322         * lib/sha512.c: Likewise.
23323         * lib/sha512.h: Likewise.
23324         * lib/u64.h: Likewise.
23325         * m4/sha256.m4: Likewise.
23326         * m4/sha512.m4: Likewise.
23327         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
23328
23329 2008-05-10  Bruno Haible  <bruno@clisp.org>
23330
23331         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
23332         (Input/Output <stdio.h>): Add xprintf.
23333         (Signal handling <signal.h>): Add strsignal.
23334         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
23335         (Core language properties): Add func.
23336         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
23337         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
23338         strings.
23339         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
23340         (Input/output): New section.
23341         (File system functions): Add openat-die, stat-macros.
23342         (Networking functions): Add sockets.
23343         (Unicode string functions): Add unictype/*.
23344         (Support for building libraries and executables): Add gperf.
23345         (Support for building documentation): Add agpl-3.0.
23346         (Misc): Add nocrash.
23347
23348 2008-05-10  Bruno Haible  <bruno@clisp.org>
23349
23350         * modules/unictype/gen-ctype: New file.
23351
23352 2008-05-10  Jim Meyering  <meyering@redhat.com>
23353
23354         Make chdir-safer.c more efficient on a system with no symlinks.
23355         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
23356         also if ELOOP is zero.  Suggested by Bruno Haible.
23357
23358         Make chdir-safer.c slightly safer.
23359         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
23360         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
23361
23362         Avoid compile failure on systems without ELOOP (like mingw).
23363         * lib/chdir-safer.c (ELOOP): Define if not already defined.
23364         Reported by Bruno Haible.
23365
23366 2008-05-10  Bruno Haible  <bruno@clisp.org>
23367
23368         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
23369         (is_utf8_encoding): Use a case-insensitive comparison.
23370         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
23371         streq.
23372
23373 2008-05-10  Bruno Haible  <bruno@clisp.org>
23374
23375         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
23376         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
23377         * lib/unilbrk/ulc-common.h (iconv_string_length,
23378         iconv_string_keeping_offsets): Remove declarations.
23379         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
23380         Don't include <iconv.h>, streq.h, xsize.h.
23381         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
23382         conversion.
23383         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
23384         <iconv.h>, streq.h, xsize.h.
23385         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
23386         conversion.
23387         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
23388         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
23389         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
23390         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
23391
23392 2008-05-10  Bruno Haible  <bruno@clisp.org>
23393
23394         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
23395         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
23396
23397         * modules/unilbrk/u32-width-linebreaks-tests: New file.
23398         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
23399
23400         * modules/unilbrk/u16-width-linebreaks-tests: New file.
23401         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
23402
23403         * modules/unilbrk/u8-width-linebreaks-tests: New file.
23404         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
23405
23406         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
23407         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
23408
23409         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
23410         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
23411
23412         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
23413         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
23414
23415         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
23416         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
23417
23418 2008-05-10  Bruno Haible  <bruno@clisp.org>
23419
23420         Split up 'linebreak' module.
23421         * lib/unilbrk.h: New file, based on lib/linebreak.h.
23422         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
23423         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
23424         modifications.
23425         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
23426         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
23427         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
23428         lib/linebreak.c.
23429         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
23430         lib/linebreak.c.
23431         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
23432         lib/linebreak.c.
23433         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
23434         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
23435         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
23436         lib/linebreak.c.
23437         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
23438         lib/linebreak.c.
23439         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
23440         lib/linebreak.c.
23441         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
23442         lib/linebreak.c.
23443         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
23444         lib/linebreak.c.
23445         * modules/unilbrk/base: New file.
23446         * modules/unilbrk/tables: New file.
23447         * modules/unilbrk/u8-possible-linebreaks: New file.
23448         * modules/unilbrk/u16-possible-linebreaks: New file.
23449         * modules/unilbrk/u32-possible-linebreaks: New file.
23450         * modules/unilbrk/ulc-common: New file.
23451         * modules/unilbrk/ulc-possible-linebreaks: New file.
23452         * modules/unilbrk/u8-width-linebreaks: New file.
23453         * modules/unilbrk/u16-width-linebreaks: New file.
23454         * modules/unilbrk/u32-width-linebreaks: New file.
23455         * modules/unilbrk/ulc-width-linebreaks: New file.
23456         * lib/linebreak.h: Remove file.
23457         * lib/linebreak.c: Remove file.
23458         * m4/linebreak.m4: Remove file.
23459         * modules/linebreak: Remove file.
23460         * NEWS: Mention the changes.
23461
23462 2008-05-09  Eric Blake  <ebb9@byu.net>
23463
23464         Add xmemdup0.
23465         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23466         implementation.
23467         * lib/xmalloc.c (xmemdup0): New C implementation.
23468
23469 2008-05-08  Bruno Haible  <bruno@clisp.org>
23470
23471         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23472
23473 2008-05-07  Eric Blake  <ebb9@byu.net>
23474
23475         Support cross-compilation of <wctype.h>.
23476         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23477         AC_CACHE_CHECK.
23478
23479 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
23480
23481         * build-aux/vc-list-files: Add support for bzr.
23482
23483 2008-05-03  Jim Meyering  <meyering@redhat.com>
23484
23485         avoid failed assertion with tight malloc
23486         * tests/test-getndelim2.c: Correct an off-by-one assertion.
23487
23488 2008-05-03  Simon Josefsson  <simon@josefsson.org>
23489
23490         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23491         are needed from arpa/inet.h.
23492         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23493         Reported by Bruno Haible.
23494
23495 2008-05-02  Jim Meyering  <meyering@redhat.com>
23496
23497         avoid compilation error on FreeBSD 6
23498         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23499
23500 2008-05-01  Jim Meyering  <meyering@redhat.com>
23501
23502         useless-if-before-free: correct --help's exit status description
23503         * build-aux/useless-if-before-free (usage): Like grep, exit 0
23504         for one or more matches, etc.  Reported by Bruno Haible.
23505
23506         vc-list-files: make the stand-alone gnulib test work
23507         * modules/vc-list-files-tests (configure.ac):
23508         Define and AC_SUBST abs_aux_dir.
23509         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23510         $(abs_top_srcdir) to each script and having each of them
23511         duplicate the work of setting PATH, set PATH here, using
23512         the new variable, abs_aux_dir instead.
23513         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23514         * tests/test-vc-list-files-git.sh: Likewise.
23515         Reported by Bruno Haible.
23516
23517 2008-05-01  Bruno Haible  <bruno@clisp.org>
23518
23519         * lib/getndelim2.c (getndelim2): Fix newsize computation during
23520         reallocation. Rename 'done' to 'found_delimiter'.
23521
23522 2008-05-01  Jim Meyering  <meyering@redhat.com>
23523
23524         vc-list-files: accommodate /bin/sh like the one from Solaris 10
23525         * build-aux/vc-list-files: Use `...`, not $(...).
23526
23527 2008-04-30  Jim Meyering  <meyering@redhat.com>
23528
23529         add tests for vc-list-files
23530         * modules/vc-list-files-tests: New module.
23531         * tests/test-vc-list-files-cvs.sh: New file.
23532         * tests/test-vc-list-files-git.sh: New file.
23533
23534         avoid a warning from gcc
23535         * lib/getndelim2.c (IF_LINT): Define.
23536         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23537
23538         vc-list-files: work properly with build-aux/cvsu, too
23539         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23540         to all cvs-based clauses.
23541
23542         vc-list-files: work properly in the CVS+awk case, too
23543         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23544
23545         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23546         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23547         take more than one file argument, so .  Add quotes, just in case $dir
23548         ever contains a shell meta-character.  Prompted by Soren Hansen in
23549         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23550
23551 2008-04-29  Eric Blake  <ebb9@byu.net>
23552
23553         Optimize getndelim2 to use block operations when possible.
23554         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23555         freadseek, and memchr2.
23556         * lib/getndelim2.c (getndelim2): Use them for block reads.
23557
23558 2008-04-29  Bruno Haible  <bruno@clisp.org>
23559
23560         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23561         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23562         * modules/inet_ntop (Depends-on): Add extensions.
23563         * modules/inet_pton (Depends-on): Likewise.
23564         Reported by Simon Josefsson.
23565
23566 2008-04-29  Jim Meyering  <meyering@redhat.com>
23567
23568         When the is more than one match in a block, match all of them.
23569         * build-aux/useless-if-before-free: Iterate through each block
23570         until there are no more matches.
23571
23572         Fix broken useless-if-before-free script.
23573         * build-aux/useless-if-before-free: Fix typo: missing "?" after
23574         the expression to match cast of argument to free-like function.
23575
23576 2008-04-29  Eric Blake  <ebb9@byu.net>
23577
23578         Use new header.
23579         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23580
23581 2008-04-29  Jim Meyering  <meyering@redhat.com>
23582
23583         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23584         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23585         by gnulib to exist and to declare e.g., inet_ntop.
23586         Don't include "inet_ntop.h", now removed.
23587
23588         * m4/arpa_inet_h.m4: Remove trailing blanks.
23589
23590 2008-04-29  Eric Blake  <ebb9@byu.net>
23591
23592         Silence valgrind on safe reads beyond potential array bounds.
23593         * lib/rawmemchr.valgrind: New file.
23594         * lib/strchrnul.valgrind: Likewise.
23595         * modules/rawmemchr (Files): Distribute new file.
23596         * modules/strchrnul (Files): Likewise.
23597         Suggested by Bruno Haible.
23598
23599 2008-04-29  Bruno Haible  <bruno@clisp.org>
23600
23601         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23602         (inet_ntop, inet_pton): Change portability warning's wording.
23603         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23604         Invoke gl_CHECK_NEXT_HEADERS.
23605         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23606         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23607         set ARPA_INET_H.
23608         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23609         * modules/arpa_inet (Description): No longer only for systems that
23610         lack it.
23611         (Depends-on): Add include_next.
23612         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23613         HAVE_ARPA_INET_H.
23614
23615 2008-04-29  Jim Meyering  <meyering@redhat.com>
23616
23617         * modules/mkdir (License): Re-license as LGPLv2+.
23618
23619 2008-04-29  Bruno Haible  <bruno@clisp.org>
23620
23621         * modules/rawmemchr (Maintainer): Set to Eric.
23622         * modules/strchrnul (Maintainer): Likewise.
23623
23624 2008-04-29  Simon Josefsson  <simon@josefsson.org>
23625
23626         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23627         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23628
23629         * modules/arpa_inet (arpa/inet.h): Use them.
23630
23631 2008-04-28  Eric Blake  <ebb9@byu.net>
23632
23633         Test getndelim2.
23634         * modules/getndelim2-tests: New file.
23635         * tests/test-getndelim2.c: Likewise.
23636         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
23637         stream.
23638         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23639
23640         * MODULES.html.sh: Document new module.
23641
23642 2008-04-20  Bruno Haible  <bruno@clisp.org>
23643
23644         * lib/c-stack.c (die): Use raise.
23645         * modules/c-stack (Depends-on): Add raise.
23646
23647 2008-04-28  Bruno Haible  <bruno@clisp.org>
23648
23649         Expect rpmatch to be declared.
23650         * lib/yesno.c (rpmatch): Remove declaration.
23651
23652         Declare rpmatch.
23653         * lib/stdlib.in.h (rpmatch): New declaration.
23654         * lib/rpmatch.c: Include <stdlib.h> first.
23655         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23656         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23658         HAVE_RPMATCH.
23659         * modules/rpmatch (Depends-on): Add stdlib, extensions.
23660         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23661         (Include): Set to <stdlib.h>.
23662         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23663         HAVE_RPMATCH.
23664         * NEWS: Document the change.
23665
23666 2008-04-28  Bruno Haible  <bruno@clisp.org>
23667
23668         Change rpmatch to use nl_langinfo when appropriate.
23669         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23670         (N_): New macro.
23671         (localized_pattern): New function/macro.
23672         (try): Remove match, nomatch arguments. Copy the pattern into safe
23673         memory before caching it.
23674         (rpmatch): Use localized_pattern. Add translator comments.
23675         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23676         Suggested by Eric Blake.
23677         * modules/rpmatch (Depends-on): Add stdbool.
23678
23679 2008-04-28  Eric Blake  <ebb9@byu.net>
23680
23681         Add rawmemchr module, matching glibc.
23682         * modules/string (Makefile.am): New indicator.
23683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23684         * lib/string.in.h (rawmemchr): Declare when appropriate.
23685         * modules/rawmemchr: New file.
23686         * m4/rawmemchr.m4: Likewise.
23687         * lib/rawmemchr.c: Likewise.
23688         * modules/rawmemchr-tests: Likewise.
23689         * tests/test-rawmemchr.c: Likewise.
23690         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23691         module.
23692         * modules/strchrnul (Depends-on): Add rawmemchr.
23693         * lib/strchrnul.c (strchrnul): Optimize a corner case.
23694
23695         Whitespace cleanup.
23696         * tests/test-strchrnul.c: Reindent.
23697         * lib/strchrnul.c: Likewise.
23698
23699         Optimize and test strchrnul.
23700         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23701         * modules/strchrnul-tests: New file.
23702         * tests/test-strchrnul.c: Likewise.
23703
23704         Remove intprops dependency.
23705         * modules/memchr (Depends-on): Remove intprops.
23706         * modules/memrchr (Depends-on): Likewise.
23707         * modules/memchr2 (Depends-on): Likewise.
23708         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23709         * lib/memrchr.c (__memrchr): Likewise.
23710         * lib/memrchr2.c (memchr2): Likewise.
23711         Reported by Simon Josefsson.
23712
23713 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23714
23715         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23716         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23717
23718 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23719
23720         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23721
23722         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23723
23724         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23725
23726         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23727         declarations.
23728         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23729
23730         * m4/inet_pton.m4: Don't check for header files.
23731
23732         * m4/inet_ntop.m4: Don't check for header files.
23733
23734 2008-04-28  Simon Josefsson  <simon@josefsson.org>
23735
23736         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23737         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23738         trigger for cygwin).
23739         Reported by Bruno Haible  <bruno@clisp.org>.
23740
23741 2008-04-28  Bruno Haible  <bruno@clisp.org>
23742
23743         * doc/posix-functions/strdup.texi: Mention mingw problem.
23744
23745 2008-04-27  Bruno Haible  <bruno@clisp.org>
23746
23747         * modules/stat-time-tests (Depends-on): Add sleep.
23748         * tests/test-stat-time.c (force_unlink): New function.
23749         (cleanup): Use it.
23750         (test_mtime): Remove the ctime related tests.
23751         (test_ctime): New function, containing the ctime related tests.
23752         (main): Call test_ctime, except on native Windows platforms.
23753
23754 2008-04-27  Bruno Haible  <bruno@clisp.org>
23755
23756         * lib/rpmatch.c (rpmatch): Add some comments.
23757         Reported by James Youngman <jay@gnu.org>.
23758
23759 2008-04-27  Bruno Haible  <bruno@clisp.org>
23760
23761         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23762         quiet NaNs.
23763
23764 2008-04-27  Bruno Haible  <bruno@clisp.org>
23765
23766         Make test-yesno.sh work on mingw.
23767         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23768         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23769         (main): Set stdin to binary mode.
23770         * modules/yesno-tests (Depends-on): Add binary-io.
23771
23772 2008-04-27  Bruno Haible  <bruno@clisp.org>
23773
23774         Fix 'isfinite' on x86, x86_64, ia64 platforms.
23775         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23776         argument that lie outside the IEEE 854 domain.
23777         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23778         (gl_ISFINITE): Use it.
23779         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23780
23781 2008-04-27  Bruno Haible  <bruno@clisp.org>
23782
23783         Allow local renaming in config.h.
23784         * lib/memrchr.c (memrchr): Don't undefine outside libc.
23785
23786 2008-04-27  Bruno Haible  <bruno@clisp.org>
23787
23788         * lib/memchr.c (__memchr): Change type of 'i'.
23789         * lib/memchr2.c (memchr2): Likewise.
23790
23791 2008-04-26  Eric Blake  <ebb9@byu.net>
23792         and Bruno Haible  <bruno@clisp.org>
23793
23794         Optimize and test memrchr.
23795         * modules/memrchr (Depends-on): Add intprops.
23796         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23797         * modules/memrchr-tests: New file.
23798         * tests/test-memrchr.c: New file.
23799
23800 2008-04-26  Bruno Haible  <bruno@clisp.org>
23801
23802         Add tentative support for DragonFly BSD.
23803         * lib/stdio-impl.h: Add macros for DragonFly BSD.
23804         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23805         fp.
23806         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23807         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23808         * lib/fpurge.c (fpurge): Likewise.
23809         * lib/freadable.c (freaadable): Likewise.
23810         * lib/freadahead.c (freadahead): Likewise.
23811         * lib/freading.c (freading): Likewise.
23812         * lib/freadptr.c (freadptr): Likewise.
23813         * lib/freadseek.c (freadptrinc): Likewise.
23814         * lib/fseeko.c (fseeko): Likewise.
23815         * lib/fseterr.c (fseterr): Likewise.
23816         * lib/fwritable.c (fwritable): Likewise.
23817         * lib/fwriting.c (fwriting): Likewise.
23818
23819 2008-04-26  Bruno Haible  <bruno@clisp.org>
23820
23821         * lib/stdio-impl.h: New file.
23822         * lib/fbufmode.c: Include stdio-impl.h.
23823         (fbufmode): Use fp_, remove redundant #defines.
23824         * lib/fflush.c: Include stdio-impl.h.
23825         (clear_ungetc_buffer): Remove redundant #defines.
23826         * lib/fpurge.c: Include stdio-impl.h.
23827         (fpurge): Remove redundant #defines.
23828         * lib/freadable.c: Include stdio-impl.h.
23829         (freadable): Remove redundant #defines.
23830         * lib/freadahead.c: Include stdio-impl.h.
23831         (freadahead): Remove redundant #defines.
23832         * lib/freading.c: Include stdio-impl.h.
23833         (freading): Remove redundant #defines.
23834         * lib/freadptr.c: Include stdio-impl.h.
23835         (freadptr): Remove redundant #defines.
23836         * lib/freadseek.c: Include stdio-impl.h.
23837         (freadptrinc): Remove redundant #defines.
23838         * lib/fseeko.c: Include stdio-impl.h.
23839         (rpl_fseeko): Remove redundant #defines.
23840         * lib/fseterr.c: Include stdio-impl.h.
23841         (fseterr): Remove redundant #defines.
23842         * lib/fwritable.c: Include stdio-impl.h.
23843         (fwritable: Remove redundant #defines.
23844         * lib/fwriting.c: Include stdio-impl.h.
23845         (fwriting): Remove redundant #defines.
23846         * modules/fbufmode (Files): Add lib/stdio-impl.h.
23847         * modules/fflush (Files): Likewise.
23848         * modules/fpurge (Files): Likewise.
23849         * modules/freadable (Files): Likewise.
23850         * modules/freadahead (Files): Likewise.
23851         * modules/freading (Files): Likewise.
23852         * modules/freadptr (Files): Likewise.
23853         * modules/freadseek (Files): Likewise.
23854         * modules/fseeko (Files): Likewise.
23855         * modules/fseterr (Files): Likewise.
23856         * modules/fwritable (Files): Likewise.
23857         * modules/fwriting (Files): Likewise.
23858
23859 2008-04-26  Bruno Haible  <bruno@clisp.org>
23860
23861         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23862         restore_seek_optimization, update_fpos_cache): New functions, extracted
23863         from rpl_fflush.
23864         (rpl_fflush): Use them.
23865         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23866         (gl_REPLACE_FFLUSH): Use it.
23867
23868 2008-04-26  Bruno Haible  <bruno@clisp.org>
23869
23870         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23871         on Solaris.
23872         * tests/test-xstrtoimax.sh: Likewise.
23873         * tests/test-xstrtoumax.sh: Likewise.
23874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23875
23876 2008-04-26  Bruno Haible  <bruno@clisp.org>
23877
23878         * modules/memchr-tests: New file.
23879         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23880
23881 2008-04-26  Eric Blake  <ebb9@byu.net>
23882             Bruno Haible  <bruno@clisp.org>
23883
23884         * lib/memchr.c: Include intprops.h.
23885         (__memchr): Optimize parallel detection of matching bytes. Rename local
23886         variables. Add explanatory comments.
23887
23888 2008-04-26  Bruno Haible  <bruno@clisp.org>
23889
23890         Fix module 'memchr', broken since 2000-10-28.
23891         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23892
23893 2008-04-26  Bruno Haible  <bruno@clisp.org>
23894
23895         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23896         comments.
23897
23898 2008-04-25  Eric Blake  <ebb9@byu.net>
23899
23900         Use native fstatat on cygwin 1.7.0.
23901         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23902         first.
23903
23904 2008-04-23  Eric Blake  <ebb9@byu.net>
23905
23906         Improve memchr2 performance.
23907         * lib/memchr2.c (memchr2): Further optimize parallel detection of
23908         NUL bytes.
23909         * modules/memchr2 (Depends-on): Use intprops.h.
23910
23911 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23912
23913         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23914         an inline function instead of a CPP macro.  Patch by Ben Pfaff
23915         <blp@cs.stanford.edu>.
23916
23917 2008-04-23  Simon Josefsson  <simon@josefsson.org>
23918
23919         * lib/arpa_inet.in.h: New file.
23920
23921         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23922         (Makefile.am): Sed in substitute header file.
23923
23924         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23925         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
23926
23927         * modules/inet_ntop (configure.ac): Use
23928         gl_ARPA_INET_MODULE_INDICATOR.
23929
23930         * modules/inet_pton (configure.ac): Use
23931         gl_ARPA_INET_MODULE_INDICATOR.
23932
23933 2008-04-22  Jim Meyering  <meyering@redhat.com>
23934
23935         * modules/verify (License): Re-license as LGPLv2+.
23936
23937 2008-04-22  Simon Josefsson  <simon@josefsson.org>
23938
23939         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23940         parameter to void* as per POSIX standard (MinGW uses char*).
23941
23942 2008-04-21  Bruno Haible  <bruno@clisp.org>
23943
23944         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23945         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23946         Define to replacements if REPLACE_ISWCNTRL is 1.
23947         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23948         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23949         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23950         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23951         what it fixes.
23952         * doc/posix-functions/iswalpha.texi: Likewise.
23953         * doc/posix-functions/iswblank.texi: Likewise.
23954         * doc/posix-functions/iswcntrl.texi: Likewise.
23955         * doc/posix-functions/iswdigit.texi: Likewise.
23956         * doc/posix-functions/iswgraph.texi: Likewise.
23957         * doc/posix-functions/iswlower.texi: Likewise.
23958         * doc/posix-functions/iswprint.texi: Likewise.
23959         * doc/posix-functions/iswpunct.texi: Likewise.
23960         * doc/posix-functions/iswspace.texi: Likewise.
23961         * doc/posix-functions/iswupper.texi: Likewise.
23962         * doc/posix-functions/iswxdigit.texi: Likewise.
23963         Reported by Alain Guibert.
23964
23965 2008-04-21  Bruno Haible  <bruno@clisp.org>
23966
23967         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23968         Patch by Alain Guibert.
23969
23970 2008-04-21  Bruno Haible  <bruno@clisp.org>
23971
23972         Fix test failures on mingw.
23973         * tests/test-xstrtol.c (print_no_progname): New function.
23974         (main): Install it in error_print_progname hook.
23975         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23976         * tests/test-xstrtoimax.sh: Likewise.
23977         * tests/test-xstrtoumax.sh: Likewise.
23978
23979 2008-04-21  Bruno Haible  <bruno@clisp.org>
23980
23981         Fix test failure on mingw.
23982         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23983
23984 2008-04-21  Bruno Haible  <bruno@clisp.org>
23985
23986         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23987         Actually assign a value.
23988
23989 2008-04-20  Bruno Haible  <bruno@clisp.org>
23990
23991         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23992         take 2.
23993         * lib/canonicalize.c (canonicalize_file_name): Elide if the
23994         'canonicalize-lgpl' module is also used.
23995         * lib/canonicalize-lgpl.c: Undo last change.
23996         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23997
23998 2008-04-20  Bruno Haible  <bruno@clisp.org>
23999
24000         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
24001         config.h. Provide _mkdir based fallback for mingw.
24002         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
24003         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
24004         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
24005         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
24006         rather than defining mkdir in config.h.
24007         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
24008         (gl_SYS_STAT_H_DEFAULTS): New macro.
24009         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
24010         HAVE_IO_H any more.
24011         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
24012         HAVE_DECL_MKDIR and HAVE_IO_H.
24013
24014 2008-04-20  Bruno Haible  <bruno@clisp.org>
24015
24016         * lib/isapipe.c: Port to native Windows platforms.
24017
24018 2008-04-20  Bruno Haible  <bruno@clisp.org>
24019
24020         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
24021
24022 2008-04-21  Eric Blake  <ebb9@byu.net>
24023
24024         Work around preprocessors that don't handle UINTMAX_MAX.
24025         * lib/memchr2.c (memchr2): Avoid embedded #if.
24026         Reported by Alain Guibert, fix suggested by Bruno Haible.
24027
24028 2008-04-21  Simon Josefsson  <simon@josefsson.org>
24029
24030         * doc/posix-functions/strftime.texi (strftime): Explain better
24031         Windows incompatibility.  Suggested by Micah Cowan
24032         <micah@cowan.name>.
24033
24034 2008-04-20  Bruno Haible  <bruno@clisp.org>
24035
24036         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
24037         unistr/u8-mblen.
24038
24039 2008-04-20  Bruno Haible  <bruno@clisp.org>
24040
24041         Fix test failure on platforms with non-GNU iconv.
24042         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
24043         (U_TO_U8): Use it, rather than u16_to_u8.
24044         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
24045         units at the end of the input string.
24046         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
24047
24048 2008-04-20  Bruno Haible  <bruno@clisp.org>
24049
24050         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
24051         when the resulting length is 0.
24052         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
24053
24054 2008-04-20  Bruno Haible  <bruno@clisp.org>
24055
24056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
24057         works.
24058         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
24059
24060 2008-04-20  Bruno Haible  <bruno@clisp.org>
24061
24062         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
24063         * modules/tsearch-tests (configure.ac): Test for initstate function.
24064
24065 2008-04-20  Bruno Haible  <bruno@clisp.org>
24066
24067         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
24068         for nlink_t if missing.
24069         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
24070
24071 2008-04-19  Bruno Haible  <bruno@clisp.org>
24072
24073         Work around snprintf bug on Linux libc5.
24074         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
24075         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24076         gl_SNPRINTF_SIZE1.
24077         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24078         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
24079         that test failed.
24080         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
24081         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
24082         * modules/snprintf (Files): Add m4/printf.m4.
24083         * modules/vsnprintf (Files): Likewise.
24084         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
24085         * doc/posix-functions/vsnprintf.texi: Likewise.
24086
24087 2008-04-19  Bruno Haible  <bruno@clisp.org>
24088
24089         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
24090         from 0.0058 to less than 10^-7.
24091
24092 2008-04-19  Bruno Haible  <bruno@clisp.org>
24093
24094         Fix rounding when a precision is given.
24095         * lib/vasnprintf.c (is_borderline): New function.
24096         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
24097         9...9x.
24098         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
24099         %e, %g.
24100         * tests/test-vasprintf-posix.c (test_function): Likewise.
24101         * tests/test-snprintf-posix.h (test_function): Likewise.
24102         * tests/test-sprintf-posix.h (test_function): Likewise.
24103         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
24104         * tests/test-printf-posix.h (test_function): Likewise.
24105         * tests/test-printf-posix.output: Update.
24106         Reported by John Darrington <john@darrington.wattle.id.au> via
24107         Ben Pfaff <blp@cs.stanford.edu>.
24108
24109 2008-04-18  Simon Josefsson  <simon@josefsson.org>
24110
24111         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
24112         Suggested by Bruno Haible <bruno@clisp.org>.
24113
24114 2008-04-17  Bruno Haible  <bruno@clisp.org>
24115
24116         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
24117         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
24118         implementation.
24119         Patch by Bruce Merry <bmerry@gmail.com>.
24120
24121 2008-04-17  Simon Josefsson  <simon@josefsson.org>
24122
24123         * doc/posix-functions/strftime.texi (strftime): Mention that %e
24124         doesn't work under Windows.
24125
24126 2008-04-16  Bruno Haible  <bruno@clisp.org>
24127
24128         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
24129         New macros.
24130         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
24131         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
24132         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
24133         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
24134         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
24135         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
24136         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
24137         macros.
24138         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
24139         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
24140         Northern Sotho, Uighur.
24141
24142 2008-04-16  Bruno Haible  <bruno@clisp.org>
24143
24144         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
24145         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
24146         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
24147         Reported by Daniel Bergström <daniel@octocode.com>.
24148
24149 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
24150             Bruno Haible  <bruno@clisp.org>
24151
24152         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
24153         function.
24154         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
24155         New functions, mostly extracted from gl_locale_name_default.
24156         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
24157
24158 2008-04-16  Eric Blake  <ebb9@byu.net>
24159
24160         Adjust strtod detection to catch glibc 2.7 bug.
24161         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
24162         Reported by John Gatewood Ham.
24163
24164 2008-04-16  Bruno Haible  <bruno@clisp.org>
24165
24166         Add tentative support for Linux libc5.
24167         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
24168         * lib/fpurge.c (fpurge): Likewise.
24169         * lib/freadable.c (freadable): Likewise.
24170         * lib/freadahead.c (freadahead): Likewise.
24171         * lib/freading.c (freading): Likewise.
24172         * lib/freadptr.c (freadptr): Likewise.
24173         * lib/freadseek.c (freadptrinc): Likewise.
24174         * lib/fseeko.c (rpl_fseeko): Likewise.
24175         * lib/fseterr.c (fseterr): Likewise.
24176         * lib/fwritable.c (fwritable): Likewise.
24177         * lib/fwriting.c (fwriting): Likewise.
24178         Reported by Alain Guibert <alguibert+bts@free.fr>.
24179
24180 2008-04-15  Bruno Haible  <bruno@clisp.org>
24181
24182         * modules/mathl (configure.ac): Define module indicator.
24183
24184 2008-04-15  Bruno Haible  <bruno@clisp.org>
24185
24186         * lib/logl.c (logl): Remove unused variables.
24187
24188 2008-04-15  Bruno Haible  <bruno@clisp.org>
24189
24190         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
24191         fails.
24192
24193 2008-04-15  Bruno Haible  <bruno@clisp.org>
24194
24195         * lib/trim.c (trim2): Fix argument of isspace() macro.
24196
24197 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
24198
24199         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
24200         to 0.
24201         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
24202
24203 2008-04-14  Bruno Haible  <bruno@clisp.org>
24204
24205         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
24206         AC_LANG_PROGRAM argument.
24207         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
24208         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
24209         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24210         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24211         * m4/math_h.m4 (gl_MATH_H): Likewise.
24212         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24213         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24214         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24215         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
24216         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24217         * m4/regex.m4 (gl_REGEX): Likewise.
24218         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24219         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
24220         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24221         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
24222         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
24223         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24224         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24225         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24226
24227 2008-04-14  Jim Meyering  <meyering@redhat.com>
24228
24229         test-strtod: fix typos: s/abs/fabs/
24230         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
24231
24232 2008-04-13  Bruno Haible  <bruno@clisp.org>
24233
24234         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
24235         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
24236         module is also used and while not building the reloc-wrapper.
24237
24238 2008-04-13  Bruno Haible  <bruno@clisp.org>
24239
24240         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
24241
24242 2008-04-13  Bruno Haible  <bruno@clisp.org>
24243
24244         Fix AIX compilation failure introduced on 2008-04-02.
24245         * tests/test-frexp.c (exp): Undefine before redefining.
24246         * tests/test-frexpl.c (exp): Likewise.
24247
24248 2008-04-13  Bruno Haible  <bruno@clisp.org>
24249
24250         Work around a HP-UX stdio bug.
24251         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
24252         * tests/test-ftello.c (main): Likewise.
24253         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
24254         * doc/posix-functions/ftello.texi: Likewise.
24255
24256 2008-04-13  Bruno Haible  <bruno@clisp.org>
24257
24258         Make test-signbit pass on HP-UX/hppa.
24259         * tests/test-signbit.c (minus_zerol): New variable.
24260         (test_signbitl): Use it.
24261
24262 2008-04-13  Bruno Haible  <bruno@clisp.org>
24263
24264         Make truncl work on OSF/1 4.0.
24265         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
24266         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24267         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
24268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
24269         HAVE_DECL_TRUNCL.
24270         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
24271         HAVE_DECL_TRUNCL.
24272         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
24273
24274 2008-04-13  Bruno Haible  <bruno@clisp.org>
24275
24276         * lib/unictype.h: Remove trailing comma from enumeration definitions.
24277
24278 2008-04-13  Bruno Haible  <bruno@clisp.org>
24279
24280         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
24281         expression, so as to avoid HP-UX 11 cc compiler bug.
24282
24283 2008-04-13  Bruno Haible  <bruno@clisp.org>
24284
24285         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
24286
24287 2008-04-13  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/git-merge-changelog.c: Remove empty declaration outside of
24290         functions.
24291
24292 2008-04-13  Bruno Haible  <bruno@clisp.org>
24293
24294         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
24295
24296 2008-04-13  Bruno Haible  <bruno@clisp.org>
24297
24298         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
24299         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
24300         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
24301         also if it exists but lacks definitions of the SHUT_* macros.
24302         * modules/sys_socket (Description): Update.
24303         Reported by Elbert Pol <e.pol@chello.nl>.
24304
24305 2008-04-13  Bruno Haible  <bruno@clisp.org>
24306
24307         * lib/localcharset.c (OS2): Don't redefine if already defined.
24308         Reported by Elbert Pol <e.pol@chello.nl>.
24309
24310 2008-04-13  Bruno Haible  <bruno@clisp.org>
24311
24312         * lib/binary-io.h [__EMX__]: Include <io.h>.
24313         Reported by Elbert Pol <e.pol@chello.nl>.
24314
24315 2008-04-12  Bruno Haible  <bruno@clisp.org>
24316
24317         * lib/fpucw.h: Enable the definitions also for x86_64.
24318         Needed for NetBSD/x86_64.
24319         Reported by Thomas Klausner <tk@giga.or.at>.
24320
24321 2008-04-12  Bruno Haible  <bruno@clisp.org>
24322
24323         * tests/test-strtod.c: Include isnand.h.
24324         (main): Use isnand instead of isnan.
24325         Reported by Jim Meyering.
24326
24327 2008-04-12  Bruno Haible  <bruno@clisp.org>
24328
24329         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
24330         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
24331
24332 2008-04-12  Jim Meyering  <meyering@redhat.com>
24333
24334         * m4/math_h.m4 (gl_MATH_H): Fix typos.
24335
24336 2008-04-12  Bruno Haible  <bruno@clisp.org>
24337
24338         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
24339         Reported by Elbert Pol <e.pol@chello.nl>.
24340
24341 2008-04-12  Eric Blake  <ebb9@byu.net>
24342
24343         Work around Solaris 10 math.h bug.
24344         * m4/math_h.m4 (gl_MATH_H): Check for bug.
24345         (gl_MATH_H_DEFAULTS): Set up default.
24346         * modules/math (Makefile.am): Replace new indicators.
24347         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
24348         * tests/test-math.c (main): Test this.
24349         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
24350         * doc/posix-headers/math.texi (math.h): Mention bug.
24351         Reported by Nelson H. F. Beebe and Jim Meyering.
24352
24353 2008-04-11  Bruno Haible  <bruno@clisp.org>
24354
24355         Adapt to future versions of Apple GCC.
24356         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
24357         Reported by Peter O'Gorman <peter@pogma.com>.
24358
24359 2008-04-11  Bruno Haible  <bruno@clisp.org>
24360
24361         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
24362
24363 2008-04-11  Bruno Haible  <bruno@clisp.org>
24364
24365         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
24366
24367         * modules/getaddrinfo-tests (Makefile.am): Define
24368         test_getaddrinfo_LDADD.
24369
24370 2008-04-11  Bruno Haible  <bruno@clisp.org>
24371
24372         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
24373         (init): Fix syntax error.
24374         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
24375         is declared.
24376
24377 2008-04-11  Bruno Haible  <bruno@clisp.org>
24378
24379         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
24380         * modules/glob (Depends-on): Add stdbool.
24381
24382 2008-04-11  Bruno Haible  <bruno@clisp.org>
24383
24384         * lib/trim.c: Include <string.h>.
24385
24386 2008-04-11  Eric Blake  <ebb9@byu.net>
24387
24388         Avoid compile failure on OS/2.
24389         * lib/regex_internal.h (internal_function): Disable optimization
24390         on OS/2 (__EMX__), where it caused compiler error.
24391         Reported by Elbert Pol.
24392
24393 2008-04-11  Bruno Haible  <bruno@clisp.org>
24394
24395         Flush the standard error stream before aborting. Needed on mingw.
24396         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
24397         * tests/test-array_list.c (ASSERT): Likewise.
24398         * tests/test-array_oset.c (ASSERT): Likewise.
24399         * tests/test-avltree_list.c (ASSERT): Likewise.
24400         * tests/test-avltree_oset.c (ASSERT): Likewise.
24401         * tests/test-avltreehash_list.c (ASSERT): Likewise.
24402         * tests/test-binary-io.c (ASSERT): Likewise.
24403         * tests/test-byteswap.c (ASSERT): Likewise.
24404         * tests/test-c-ctype.c (ASSERT): Likewise.
24405         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
24406         * tests/test-c-strcasestr.c (ASSERT): Likewise.
24407         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
24408         * tests/test-c-strstr.c (ASSERT): Likewise.
24409         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
24410         * tests/test-canonicalize.c (ASSERT): Likewise.
24411         * tests/test-carray_list.c (ASSERT): Likewise.
24412         * tests/test-ceilf1.c (ASSERT): Likewise.
24413         * tests/test-ceilf2.c (ASSERT): Likewise.
24414         * tests/test-ceill.c (ASSERT): Likewise.
24415         * tests/test-count-one-bits.c (ASSERT): Likewise.
24416         * tests/test-fbufmode.c (ASSERT): Likewise.
24417         * tests/test-fflush2.c (ASSERT): Likewise.
24418         * tests/test-floorf1.c (ASSERT): Likewise.
24419         * tests/test-floorf2.c (ASSERT): Likewise.
24420         * tests/test-floorl.c (ASSERT): Likewise.
24421         * tests/test-fopen.c (ASSERT): Likewise.
24422         * tests/test-fpending.c (ASSERT): Likewise.
24423         * tests/test-fprintf-posix.c (ASSERT): Likewise.
24424         * tests/test-fpurge.c (ASSERT): Likewise.
24425         * tests/test-freadable.c (ASSERT): Likewise.
24426         * tests/test-freadahead.c (ASSERT): Likewise.
24427         * tests/test-freading.c (ASSERT): Likewise.
24428         * tests/test-freadptr.c (ASSERT): Likewise.
24429         * tests/test-freadptr2.c (ASSERT): Likewise.
24430         * tests/test-freadseek.c (ASSERT): Likewise.
24431         * tests/test-freopen.c (ASSERT): Likewise.
24432         * tests/test-frexp.c (ASSERT): Likewise.
24433         * tests/test-frexpl.c (ASSERT): Likewise.
24434         * tests/test-fseek.c (ASSERT): Likewise.
24435         * tests/test-fseeko.c (ASSERT): Likewise.
24436         * tests/test-fstrcmp.c (ASSERT): Likewise.
24437         * tests/test-ftell.c (ASSERT): Likewise.
24438         * tests/test-ftello.c (ASSERT): Likewise.
24439         * tests/test-func.c (ASSERT): Likewise.
24440         * tests/test-fwritable.c (ASSERT): Likewise.
24441         * tests/test-fwriting.c (ASSERT): Likewise.
24442         * tests/test-getdelim.c (ASSERT): Likewise.
24443         * tests/test-getline.c (ASSERT): Likewise.
24444         * tests/test-i-ring.c (ASSERT): Likewise.
24445         * tests/test-iconv-utf.c (ASSERT): Likewise.
24446         * tests/test-iconv.c (ASSERT): Likewise.
24447         * tests/test-isfinite.c (ASSERT): Likewise.
24448         * tests/test-isnand.c (ASSERT): Likewise.
24449         * tests/test-isnanf.c (ASSERT): Likewise.
24450         * tests/test-isnanl.h (ASSERT): Likewise.
24451         * tests/test-ldexpl.c (ASSERT): Likewise.
24452         * tests/test-linked_list.c (ASSERT): Likewise.
24453         * tests/test-linkedhash_list.c (ASSERT): Likewise.
24454         * tests/test-localename.c (ASSERT): Likewise.
24455         * tests/test-lseek.c (ASSERT): Likewise.
24456         * tests/test-mbscasecmp.c (ASSERT): Likewise.
24457         * tests/test-mbscasestr1.c (ASSERT): Likewise.
24458         * tests/test-mbscasestr2.c (ASSERT): Likewise.
24459         * tests/test-mbscasestr3.c (ASSERT): Likewise.
24460         * tests/test-mbscasestr4.c (ASSERT): Likewise.
24461         * tests/test-mbschr.c (ASSERT): Likewise.
24462         * tests/test-mbscspn.c (ASSERT): Likewise.
24463         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24464         * tests/test-mbspbrk.c (ASSERT): Likewise.
24465         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24466         * tests/test-mbsrchr.c (ASSERT): Likewise.
24467         * tests/test-mbsspn.c (ASSERT): Likewise.
24468         * tests/test-mbsstr1.c (ASSERT): Likewise.
24469         * tests/test-mbsstr2.c (ASSERT): Likewise.
24470         * tests/test-mbsstr3.c (ASSERT): Likewise.
24471         * tests/test-memchr2.c (ASSERT): Likewise.
24472         * tests/test-memmem.c (ASSERT): Likewise.
24473         * tests/test-open.c (ASSERT): Likewise.
24474         * tests/test-printf-frexp.c (ASSERT): Likewise.
24475         * tests/test-printf-frexpl.c (ASSERT): Likewise.
24476         * tests/test-printf-posix.c (ASSERT): Likewise.
24477         * tests/test-quotearg.c (ASSERT): Likewise.
24478         * tests/test-rbtree_list.c (ASSERT): Likewise.
24479         * tests/test-rbtree_oset.c (ASSERT): Likewise.
24480         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24481         * tests/test-round1.c (ASSERT): Likewise.
24482         * tests/test-roundf1.c (ASSERT): Likewise.
24483         * tests/test-roundl.c (ASSERT): Likewise.
24484         * tests/test-signbit.c (ASSERT): Likewise.
24485         * tests/test-sleep.c (ASSERT): Likewise.
24486         * tests/test-snprintf-posix.c (ASSERT): Likewise.
24487         * tests/test-snprintf.c (ASSERT): Likewise.
24488         * tests/test-sprintf-posix.c (ASSERT): Likewise.
24489         * tests/test-stat-time.c (ASSERT): Likewise.
24490         * tests/test-strcasestr.c (ASSERT): Likewise.
24491         * tests/test-strerror.c (ASSERT): Likewise.
24492         * tests/test-striconv.c (ASSERT): Likewise.
24493         * tests/test-striconveh.c (ASSERT): Likewise.
24494         * tests/test-striconveha.c (ASSERT): Likewise.
24495         * tests/test-strsignal.c (ASSERT): Likewise.
24496         * tests/test-strstr.c (ASSERT): Likewise.
24497         * tests/test-strtod.c (ASSERT): Likewise.
24498         * tests/test-trunc1.c (ASSERT): Likewise.
24499         * tests/test-trunc2.c (ASSERT): Likewise.
24500         * tests/test-truncf1.c (ASSERT): Likewise.
24501         * tests/test-truncf2.c (ASSERT): Likewise.
24502         * tests/test-truncl.c (ASSERT): Likewise.
24503         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24504         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24505         * tests/test-vasnprintf.c (ASSERT): Likewise.
24506         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24507         * tests/test-vasprintf.c (ASSERT): Likewise.
24508         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24509         * tests/test-vprintf-posix.c (ASSERT): Likewise.
24510         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24511         * tests/test-vsnprintf.c (ASSERT): Likewise.
24512         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24513         * tests/test-wcwidth.c (ASSERT): Likewise.
24514         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24515         * tests/test-xprintf-posix.c (ASSERT): Likewise.
24516         * tests/test-xvasprintf.c (ASSERT): Likewise.
24517         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24518         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24519         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24520         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24521         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24522         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24523         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24524         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24525         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24526         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24527         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24528         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24529         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24530         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24531         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24532         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24533         * tests/unictype/test-block_list.c (ASSERT): Likewise.
24534         * tests/unictype/test-block_of.c (ASSERT): Likewise.
24535         * tests/unictype/test-block_test.c (ASSERT): Likewise.
24536         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24537         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24538         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24539         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24540         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24541         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24542         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24543         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24544         * tests/unictype/test-combining.c (ASSERT): Likewise.
24545         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24546         * tests/unictype/test-digit.c (ASSERT): Likewise.
24547         * tests/unictype/test-mirror.c (ASSERT): Likewise.
24548         * tests/unictype/test-numeric.c (ASSERT): Likewise.
24549         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24550         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24551         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24552         * tests/unictype/test-scripts.c (ASSERT): Likewise.
24553         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24554         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24555         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24556         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24557         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24558         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24559         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24560         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24561         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24562         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24563         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24564         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24565         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24566         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24567         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24568         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24569         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24570         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24571         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24572         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24573         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24574         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24575         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24576         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24577         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24578         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24579         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24580         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24581         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24582         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24583         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24584         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24585         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24586         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24587         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24588         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24589         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24590         Reported by Eric Blake.
24591
24592 2008-04-11  Bruno Haible  <bruno@clisp.org>
24593
24594         * lib/wchar.in.h: Tweak comment.
24595
24596 2008-04-11  Bruno Haible  <bruno@clisp.org>
24597
24598         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24599         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24600         gl_COMMON.
24601         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24602
24603 2008-04-11  Bruno Haible  <bruno@clisp.org>
24604
24605         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24606
24607 2008-04-11  Simon Josefsson  <simon@josefsson.org>
24608
24609         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24610         of attempting to use non-existing /dev/*random.  Based on patch
24611         from Adam Strzelecki <ono@java.pl> in
24612         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24613
24614 2008-04-08  Bruno Haible  <bruno@clisp.org>
24615
24616         Add tentative support for emx+gcc.
24617         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24618         * lib/fpurge.c (fpurge): Likewise.
24619         * lib/freadable.c (freadable): Likewise.
24620         * lib/freadahead.c (freadahead): Likewise.
24621         * lib/freading.c (freading): Likewise.
24622         * lib/freadptr.c (freadptr): Likewise.
24623         * lib/freadseek.c (freadptrinc): Likewise.
24624         * lib/fseeko.c (rpl_fseeko): Likewise.
24625         * lib/fseterr.c (fseterr): Likewise.
24626         * lib/fwritable.c (fwritable): Likewise.
24627         * lib/fwriting.c (fwriting): Likewise.
24628         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24629
24630 2008-04-09  Eric Blake  <ebb9@byu.net>
24631
24632         Avoid some autoconf warnings.
24633         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24634         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24635         * m4/afs.m4 (gl_AFS): Likewise.
24636         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24637         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24638         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24639         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24640         (gl_INTEGER_TYPE_SUFFIX): Likewise.
24641         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24642         (AC_CHECK_DECLS_ONCE): Likewise.
24643         Rename file...
24644         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24645         gnulib-tool requires autoconf 2.59 or better.
24646         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24647
24648 2008-04-08  Eric Blake  <ebb9@byu.net>
24649
24650         Use 'git describe --match' if present (added in git 1.5.5).
24651         * build-aux/git-version-gen: Limit result to tags that match 'v*'
24652         if possible.
24653
24654 2008-04-08  Bruno Haible  <bruno@clisp.org>
24655
24656         Add tentative support for OpenServer.
24657         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24658         _ptr, _cnt.
24659         * lib/fpurge.c (fpurge): Likewise.
24660         * lib/freadable.c (freadable): Likewise.
24661         * lib/freadahead.c (freadahead): Likewise.
24662         * lib/freading.c (freading): Likewise.
24663         * lib/freadptr.c (freadptr): Likewise.
24664         * lib/freadseek.c (freadptrinc): Likewise.
24665         * lib/fseeko.c (rpl_fseeko): Likewise.
24666         * lib/fseterr.c (fseterr): Likewise.
24667         * lib/fwritable.c (fwritable): Likewise.
24668         * lib/fwriting.c (fwriting): Likewise.
24669         Reported by Roger Cornelius <rac@tenzing.org> and
24670         Brian K. White <brian@aljex.com>.
24671
24672 2008-04-06  Jim Meyering  <meyering@redhat.com>
24673
24674         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24675
24676 2008-04-06  Bruno Haible  <bruno@clisp.org>
24677
24678         Avoid possible error with non-ASCII bytes in UTF-8 locales.
24679         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24680         * tests/test-printf-posix.sh: Likewise.
24681         * tests/test-vfprintf-posix.sh: Likewise.
24682         * tests/test-vprintf-posix.sh: Likewise.
24683         * tests/test-xprintf-posix.sh: Likewise.
24684
24685 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24686
24687         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24688         hide error from 'ls', needed on OS/2.
24689         Report by Elbert Pol <elbert.pol@gmail.com>.
24690
24691 2008-04-04  Eric Blake  <ebb9@byu.net>
24692
24693         Make test-fseeko.c failures meaningful.
24694         * tests/test-fseeko.c: Print line number on failure.
24695         * tests/test-fseek.c: Likewise.
24696         Reported by Nelson H. F. Beebe.
24697
24698         Improve strtod bug detection check.
24699         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24700         required for Solaris 10.
24701         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24702
24703 2008-04-04  Bruno Haible  <bruno@clisp.org>
24704
24705         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24706         by m4/setenv.m4.
24707
24708 2008-04-03  Eric Blake  <ebb9@byu.net>
24709
24710         Ensure sane .version contents.
24711         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24712         version string.
24713         * build-aux/git-version-gen: Improve documentation.
24714
24715         Make GNU make output nicer.
24716         * top/GNUmakefile [!_have-Makefile]: Add dependency on
24717         MAKECMDGOALS to enforce message for all command line targets.  Set
24718         srcdir for use in maint.mk.
24719
24720         Another maintainer tweak.
24721         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24722         a target that regenerates version.
24723
24724 2008-04-03  Jim Meyering  <meyering@redhat.com>
24725
24726         vc-list-files: don't cause coreutils "make po-check" failure
24727         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24728
24729 2008-04-03  Eric Blake  <ebb9@byu.net>
24730
24731         Allow VPATH usage of vc-list-files.
24732         * build-aux/vc-list-files (scriptversion): Add timestamp.
24733         (options): Add --help, --version, -C.
24734         (CVS): Support installed cvsu.
24735
24736 2008-04-02  Bruno Haible  <bruno@clisp.org>
24737
24738         Avoid some "statement with no effect" warnings from gcc.
24739         * tests/test-wctype.c (main): Explicitly ignore unused values.
24740         Reported by Jim Meyering.
24741
24742 2008-04-02  Jim Meyering  <meyering@redhat.com>
24743
24744         Avoid some warnings from "gcc -Wshadow".
24745         * tests/test-frexp.c (exp): Define to a different identifier.
24746         * tests/test-frexpl.c (exp): Likewise.
24747
24748 2008-04-03  Jim Meyering  <meyering@redhat.com>
24749
24750         bootstrap: remove dangling *.[ch] symlinks from lib
24751         * build-aux/bootstrap [dangling symlink removal]: Move find's
24752         -depth option to precede all others, to avoid a warning.
24753         Remove *.[ch] files too, and from "$source_base" (usually lib/).
24754
24755 2008-04-02  Bruno Haible  <bruno@clisp.org>
24756
24757         Avoid some warnings from "gcc -Wshadow".
24758         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24759         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24760         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24761         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24762         Reported by Jim Meyering.
24763
24764 2008-04-01  Bruno Haible  <bruno@clisp.org>
24765
24766         Fix test to work on IRIX 6.5 with cc.
24767         * tests/test-math.c (numeric_equal): New function.
24768         (main): Use it.
24769
24770 2008-04-01  Bruno Haible  <bruno@clisp.org>
24771
24772         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24773
24774 2008-04-01  Bruno Haible  <bruno@clisp.org>
24775
24776         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24777         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24778         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24779         (Depends-on): Remove math.
24780
24781         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24782         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24783         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24784         (Depends-on): Remove math.
24785
24786         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24787         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24788         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24789         (Depends-on): Remove math.
24790         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24791         (Depends-on): Remove math.
24792
24793         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24794         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24795         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24796         (Depends-on): Remove math.
24797         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24798         (Depends-on): Remove math.
24799
24800         * tests/test-round1.c: Include nan.h.
24801         (main): Use NaNd instead of NAN.
24802         * modules/round-tests (Files): Add tests/nan.h.
24803
24804         * tests/test-trunc1.c: Include nan.h.
24805         (main): Use NaNd instead of NAN.
24806         * modules/trunc-tests (Files): Add tests/nan.h.
24807
24808         * tests/test-roundf1.c: Include nan.h.
24809         (main): Use NaNf instead of NAN.
24810         * modules/roundf-tests (Files): Add tests/nan.h.
24811
24812         * tests/test-truncf1.c: Include nan.h.
24813         (main): Use NaNf instead of NAN.
24814         * modules/truncf-tests (Files): Add tests/nan.h.
24815
24816         * tests/test-ceilf1.c: Include nan.h.
24817         (main): Use NaNf instead of NAN.
24818         * modules/ceilf-tests (Files): Add tests/nan.h.
24819
24820         * tests/test-floorf1.c: Include nan.h.
24821         (main): Use NaNf instead of NAN.
24822         * modules/floorf-tests (Files): Add tests/nan.h.
24823
24824         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24825         (main): Use NaNf instead of NAN.
24826         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24827
24828         * tests/test-isnand.c: Include nan.h instead of <math.h>.
24829         (main): Use NaNd instead of NAN.
24830         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24831
24832         * tests/test-frexp.c: Include nan.h.
24833         (main): Use NaNd instead of NAN.
24834         * modules/frexp-tests (Files): Add tests/nan.h.
24835
24836         * lib/isnan.c: Don't include <math.h>.
24837         (FUNC): Don't use NAN macro.
24838         * modules/isnand-nolibm (Depends-on): Remove math.
24839         * modules/isnanf-nolibm (Depends-on): Remove math.
24840         * modules/isnanl (Depends-on): Remove math.
24841         * modules/isnanl-nolibm (Depends-on): Remove math.
24842
24843         * tests/nan.h: New file.
24844
24845 2008-04-01  Eric Blake  <ebb9@byu.net>
24846
24847         Fix typos.
24848         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24849         values to be the right type.
24850
24851         For now, cater to gnulib strtod inaccuracies.
24852         * tests/test-strtod.c (main): Allow 1-ulp error on expected
24853         fractional results.  While not as nice from a QoI perspective, it
24854         is a quicker patch than correctly implementing decimal to binary
24855         rounding.
24856
24857 2008-03-31  Eric Blake  <ebb9@byu.net>
24858
24859         Guarantee a definition of NAN.
24860         * lib/math.in.h (NAN): Define if missing.
24861         * tests/test-math.c (main): Test it.
24862         * doc/posix-headers/math.texi (math.h): Document this.
24863         * lib/isnan.c (rpl_isnand): Use it.
24864         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24865         * tests/test-floorf1.c (NaN): Likewise.
24866         * tests/test-frexp.c (NaN): Likewise.
24867         * tests/test-isnand.c (NaN): Likewise.
24868         * tests/test-isnanf.c (NaN): Likewise.
24869         * tests/test-round1.c (NaN): Likewise.
24870         * tests/test-roundf1.c (NaN): Likewise.
24871         * tests/test-snprintf-posix.h (NaN): Likewise.
24872         * tests/test-sprintf-posix.h (NaN): Likewise.
24873         * tests/test-trunc1.c (NaN): Likewise.
24874         * tests/test-truncf1.c (NaN): Likewise.
24875         * tests/test-vasnprintf-posix.c (NaN): Likewise.
24876         * tests/test-vasprintf-posix.c (NaN): Likewise.
24877         * modules/isnand-nolibm (Depends-on): Add math.
24878         * modules/isnanf-nolibm (Depends-on): Likewise.
24879         * modules/isnanl (Depends-on): Likewise.
24880         * modules/isnanl-nolibm (Depends-on): Likewise.
24881         * modules/snprintf-posix-tests (Depends-on): Likewise.
24882         * modules/sprintf-posix-tests (Depends-on): Likewise.
24883         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24884         * modules/vsprintf-posix-tests (Depends-on): Likewise.
24885         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24886         * modules/vasprintf-posix-tests (Depends-on): Likewise.
24887
24888 2008-03-31  Bruno Haible  <bruno@clisp.org>
24889
24890         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24891         * doc/posix-functions/strtod.texi: Likewise.
24892
24893 2008-03-31  Bruno Haible  <bruno@clisp.org>
24894
24895         * tests/test-strtod.c (main): Don't use C99 syntax.
24896
24897 2008-03-31  Bruno Haible  <bruno@clisp.org>
24898
24899         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24900         Reported by Eric Blake.
24901
24902 2008-03-31  Jim Meyering  <meyering@redhat.com>
24903
24904         Don't compare actual signbit return values.
24905         * tests/test-strtod.c (main): Rather, compare only their
24906         zero/non-zero nature.
24907
24908 2008-03-31  Eric Blake  <ebb9@byu.net>
24909
24910         More strtod documentation.
24911         * doc/posix-functions/strtod.texi (strtod): Interpret more test
24912         failures as distinct bugs.
24913
24914 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24915
24916         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24917         Problem reported by Erik Benada in
24918         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24919
24920 2008-03-30  Bruno Haible  <bruno@clisp.org>
24921
24922         * tests/test-strtod.c: Add comments about which assertion fails on which
24923         platform.
24924         * doc/posix-functions/strtod.texi: Add info about many more platforms.
24925
24926 2008-03-30  Eric Blake  <ebb9@byu.net>
24927
24928         Test signbit behavior on zeros.
24929         * tests/test-signbit.c (test_signbitf): Add tests for zero.
24930         (test_signbitd, test_signbitl): Likewise.
24931
24932         More strtod touchups.
24933         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24934         sign of negative underflow, for now.  Use .5, not .1.
24935         * doc/posix-functions/strtod.texi (strtod): Mention these
24936         limitations.
24937         Reported by Jim Meyering.
24938
24939 2008-03-30  Bruno Haible  <bruno@clisp.org>
24940
24941         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24942         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24943
24944 2008-03-30  Bruno Haible  <bruno@clisp.org>
24945
24946         Avoid failure when attempting to return empty iconv results on some
24947         platforms.
24948         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24949         allocation, don't report ENOMEM when the resulting string is empty.
24950
24951 2008-03-30  Bruno Haible  <bruno@clisp.org>
24952
24953         Fix buffer overrun.
24954         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24955         Don't consider the width for tmp_length. Check count against tmp_length
24956         before doing the padding. Ensure enough allocation during padding.
24957
24958 2008-03-30  Eric Blake  <ebb9@byu.net>
24959
24960         strtod touchups.
24961         * lib/strtod.c (strtod): Avoid compiler warnings.
24962         Reported by Jim Meyering.
24963
24964 2008-03-30  Bruno Haible  <bruno@clisp.org>
24965
24966         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24967         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24968         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24969         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24970         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24971         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24972         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24973         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24974
24975         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24976         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24977         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24978         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24979         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24980         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24981         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24982         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24983
24984         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24985         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24986         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24987         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24988         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24989         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24990         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24991         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24992
24993         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24994         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24995
24996         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24997         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24998
24999         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
25000         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
25001
25002         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
25003         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
25004         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
25005
25006         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
25007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
25008         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
25009
25010         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
25011         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
25012         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
25013
25014         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
25015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
25016         * modules/vasprintf (Depends-on): Add EOVERFLOW.
25017
25018         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
25019         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
25020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
25021         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
25022         (Depends-on): Add EOVERFLOW.
25023         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
25024         (Depends-on): Add EOVERFLOW.
25025         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25026         (Depends-on): Add EOVERFLOW.
25027         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
25028         (Depends-on): Add EOVERFLOW.
25029         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25030         (Depends-on): Add EOVERFLOW.
25031         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
25032         (Depends-on): Add EOVERFLOW.
25033         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25034         (Depends-on): Add EOVERFLOW.
25035         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
25036         (Depends-on): Add EOVERFLOW.
25037
25038         * lib/sprintf.c (EOVERFLOW): Remove fallback.
25039         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
25040         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
25041
25042         * lib/snprintf.c (EOVERFLOW): Remove fallback.
25043         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
25044         * modules/snprintf (Depends-on): Add EOVERFLOW.
25045
25046         * lib/poll.c (EOVERFLOW): Remove fallback.
25047         * modules/poll (Depends-on): Add EOVERFLOW.
25048
25049         * lib/getugroups.c (EOVERFLOW): Remove fallback.
25050         * modules/getugroups (Depends-on): Add EOVERFLOW.
25051
25052         * lib/getdelim.c (EOVERFLOW): Remove fallback.
25053         * modules/getdelim (Depends-on): Add EOVERFLOW.
25054
25055         * lib/ftell.c (EOVERFLOW): Remove fallback.
25056         * modules/ftell (Depends-on): Add EOVERFLOW.
25057
25058         * lib/fprintf.c (EOVERFLOW): Remove fallback.
25059         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
25060         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
25061
25062         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
25063
25064         * modules/EOVERFLOW-tests: New file.
25065         * tests/test-EOVERFLOW.c: New file.
25066
25067         * modules/EOVERFLOW: New file.
25068         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
25069
25070 2008-03-30  Bruno Haible  <bruno@clisp.org>
25071
25072         Fix bug introduced on 2007-06-10.
25073         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
25074         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
25075
25076 2008-03-30  Bruno Haible  <bruno@clisp.org>
25077
25078         Improve freadseek's efficiency after ungetc.
25079         * lib/freadseek.c: Include freadahead.h.
25080         (freadptrinc): New function, extracted from freadseek.
25081         (freadseek): Use it in a loop. Use freadahead to determine the number
25082         of loop iterations.
25083         * modules/freadseek (Depends-on): Add freadahead.
25084         (configure.ac): Require AC_C_INLINE.
25085
25086 2008-03-30  Bruno Haible  <bruno@clisp.org>
25087
25088         * lib/freadseek.c (freadseek): Don't ignore the return value of
25089         freadptr.
25090
25091 2008-03-29  Eric Blake  <ebb9@byu.net>
25092
25093         Add hex float support.
25094         * modules/strtod (Depends-on): Add c-ctype.
25095         (Link): Mention POW_LIB.
25096         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
25097         whitespace between 'e' and exponent.
25098         * tests/test-strtod.c (main): Enable hex float tests.
25099         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
25100         now provides.
25101
25102         Document various strtod bugs, with some fixes.
25103         * doc/posix-functions/strtod.texi (strtod): Document bugs with
25104         "-0x", "inf", "nan", and hex constants.
25105         * doc/posix-functions/atof.texi (atof): Likewise.
25106         * modules/stdlib (Makefile.am): Support strtod.
25107         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
25108         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
25109         detect additional strtod bugs.
25110         * lib/stdlib.in.h (rpl_strtod): Add declarations.
25111         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
25112         bool where appropriate.  Parse 'inf' and 'nan'.
25113         * tests/test-strtod.c: New file.
25114         * modules/strtod (Depends-on): Add stdbool, stdlib.
25115         (configure.ac): Turn on module indicator.
25116         * modules/strtod-tests: New module.
25117
25118 2008-03-29  Eric Blake  <ebb9@byu.net>
25119
25120         Fix ftell on mingw.
25121         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
25122         * modules/ftell-tests (Depends-on): Add binary-io.
25123         * modules/ftello-tests (Depends-on): Likewise.
25124         * tests/test-ftell.c (main): Enhance test to cover behavior after
25125         ungetc.  Enforce binary mode.
25126         * tests/test-ftello.c (main): Likewise.
25127
25128         Pass test-freadseek on cygwin.
25129         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
25130         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
25131         ungetc buffer.
25132
25133         * tests/test-fflush2.c (main): Fix typo.
25134
25135 2008-03-29  Bruno Haible  <bruno@clisp.org>
25136
25137         * tests/test-fflush2.c (main): Temporarily disable the contents of
25138         this test.
25139         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
25140         Reported by Eric Blake.
25141
25142 2008-03-28  Simon Josefsson  <simon@josefsson.org>
25143
25144         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
25145         (GC_SHA224_DIGEST_SIZE): Add.
25146
25147         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
25148         (gc_hash_digest_length): Likewise.
25149         (gc_hash_buffer): Likewise.
25150
25151 2008-03-25  Bruno Haible  <bruno@clisp.org>
25152
25153         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
25154         detail which gettext release to use.
25155         Reported by Simon Josefsson.
25156
25157 2008-03-26  Jim Meyering  <meyering@redhat.com>
25158
25159         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
25160         * modules/gnumakefile (clean-GNUmakefile): Also, use
25161         test ... && ... || : syntax rather than if-then ... fi.
25162
25163         gnumakefile: Don't double-quote-expand $(VPATH) value.
25164         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
25165
25166 2008-03-24  Eric Blake  <ebb9@byu.net>
25167
25168         Alter GNUmakefile to install into top directory.
25169         * modules/maintainer-makefile: Split, and add dependency...
25170         * modules/gnumakefile: to this new module.
25171         * build-aux/GNUmakefile: Move...
25172         * top/GNUmakefile: ...here.
25173         * build-aux/maint.mk: Move...
25174         * top/maint.mk: ...here.
25175         * MODULES.html.sh (Support for maintaining...): Document new
25176         module.
25177
25178 2008-03-23  Bruno Haible  <bruno@clisp.org>
25179
25180         * gnulib-tool: New options --vc-files, --no-vc-files.
25181         (func_usage): Document them.
25182         (vc_files): New variable.
25183         (func_import): Consider vc_files.
25184         (func_create_testdir): Set vc_files to empty.
25185         Suggested by Jim Meyering and Karl Berry.
25186
25187 2008-03-23  Bruno Haible  <bruno@clisp.org>
25188
25189         Fix regex compilation error on HP-UX 11.
25190         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
25191         * modules/regex (Files): Add m4/mbstate_t.m4.
25192         Reported by Ton Voon <ton.voon@altinity.com>.
25193
25194 2008-03-23  Bruno Haible  <bruno@clisp.org>
25195
25196         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
25197
25198 2008-03-23  Eric Blake  <ebb9@byu.net>
25199             Bruno Haible  <bruno@clisp.org>
25200
25201         Install files from top/ in the destination directory.
25202         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25203         augmentation also for the files from top/.
25204         (func_import, func_create_testdir): Rewrite file names:
25205         top/filename -> filename.
25206
25207 2008-03-23  Bruno Haible  <bruno@clisp.org>
25208
25209         Tweak "gnulib --version" output.
25210         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
25211
25212 2008-03-23  Bruno Haible  <bruno@clisp.org>
25213
25214         Tweak "gnulib --version" output.
25215         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
25216         rather than contents of ChangeLog, when possible.
25217
25218 2008-03-21  Eric Blake  <ebb9@byu.net>
25219
25220         More --version tweaks.
25221         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
25222         date of last ChangeLog entry.
25223
25224 2008-03-21  Jim Meyering  <meyering@redhat.com>
25225
25226         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
25227
25228 2008-03-20  Eric Blake  <ebb9@byu.net>
25229
25230         VPATH fix.
25231         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
25232
25233 2008-03-20  Simon Josefsson  <simon@josefsson.org>
25234
25235         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
25236         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
25237
25238 2008-03-20  Eric Blake  <ebb9@byu.net>
25239
25240         Sync GNUmakefile with coreutils.
25241         * build-aux/GNUmakefile (have-Makefile): Rename...
25242         (_have-Makefile): ...to this, for namespace consideration.
25243         (GNUmakefile.cfg): Include, if present.
25244         (_autoreconf): Define a default.
25245         (_is-dist-target): New rule for rebuilds to pick up intra-release
25246         version.
25247         (maint-cfg.mk): Rename...
25248         (cfg.mk): ...to this.
25249
25250 2008-03-18  Jim Meyering  <meyering@redhat.com>
25251
25252         New script and module: mktempd
25253         * MODULES.html.sh (maint+release support): Add mktempd.
25254         * build-aux/mktempd: New file.
25255         * modules/mktempd: New file.
25256
25257 2008-03-15  Jim Meyering  <meyering@redhat.com>
25258
25259         Undo last change.
25260         * lib/sha1.c, lib/md5.c: 63 != ~63.
25261         Reported by Andreas Schwab.
25262
25263         sha1.c, md5.c: Hoist a redundant expression.
25264         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
25265         "ctx->buflen" only once, before calling *_process_block.
25266         * lib/md5.c (md5_process_bytes): Likewise.
25267
25268 2008-03-14  Eric Blake  <ebb9@byu.net>
25269
25270         Bump copyright year in files generated by gnulib-tool.
25271         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
25272         gnulib-tool, rather than hard-coding it.
25273
25274         Fix 'gnulib-tool --version' output to work with git.
25275         * gnulib-tool (func_gnulib_dir): New function, extracted from...
25276         (startup): ...here.
25277         (func_version): Use it to invoke git-version-gen, rather than
25278         relying on CVS keyword expansion.  Modernize wording.
25279         (cvsdatestamp, last_checkin_date, version): Kill unused
25280         variables.
25281
25282 2008-03-12  Jim Meyering  <meyering@redhat.com>
25283
25284         Recognize optional cast of the argument to free.
25285         * build-aux/useless-if-before-free: Update regexps.
25286
25287         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
25288
25289 2008-03-11  Bruno Haible  <bruno@clisp.org>
25290
25291         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
25292         by a single package.
25293         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
25294         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
25295         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
25296         Reported by Sam Steingold <sds@gnu.org>.
25297
25298 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25299
25300         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
25301         repositories.
25302
25303 2008-03-11  Bruno Haible  <bruno@clisp.org>
25304
25305         Avoid conflicts between local macro definitions.
25306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
25307         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
25308
25309 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
25310             Bruno Haible  <bruno@clisp.org>
25311
25312         Make va_copy work with some version of xlc on AIX 5.1.
25313         * lib/stdarg.in.h: New file.
25314         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
25315         On AIX, use a <stdarg.h> file substitute.
25316         * modules/stdarg (Files): Add lib/stdarg.in.h.
25317         (Depends-on): Add include_next.
25318         (Makefile.am): Build a stdarg.h substitute if requested.
25319         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
25320
25321 2008-03-10  Bruno Haible  <bruno@clisp.org>
25322
25323         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
25324         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25325         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25326
25327 2008-03-10  Bruno Haible  <bruno@clisp.org>
25328
25329         * modules/stdlib (Depends-on): Add include_next, remove
25330         absolute-header.
25331
25332 2008-03-09  Bruno Haible  <bruno@clisp.org>
25333
25334         * lib/freadahead.h (freadahead): Document more precisely.
25335         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
25336         the sum of both buffer sizes.
25337         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
25338         * NEWS: Document the change.
25339
25340 2008-03-09  Bruno Haible  <bruno@clisp.org>
25341
25342         Extend freadptr to return also the buffer size.
25343         * lib/freadptr.h (freadptr): Add sizep argument.
25344         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
25345         (freadptr): Add sizep argument. Determine buffer size like freadahead
25346         does.
25347         * tests/test-freadptr.c: Don't include freadahead.h.
25348         (main): Adapt for new calling convention of freadptr.
25349         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
25350         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
25351         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
25352         tests/test-freadptr2.sh.
25353         (Depends): Remove freadahead.
25354         (TESTS): Add test-freadptr2.sh.
25355         (check_PROGRAMS): Add test-freadptr2.
25356
25357 2008-03-09  Bruno Haible  <bruno@clisp.org>
25358
25359         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
25360         Report and solution by Simon Josefsson.
25361
25362 2008-03-06  Bruno Haible  <bruno@clisp.org>
25363
25364         Make fflush after ungetc work on BSD platforms.
25365         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
25366         * tests/test-fflush2.c: New file.
25367         * tests/test-fflush2.sh: New file.
25368         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
25369         tests/test-fflush2.c.
25370         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
25371         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
25372
25373 2008-03-06  Eric Blake  <ebb9@byu.net>
25374
25375         Likewise for ftello.
25376         * modules/ftello (Dependencies): Add extensions.
25377         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
25378
25379 2008-03-06  Bruno Haible  <bruno@clisp.org>
25380
25381         * modules/fseeko (Dependencies): Add extensions.
25382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
25383         Needed on glibc systems.
25384
25385 2008-03-06  Bruno Haible  <bruno@clisp.org>
25386
25387         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
25388         email address.
25389         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25390
25391 2008-03-06  Bruno Haible  <bruno@clisp.org>
25392
25393         * users.txt: Add libgnupdf.
25394
25395 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25396
25397         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
25398         (Header File Substitutes, Function Substitutes,
25399         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
25400         (Build robot for gnulib): Fix typo.
25401
25402 2008-03-06  Bruno Haible  <bruno@clisp.org>
25403
25404         * doc/gnulib-tool.texi (VCS Issues): Small updates.
25405         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
25406
25407 2008-03-06  Bruno Haible  <bruno@clisp.org>
25408
25409         * doc/func.texi: New file, extracted from doc/gnulib.texi.
25410         * doc/gnulib.texi: Include it.
25411
25412 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25413
25414         * modules/func (License): Change license to unlimited; there was
25415         no LGPL parts in the module anyway.
25416
25417 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25418
25419         * modules/__func__: Renamed to modules/func.
25420         * modules/__func__-tests: Renamed to modules/func-tests.
25421         * tests/test-__func__.c: Renamed to tests/test-func.c.
25422         * m4/__func__.m4: Renamed to m4/func.m4.
25423         * doc/gnulib.texi (__func__): Section renamed to func.
25424         Suggested by Eric Blake <ebb9@byu.net>.
25425
25426 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25427
25428         * doc/gnulib.texi (__func__): Use C99 terminology when talking
25429         about __func__.  Make example self-contained.  Suggested by Eric
25430         Blake <ebb9@byu.net>.
25431
25432         * tests/test-__func__.c (main): Avoid extraneous () around __func.
25433         Suggested by Eric Blake <ebb9@byu.net>.
25434
25435 2008-03-06  Simon Josefsson  <simon@josefsson.org>
25436
25437         * modules/__func__: New file.
25438         * modules/__func__-tests: New file.
25439         * tests/test-__func__.c: New file.
25440         * m4/__func__.m4: New file.
25441         * doc/gnulib.texi (__func__): Document __func__ module.
25442
25443 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25444
25445         * modules/byteswap (License): Re-license as LGPLv2+.
25446
25447 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25448
25449         * doc/Makefile: Add pdf target.
25450
25451 2008-03-05  Simon Josefsson  <simon@josefsson.org>
25452
25453         * modules/inline (License): Use 'unlimited', since there are only
25454         *.m4 files in this module.
25455
25456 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25457             Bruno Haible  <bruno@clisp.org>
25458
25459         Add support for HP C 7.1 on OpenVMS 8.3.
25460         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25461
25462 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
25463
25464         Update VMS specifics.
25465         * lib/getopt.c [VMS]: Remove include of unixlib.h.
25466
25467 2008-03-02  Jim Meyering  <meyering@redhat.com>
25468
25469         Remove the last dependency on the "free" module.
25470         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25471         Reported by Bob Proulx.
25472
25473         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25474
25475         Remove useless "if" tests before free.  Deprecate "free" module.
25476         * doc/posix-functions/free.texi: Mention that this
25477         module is no longer useful.
25478         * modules/free (Notice): Say this module is obsolete.
25479         * modules/readutmp (Depends-on): Remove free.
25480         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25481         * lib/putenv.c (putenv): Likewise.
25482         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25483         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25484         * tests/test-c-strcasestr.c (main): Likewise.
25485         * tests/test-c-strstr.c (main): Likewise.
25486         * tests/test-mbscasestr1.c (main): Likewise.
25487         * tests/test-mbscasestr2.c (main): Likewise.
25488         * tests/test-mbsstr1.c (main): Likewise.
25489         * tests/test-mbsstr2.c (main): Likewise.
25490         * tests/test-memmem.c (main): Likewise.
25491         * tests/test-strcasestr.c (main): Likewise.
25492         * tests/test-striconv.c (main): Likewise.
25493         * tests/test-striconveh.c (main): Likewise.
25494         * tests/test-striconveha.c (main): Likewise.
25495         * tests/test-strstr.c (main): Likewise.
25496
25497         * build-aux/git-version-gen: Adjust a comment and the Usage string.
25498
25499         bootstrap: sync from coreutils again
25500         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25501
25502 2008-03-01  Jim Meyering  <meyering@redhat.com>
25503
25504         bootstrap: sync from coreutils
25505         * build-aux/bootstrap (update_po_files): Copy a .po file into place
25506         also when the target doesn't exist.
25507
25508 2008-03-01  Eric Blake  <ebb9@byu.net>
25509
25510         Fix bugs in last patch.
25511         * lib/memchr2.c (memchr2): Fix typo.
25512         * tests/test-memchr2.c: Test previous bug, and don't use GNU
25513         extension.
25514         Reported by Bruce Korb.
25515
25516         New module 'memchr2'.
25517         * modules/memchr2: New file.
25518         * modules/memchr2-tests: Likewise.
25519         * lib/memchr2.h: Likewise.
25520         * lib/memchr2.c: Likewise, based on memchr.c.
25521         * tests/test-memchr2.c: New test.
25522         * MODULES.html.sh (String handling): Add memchr2.
25523
25524 2008-02-29  Bruno Haible  <bruno@clisp.org>
25525
25526         * modules/freadseek-tests: New file.
25527         * tests/test-freadseek.sh: New file.
25528         * tests/test-freadseek.c: New file.
25529
25530         New module 'freadseek'.
25531         * modules/freadseek: New file.
25532         * lib/freadseek.h: New file.
25533         * lib/freadseek.c: New file.
25534         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25535
25536 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
25537
25538         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25539         wydawca.
25540
25541         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25542         program_invocation_name and program_invocation_short_name are
25543         present.
25544
25545 2008-02-28  Bruno Haible  <bruno@clisp.org>
25546
25547         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25548         * tests/test-freadptr.sh: Also test non-seekable stdin.
25549
25550 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
25551
25552         * build-aux/bootstrap (source_base, m4_base)
25553         (doc_base, tests_base): New variables.
25554         (gnulib_tool_options): Do not hardcode base directories, use
25555         the above variables instead.
25556
25557 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
25558
25559         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25560
25561 2008-02-28  Bruno Haible  <bruno@clisp.org>
25562
25563         * modules/freadptr-tests: New file.
25564         * tests/test-freadptr.sh: New file.
25565         * tests/test-freadptr.c: New file.
25566
25567         New module 'freadptr'.
25568         * modules/freadptr: New file.
25569         * lib/freadptr.h: New file.
25570         * lib/freadptr.c: New file.
25571         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25572
25573 2008-02-26  Karl Berry  <karl@freefriends.org>
25574
25575         Sync from Libtool:
25576         * libltdl/argz.c (argz_add, argz_count): New functions.
25577         * libltdl/argz.in.h: Declare them.
25578         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25579
25580 2008-02-22  Bruno Haible  <bruno@clisp.org>
25581
25582         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25583         is a pointer type.  Needed for HP-UX 10.
25584         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25585         * doc/posix-functions/gmtime_r.texi: Likewise.
25586         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25587
25588 2008-02-24  Bruno Haible  <bruno@clisp.org>
25589
25590         * modules/environ-tests: New file.
25591         * tests/test-environ.c: New file.
25592
25593         New module 'environ'.
25594         * modules/environ: New file.
25595         * lib/unistd.in.h (environ): New declaration.
25596         * m4/environ.m4: New file.
25597         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25598         after use.
25599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25600         HAVE_DECL_ENVIRON.
25601         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25602         HAVE_DECL_ENVIRON.
25603         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25604         wrong claim that 'environ' is missing on some systems.
25605         * modules/execute (Depends-on): Add environ.
25606         * lib/execute.c (environ): Remove fallback declaration.
25607         * modules/pipe (Depends-on): Add environ.
25608         * lib/pipe.c (environ): Remove fallback declaration.
25609         * modules/setenv (Depends-on): Add environ.
25610         * lib/setenv.c (environ): Remove fallback declaration.
25611         * modules/unsetenv (Depends-on): Add environ.
25612         * lib/unsetenv.c (environ): Remove fallback declaration.
25613         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25614         m4/environ.m4.
25615         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25616         (gl_PREREQ_UNSETENV): Likewise.
25617
25618 2008-02-24  Bruno Haible  <bruno@clisp.org>
25619
25620         * doc/posix-functions/environ.texi: Document the MacOS X problem.
25621
25622 2008-02-20  Bob Proulx  <bob@proulx.com>
25623
25624         Enable use of older two part flavor 'git describe'.
25625         * build-aux/git-version-gen: If using the older two part flavor of
25626         git version then recreate the third part now present in the
25627         newer three part flavor of git describe.
25628
25629 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
25630
25631         * lib/fts.c (fts_build): Typo correction to comment.
25632
25633 2008-02-17  Bruno Haible  <bruno@clisp.org>
25634
25635         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25636         generating no-op conflicts.
25637
25638 2008-02-17  Bruno Haible  <bruno@clisp.org>
25639
25640         Speed up by 10%.
25641         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25642         result_entries, rather than an index-based loop.
25643
25644 2008-02-17  Bruno Haible  <bruno@clisp.org>
25645
25646         Speed up by 25%.
25647         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25648         'hashcode_cached'.
25649         (entry_create): New function.
25650         (entry_hashcode): Use the cached hashcode if possible.
25651         (read_changelog_file, try_split_merged_entry): Use entry_create.
25652
25653 2008-02-17  Bruno Haible  <bruno@clisp.org>
25654
25655         Speed up from O(n^2) to O(n) for long ChangeLog files.
25656         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25657         (read_changelog_file): Change implementation of entries_reversed list
25658         to rbtreehash.
25659         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25660
25661 2008-02-17  Bruno Haible  <bruno@clisp.org>
25662
25663         New option --split-merged-entry.
25664         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25665         (find_paragraph_end, try_split_merged_entry): New functions.
25666         (long_options): Add option --split-merged-entry.
25667         (usage): Document option --split-merged-entry.
25668         (main): Implement option --split-merged-entry.
25669         Reported by Eric Blake.
25670
25671 2008-02-17  Bruno Haible  <bruno@clisp.org>
25672
25673         * lib/git-merge-changelog.c: Include c-strstr.h.
25674         (main): Support the "git pull --rebase" situation.
25675         * modules/git-merge-changelog (Depends-on): Add c-strstr.
25676         Reported by Eric Blake.
25677
25678 2008-02-16  Eric Blake  <ebb9@byu.net>
25679
25680         Avoid doubling \ in common case of "c-maybe" quoting style.
25681         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25682         eliding outer quotes.
25683         * lib/quotearg.h: Document this.
25684         * tests/test-quotearg.c (result_strings, inputs, results_g)
25685         (flag_results, locale_results): Test it by adding a new string to
25686         each test group.
25687         (compare_strings): Test new string.
25688
25689 2008-02-13  Eric Blake  <ebb9@byu.net>
25690
25691         Avoid trigraph quoting in default output.
25692         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25693         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25694         unless explicitly requested.
25695         * tests/test-quotearg.c (flag_results, main): Add additional tests.
25696
25697 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
25698
25699         Don't rely on signed integer overflowing to negative value.
25700         * lib/getugroups.c (getugroups): Include <limits.h>.
25701         Instead, compare against INT_MAX, and increment only if the test passes.
25702
25703 2008-02-13  Jim Meyering  <meyering@redhat.com>
25704         and Eric Blake  <ebb9@byu.net>
25705
25706         Avoid shadowing warning and compile errors on Linux.
25707         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25708         forwarding macros on Linux.
25709         (dcgettext): Define a stub, for Linux.
25710         (results_g, main): Avoid warnings.
25711
25712 2008-02-12  Eric Blake  <ebb9@byu.net>
25713
25714         Silence warning in last patch.
25715         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25716
25717         Quotearg part 4: add tests, fix c-maybe colon quoting.
25718         * lib/quotearg.h: Improve documentation.
25719         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25720         escapes when adding outer quotes.  When quoting trigraphs, use
25721         valid C notation.  When quoting NUL, omit extra characters if next
25722         character is not digit.  Alter prototype.
25723         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25724         callers.
25725         * modules/quotearg-tests: New module.
25726         * tests/test-quotearg.c: New test.
25727
25728 2008-02-07  Eric Blake  <ebb9@byu.net>
25729
25730         Quotearg part 3: add flag to control outer quote elision.
25731         * lib/quotearg.h (c_maybe_quoting_style): New style.
25732         (enum quoting_flags): Better documentation of flags.
25733         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25734         c-maybe style.
25735         (quotearg_buffer_restyled): Handle new flag to elide outer
25736         quotes.
25737
25738         Quotearg part 2: add flag that can control NUL elision.
25739         * lib/quotearg.h (set_quoting_flags): New prototype.
25740         * lib/quotearg.c (struct quoting_options): Add flag field.
25741         (set_quoting_flags): New function.
25742         (quotearg_buffer_restyled): Add flags parameter.
25743         (quotearg_alloc_mem): Set the flag if length cannot be returned.
25744         (quotearg_n_options): Set the flag, since length cannot be
25745         returned.
25746         (quoting_options_from_style): Default flags correctly.
25747
25748         Quotearg part 1: more wrappers, restore quotearg_char state.
25749         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25750         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25751         (quotearg_colon_mem): New wrappers.
25752         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25753         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25754         functions.
25755         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25756         (quotearg_colon_mem): New functions.
25757
25758 2008-02-11  Bruno Haible  <bruno@clisp.org>
25759
25760         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25761         library in the current directory: it does not work with parallel make.
25762         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25763
25764 2008-02-11  Bruno Haible  <bruno@clisp.org>
25765
25766         * .gitattributes: New file.
25767
25768 2008-02-11  Jim Meyering  <meyering@redhat.com>
25769
25770         useless-if-before-free: Fix reversed exit values.
25771         * build-aux/useless-if-before-free: Use correct values
25772         for EXIT_MATCH and EXIT_NO_MATCH.
25773
25774         * build-aux/useless-if-before-free: Close stdout carefully.
25775
25776 2008-02-10  Bruno Haible  <bruno@clisp.org>
25777
25778         New module 'git-merge-changelog'.
25779         * modules/git-merge-changelog: New file.
25780         * lib/git-merge-changelog.c: New file.
25781
25782 2008-02-10  Jim Meyering  <meyering@redhat.com>
25783
25784         useless-if-before-free: New option: --list (-l).
25785
25786         useless-if-before-free: Don't exit immediately upon open failure.
25787         * build-aux/useless-if-before-free: Exit 2 for errors.
25788         Upon failure to open a file, don't exit immediately.
25789         Rather, just warn and continue with any remaining files.
25790
25791 2008-02-10  Bruno Haible  <bruno@clisp.org>
25792
25793         New abstract list operation 'node_set_value'.
25794         * lib/gl_list.h (gl_list_node_set_value): New function.
25795         (struct gl_list_implementation): New field node_set_value.
25796         * lib/gl_list.c (gl_list_node_set_value): New function.
25797         * lib/gl_array_list.c (gl_array_node_set_value): New function.
25798         (gl_array_list_implementation): Update.
25799         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25800         (gl_carray_list_implementation): Update.
25801         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25802         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25803         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25804         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25805         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25806         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25807         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25808         Update.
25809         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25810         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25811         (gl_sublist_list_implementation): Update.
25812
25813 2008-02-10  Bruno Haible  <bruno@clisp.org>
25814
25815         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25816         Needed when ELEMENT is #defined to 'some_type *'.
25817
25818 2008-02-10  Jim Meyering  <meyering@redhat.com>
25819
25820         New script and module: useless-if-before-free
25821         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25822         * build-aux/useless-if-before-free: New file.
25823         * modules/useless-if-before-free: New file.
25824
25825         * build-aux/gitlog-to-changelog: Use committer date, not author date.
25826
25827         xstrtol_error: Fix typo.
25828         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25829         s/exit_failure/exit_status/.
25830
25831 2008-02-09  Jim Meyering  <meyering@redhat.com>
25832
25833         New script and module: gitlog-to-changelog
25834         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25835         * modules/gitlog-to-changelog: New file.
25836         * build-aux/gitlog-to-changelog: New file.
25837
25838 2008-02-08  Jim Meyering  <meyering@redhat.com>
25839
25840         Avoid two "parameter unused" warnings.
25841         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25842         Mark "st" as used.
25843
25844         Use "git COMMAND", not "git-COMMAND".
25845         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25846         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25847         * build-aux/git-version-gen: Use "git status", not "git-status".
25848
25849 2008-02-07  Bruno Haible  <bruno@clisp.org>
25850
25851         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25852         Avoids a crash on Windows Vista.
25853         Reported by Adam Strzelecki <ono@java.pl> via
25854         Simon Josefsson <simon@josefsson.org>.
25855
25856 2008-02-06  Bruno Haible  <bruno@clisp.org>
25857
25858         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25859         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25860         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25862         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25863         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25864         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25865         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25867         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25868         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25869         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25870         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25871         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25872         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25873         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25874         left-adjust flag.
25875         * tests/test-snprintf-posix.h (test_function): Likewise.
25876         * tests/test-sprintf-posix.h (test_function): Likewise.
25877         * tests/test-vasprintf-posix.c (test_function): Likewise.
25878         * doc/posix-functions/fprintf.texi: Update.
25879         * doc/posix-functions/printf.texi: Update.
25880         * doc/posix-functions/snprintf.texi: Update.
25881         * doc/posix-functions/sprintf.texi: Update.
25882         * doc/posix-functions/vfprintf.texi: Update.
25883         * doc/posix-functions/vprintf.texi: Update.
25884         * doc/posix-functions/vsnprintf.texi: Update.
25885         * doc/posix-functions/vsprintf.texi: Update.
25886         Reported by Peter Fales <psfales@alcatel-lucent.com>.
25887
25888 2008-02-06  Bruno Haible  <bruno@clisp.org>
25889
25890         Fix bug introduced on 2008-01-26.
25891         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25892
25893 2008-02-06  Bruno Haible  <bruno@clisp.org>
25894
25895         Fix bug introduced on 2007-06-10.
25896         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25897         !NEED_PRINTF_FLAG_ZERO.
25898
25899 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
25900
25901         getloadavg: use libperfstat on AIX5
25902         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25903
25904 2008-02-03  Bruno Haible  <bruno@clisp.org>
25905
25906         * lib/diffseq.h: Add comments about required #includes.
25907         Reported by Michael Biggs <gnulib@doubleplum.net>.
25908
25909 2008-02-01  Bruno Haible  <bruno@clisp.org>
25910
25911         * users.txt: Add gnuit.
25912
25913 2008-01-31  Bruno Haible  <bruno@clisp.org>
25914
25915         * lib/md4.c (set_uint32): Mark as inline.
25916         * lib/md5.c (set_uint32): Likewise.
25917         * lib/sha1.c (set_uint32): Likewise.
25918         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25919         * m4/md5.m4 (gl_MD5): Likewise.
25920         * m4/sha1.m4 (gl_SHA1): Likewise.
25921
25922 2008-01-31  Jim Meyering  <meyering@redhat.com>
25923
25924         Use "sizeof VAR", rather than a literal "4".
25925         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25926         * lib/md4.c (md4_read_ctx): Likewise.
25927         * lib/sha1.c (sha1_read_ctx): Likewise.
25928
25929 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25930
25931         * tests/test-sha1.c: New file, based on test-md5.c.
25932
25933         * modules/crypto/sha1-tests: New file.
25934
25935 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25936
25937         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25938
25939 2008-01-31  Jim Meyering  <meyering@redhat.com>
25940
25941         Prefer "sizeof v" over the equivalent "4".
25942         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25943         * lib/md5.c (set_uint32): Likewise.
25944         * lib/sha1.c (set_uint32): Likewise.
25945
25946 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25947
25948         * lib/sha1.c (set_uint32): Mark function as static.
25949
25950 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25951
25952         md2: clarify comments to say that alignment is not required.
25953         * lib/md2.h: Remove warning about alignment in comment.
25954         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25955         never been required.
25956
25957 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25958
25959         md4: adapt alignment constraint fix from sha1.
25960         * lib/md4.c (set_uint32): New function, from sha1.c
25961         (md4_read_ctx): Use it.
25962         (md4_finish_ctx): Doc fix.
25963         * lib/md4.h: Doc fix.
25964
25965 2008-01-31  Simon Josefsson  <simon@josefsson.org>
25966
25967         md5: adapt alignment constraint fix from sha1.
25968         * lib/md5.c (set_uint32): New function, from sha1.c
25969         (md5_read_ctx): Use it.
25970         (md5_finish_ctx): Doc fix.
25971         * lib/md5.h: Doc fix.
25972
25973 2008-01-30  Peter Palfrader  <weasel@debian.org>
25974
25975         sha1: remove the result buffer alignment constraint
25976         * lib/sha1.c (set_uint32): New function.
25977         (sha1_read_ctx): Rewrite to remove the result buffer alignment
25978         constraint.
25979         (sha1_finish_ctx): Remove comment warning about alignment constraint.
25980         * lib/sha1.h: Likewise.
25981
25982 2008-01-30  Andreas Schwab  <schwab@suse.de>
25983             Bruno Haible  <bruno@clisp.org>
25984
25985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25986         correct definition of LDBL_MIN_EXP.
25987
25988 2008-01-30  Karl Berry  <karl@gnu.org>
25989
25990         * config/srclist-update: try to preserve x bit on updates.
25991         * config/srclistvars.sh: update for karl.
25992
25993 2008-01-29  Jim Meyering  <meyering@redhat.com>
25994
25995         vasnprintf.c: Avoid warning about unused label
25996         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25997         "overflow" label definition and associated code with the
25998         same cpp condition that guards the sole use of that label.
25999
26000 2008-01-26  Bruno Haible  <bruno@clisp.org>
26001
26002         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
26003         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
26004         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
26005         * lib/isnanl-nolibm.h (isnanl): Likewise.
26006         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26007
26008 2008-01-26  Bruno Haible  <bruno@clisp.org>
26009
26010         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
26011         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
26012
26013 2008-01-26  Bruno Haible  <bruno@clisp.org>
26014
26015         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
26016         GCC >= 4.0 built-in.
26017         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
26018
26019 2008-01-26  Bruno Haible  <bruno@clisp.org>
26020
26021         Rename isnan, applicable to 'double' only, to isnand.
26022         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
26023         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
26024         (configure.ac): Update.
26025         (Include): Replace "isnan.h" with "isnand.h".
26026         * m4/isnand.m4: Renamed from m4/isnan.m4.
26027         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
26028         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
26029         instead of isnan.c.
26030         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
26031         instead of HAVE_ISNAN_IN_LIBC.
26032         (isnand): Renamed from isnan.
26033         * lib/isnand.c: New file.
26034         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
26035         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
26036         (Makefile.am): Update.
26037         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
26038         Include isnand.h instead of isnan.h.
26039         (main): Test isnand instead of isnan.
26040         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
26041         isnan-nolibm.
26042         * modules/frexp (Depends-on): Likewise.
26043         * modules/frexp-tests (Depends-on): Likewise.
26044         * modules/frexp-nolibm (Depends-on): Likewise.
26045         * modules/frexp-nolibm-tests (Depends-on): Likewise.
26046         * modules/isfinite (Depends-on): Likewise.
26047         * modules/round-tests (Depends-on): Likewise.
26048         * modules/signbit (Depends-on): Likewise.
26049         * modules/signbit-tests (Depends-on): Likewise.
26050         * modules/snprintf-posix (Depends-on): Likewise.
26051         * modules/sprintf-posix (Depends-on): Likewise.
26052         * modules/trunc-tests (Depends-on): Likewise.
26053         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26054         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26055         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26056         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26057         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26058         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26059         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26060         * modules/vasnprintf-posix (Depends-on): Likewise.
26061         * modules/vasprintf-posix (Depends-on): Likewise.
26062         * modules/vfprintf-posix (Depends-on): Likewise.
26063         * modules/vsnprintf-posix (Depends-on): Likewise.
26064         * modules/vsprintf-posix (Depends-on): Likewise.
26065         * lib/frexp.c: Include isnand.h instead of isnan.h.
26066         (ISNAN): Set to isnand instead of isnan.
26067         * lib/isfinite.c: Include isnand.h instead of isnan.h.
26068         (gl_isfinited): Use isnand instead of isnan.
26069         * lib/signbitd.c: Include isnand.h instead of isnan.h.
26070         (gl_signbitd): Use isnand instead of isnan.
26071         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
26072         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
26073         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
26074         (main): Use isnand instead of isnan.
26075         * tests/test-round1.c: Include isnand.h.
26076         (main): Use isnand instead of isnan.
26077         * tests/test-round2.c: Include isnand.h instead of isnan.h.
26078         (ISNAN): Set to isnand instead of isnan.
26079         * tests/test-trunc1.c: Include isnand.h.
26080         (main): Use isnand instead of isnan.
26081         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
26082         (equal): Use isnand instead of isnan.
26083         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
26084         isnand-nolibm.
26085         * NEWS: Mention the change.
26086
26087 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
26088             Bruno Haible  <bruno@clisp.org>
26089
26090         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
26091         the GCC builtins for signbits are present and set
26092         REPLACE_SIGNBIT_USING_GCC if so.
26093         * lib/math.in.h (signbit): Define using GCC builtins if
26094         REPLACE_SIGNBIT_USING_GCC is set.
26095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
26096         REPLACE_SIGNBIT_USING_GCC.
26097         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
26098
26099 2008-01-25  Jim Meyering  <meyering@redhat.com>
26100
26101         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
26102         * lib/poll.c: Include <config.h>, not "config.h".
26103         * tests/test-getaddrinfo.c: Likewise.
26104
26105 2008-01-25  Simon Josefsson  <simon@josefsson.org>
26106
26107         * modules/sockets-tests: New file.
26108
26109 2008-01-24  Simon Josefsson  <simon@josefsson.org>
26110
26111         * modules/sockets: New module, can be used to call WSA_Startup and
26112         WSA_Cleanup when needed.
26113
26114         * lib/sockets.h, lib/sockets.c: New files.
26115
26116         * m4/sockets.m4: New file.
26117
26118         * tests/test-sockets.c: New file.
26119
26120 2008-01-19  Bruno Haible  <bruno@clisp.org>
26121
26122         * doc/posix-headers: Renamed from doc/headers.
26123         * doc/posix-functions: Renamed from doc/functions.
26124         * doc/gnulib.texi: Update.
26125
26126 2008-01-19  Bruno Haible  <bruno@clisp.org>
26127
26128         * doc/glibc-functions/strcasestr.texi: Include contents of
26129         doc/functions/strcasestr.texi, fixing the list of platforms.
26130         * doc/functions/strcasestr.texi: Remove file.
26131
26132 2008-01-19  Bruno Haible  <bruno@clisp.org>
26133
26134         * doc/glibc-functions/memmem.texi: Include contents of
26135         doc/functions/memmem.texi.
26136         * doc/functions/memmem.texi: Remove file.
26137
26138 2008-01-18  Bruno Haible  <bruno@clisp.org>
26139
26140         * doc/glibc-functions/*.texi: New files.
26141         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
26142         to use the new files.
26143
26144 2008-01-17  Bruno Haible  <bruno@clisp.org>
26145
26146         * tests/test-gethostname.c (main): Fix printf statement.
26147
26148 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26149
26150         * modules/gethostname-tests: New file.
26151
26152         * tests/test-gethostname.c: New file.
26153
26154 2008-01-17  Simon Josefsson  <simon@josefsson.org>
26155
26156         * lib/gethostname.c: Include string.h unconditionally, strncpy is
26157         used by the UNAME case.  Reported by Bruno Haible
26158         <bruno@clisp.org>.
26159
26160 2008-01-17  Eric Blake  <ebb9@byu.net>
26161
26162         Convert c-strcasestr to be more efficient.
26163         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
26164         (Depends-on): Add c-strcase, remove malloca, strnlen.
26165         * tests/test-c-strcasestr.c (main): Enhance test.
26166         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
26167
26168 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
26169
26170         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
26171         Use it in creating po/Makevars.
26172
26173 2008-01-15  Simon Josefsson  <simon@josefsson.org>
26174
26175         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
26176         Applications that requires it should initialize libgcrypt
26177         manually.
26178
26179 2008-01-16  Simon Josefsson  <simon@josefsson.org>
26180
26181         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
26182
26183 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
26184
26185         Fix problem with getdate on mingw32 reported by Simon Josefsson
26186         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
26187         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
26188         tzname", when deciding whether to declare tzname.
26189         * lib/strftime.c (tzname): Likewise.
26190
26191 2008-01-15  Bruno Haible  <bruno@clisp.org>
26192
26193         Work around a MacOS X 10.5 bug in frexpl().
26194         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
26195         * doc/functions/frexpl.texi: Document the bug.
26196         Reported by Elias Pipping <pipping@gentoo.org>.
26197
26198 2008-01-14  Eric Blake  <ebb9@byu.net>
26199
26200         Touch up previous patch.
26201         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
26202         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
26203
26204         Convert strcasestr module to use Two-Way algorithm.
26205         * modules/strcasestr-simple: New module, based on the old
26206         strcasestr, but with Two-Way rather than KMP.
26207         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
26208         * lib/string.in.h (rpl_strcasestr): Declare.
26209         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
26210         performance.
26211         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
26212         * modules/string (Makefile.am): Support strcasestr.
26213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
26214         * modules/strcasestr-tests (Depends-on): Check for alarm.
26215         * tests/test-strcasestr.c: Augment test.
26216         * lib/str-two-way.h: Clean up stray macro.
26217         * NEWS: Document new module.
26218         * MODULES.html.sh (string handling): Likewise.
26219         * doc/functions/strcasestr.texi: New file.
26220         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
26221         here, since it is not a POSIX function.
26222
26223 2008-01-14  Colin Watson  <cjwatson@debian.org>
26224             Bruno Haible  <bruno@clisp.org>
26225
26226         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
26227         works fine; if not, set REPLACE_STRSIGNAL.
26228         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
26229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26230         REPLACE_STRSIGNAL.
26231         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
26232         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
26233         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
26234
26235 2008-01-14  Bruno Haible  <bruno@clisp.org>
26236
26237         * modules/strsignal (Include): Change to <string.h>.
26238
26239 2008-01-14  Colin Watson  <cjwatson@debian.org>
26240
26241         * modules/argp (Notice): Add a notice recommending to change
26242         XGETTEXT_OPTIONS.
26243         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
26244
26245 2008-01-13  Colin Watson  <cjwatson@debian.org>
26246
26247         * modules/strsignal-tests: New file.
26248         * tests/test-strsignal.c: New file.
26249
26250         * lib/strsignal.c: New file, from glibc with modifications.
26251         * lib/siglist.h: New file, from glibc with modifications.
26252         * lib/string.in.h (strsignal): New declaration.
26253         * m4/strsignal.m4: New file.
26254         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26255         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
26256         * modules/strsignal: New file.
26257         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
26258         HAVE_DECL_STRSIGNAL.
26259
26260 2008-01-13  Bruno Haible  <bruno@clisp.org>
26261
26262         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
26263         locale encoding is not ASCII. Needed for OpenBSD 4.0.
26264         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26265         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26266
26267 2008-01-13  Bruno Haible  <bruno@clisp.org>
26268
26269         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
26270         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
26271         * lib/argp.h (__attribute__): Likewise.
26272         * lib/c-stack.c (__attribute__): Likewise.
26273         * lib/error.h (__attribute__): Likewise.
26274         * lib/fts.c (__attribute__): Likewise.
26275         * lib/openat.h (__attribute__): Likewise.
26276         * lib/stdio.in.h (__attribute__): Likewise.
26277         * lib/string.in.h (__attribute__): Likewise.
26278         * lib/utimens.c (__attribute__): Likewise.
26279         * lib/vasnprintf.h (__attribute__): Likewise.
26280         * lib/xalloc.h (__attribute__): Likewise.
26281         * lib/xprintf.h (__attribute__): Likewise.
26282         * lib/xstrtol.h (__attribute__): Likewise.
26283         * lib/xvasprintf.h (__attribute__): Likewise.
26284
26285 2008-01-12  Bruno Haible  <bruno@clisp.org>
26286
26287         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
26288         * doc/glibc-headers/a.out.texi: New file.
26289         * doc/glibc-headers/aliases.texi: New file.
26290         * doc/glibc-headers/alloca.texi: New file.
26291         * doc/glibc-headers/ar.texi: New file.
26292         * doc/glibc-headers/argp.texi: New file.
26293         * doc/glibc-headers/argz.texi: New file.
26294         * doc/glibc-headers/byteswap.texi: New file.
26295         * doc/glibc-headers/crypt.texi: New file.
26296         * doc/glibc-headers/endian.texi: New file.
26297         * doc/glibc-headers/envz.texi: New file.
26298         * doc/glibc-headers/err.texi: New file.
26299         * doc/glibc-headers/error.texi: New file.
26300         * doc/glibc-headers/execinfo.texi: New file.
26301         * doc/glibc-headers/fpu_control.texi: New file.
26302         * doc/glibc-headers/fstab.texi: New file.
26303         * doc/glibc-headers/fts.texi: New file.
26304         * doc/glibc-headers/getopt.texi: New file.
26305         * doc/glibc-headers/ieee754.texi: New file.
26306         * doc/glibc-headers/ifaddrs.texi: New file.
26307         * doc/glibc-headers/libintl.texi: New file.
26308         * doc/glibc-headers/mcheck.texi: New file.
26309         * doc/glibc-headers/mntent.texi: New file.
26310         * doc/glibc-headers/obstack.texi: New file.
26311         * doc/glibc-headers/paths.texi: New file.
26312         * doc/glibc-headers/printf.texi: New file.
26313         * doc/glibc-headers/pty.texi: New file.
26314         * doc/glibc-headers/resolv.texi: New file.
26315         * doc/glibc-headers/shadow.texi: New file.
26316         * doc/glibc-headers/sysexits.texi: New file.
26317         * doc/glibc-headers/ttyent.texi: New file.
26318
26319 2008-01-12  Jim Meyering  <meyering@redhat.com>
26320
26321         announce-gen: emit Gnulib's git-based version string.
26322         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
26323         New option --gnulib-version=V, where V is expected to be
26324         the output of running git describe in the gnulib directory.
26325         (get_tool_versions): Request feedback on xdelta.  I suspect it's
26326         not useful, and plan to stop publishing an xdelta file with each
26327         coreutils release.
26328
26329         * build-aux/announce-gen: Also check for lzma-compressed files.
26330
26331 2008-01-11  Bruno Haible  <bruno@clisp.org>
26332
26333         * tests/test-memmem.c (main): Increase maximum allowed time.
26334         * tests/test-strstr.c (main): Likewise.
26335
26336 2008-01-11  Bruno Haible  <bruno@clisp.org>
26337
26338         * doc/functions/memmem.texi: Add more precisions about platforms.
26339         * doc/functions/strstr.texi: Likewise.
26340
26341 2008-01-10  Eric Blake  <ebb9@byu.net>
26342
26343         * m4/strstr.m4: Delete cruft from copy-n-paste.
26344         Reported by Bruno Haible.
26345
26346 2008-01-10  Bruno Haible  <bruno@clisp.org>
26347
26348         Make c-strstr rely on strstr.
26349         * lib/c-strstr.c: Don't include str-kmp.h.
26350         (c_strstr): Define in terms of strstr.
26351         * modules/c-strstr (Files): Remove lib/str-kmp.h.
26352         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
26353
26354 2008-01-10  Bruno Haible  <bruno@clisp.org>
26355
26356         * doc/gnulib.texi (String Functions in C Locale): New section.
26357         * doc/c-ctype.texi: New file.
26358         * doc/c-strcase.texi: New file.
26359         * doc/c-strcaseeq.texi: New file.
26360         * doc/c-strcasestr.texi: New file.
26361         * doc/c-strstr.texi: New file.
26362         * doc/c-strtod.texi: New file.
26363         * doc/c-strtold.texi: New file.
26364
26365 2008-01-10  Eric Blake  <ebb9@byu.net>
26366
26367         * lib/relocatable.h: Fix a comment.
26368
26369 2008-01-10  Eric Blake  <ebb9@byu.net>
26370
26371         Share two-way algorithm.
26372         * lib/str-two-way.h: New file, merged from...
26373         * lib/memmem.c: ...here...
26374         * lib/strstr.c: ...and here.
26375         * modules/memmem (Files): Use it.
26376         * modules/strstr (Files): Likewise.
26377
26378         Avoid quadratic strstr implementations.
26379         * lib/strstr.c: New file.
26380         * m4/strstr.m4: Likewise.
26381         * modules/strstr: Likewise.
26382         * modules/strstr-tests: Likewise.
26383         * tests/test-strstr.c: Likewise.
26384         * lib/string.in.h (rpl_strstr): Declare.
26385         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
26386         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
26387         * modules/string (Makefile.am): Likewise.
26388         * MODULES.html.sh (string handling): Mention new module.
26389         * doc/functions/strstr.texi (strstr): Document the bug.
26390
26391 2008-01-10  Bruno Haible  <bruno@clisp.org>
26392
26393         * lib/relocatable.h (relocate): State whether result is freshly
26394         allocated or not.
26395         * lib/relocatable.c (relocate): Return a freshly allocated string
26396         instead of a pointer to a privately held string.
26397         Reported by Sylvain Beucler <beuc@gnu.org>.
26398
26399 2008-01-10  Colin Watson  <cjwatson@debian.org>
26400
26401         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
26402         s/S_ISNLK/S_ISLNK/.
26403
26404 2008-01-09  Bruno Haible  <bruno@clisp.org>
26405
26406         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
26407         and other files.
26408         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
26409         if it's only a guess.
26410         * modules/memmem: Simplify by depending on memmem-simple.
26411
26412 2008-01-09  Bruno Haible  <bruno@clisp.org>
26413
26414         Work around OpenBSD 4.0 tdelete() bug.
26415         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
26416         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
26417         macros and don't redefine the enum values.
26418         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
26419         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
26420         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
26421
26422 2008-01-09  Bruno Haible  <bruno@clisp.org>
26423
26424         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
26425         (main): Don't perform the tests if setlocale did not install a UTF-8
26426         locale. Needed on OpenBSD 4.0.
26427         * modules/wcwidth-tests (Depends-on): Add localcharset.
26428
26429 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26430
26431         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
26432         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
26433         * NEWS: announce this.
26434         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
26435
26436 2008-01-09  Simon Josefsson  <simon@josefsson.org>
26437         and Eric Blake  <ebb9@byu.net>
26438
26439         Add memmem-simple module.
26440         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
26441         (gl_FUNC_MEMMEM): Separate performance from presence checks.
26442         * modules/memmem-simple: New file.
26443         * modules/memmem (Description): Tweak.
26444         * MODULES.html.sh (string handling): Mention new module.
26445         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
26446         addressed by memmem-simple.
26447         * NEWS: Document the difference.
26448
26449 2008-01-09  Eric Blake  <ebb9@byu.net>
26450
26451         Give gcc some memmem optimization hints.
26452         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26453         (strcasestr): Declare as pure.
26454         * modules/memmem (Maintainer): Claim my implementation.
26455
26456 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26457
26458         Support AIX 6.1 and higher.
26459         * build-aux/config.libpath: Likewise.
26460         * build-aux/config.rpath: Likewise.
26461
26462 2008-01-08  Jim Meyering  <meyering@redhat.com>
26463             Bruno Haible  <bruno@clisp.org>
26464
26465         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26466         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26467         Reported by Peter Fales in
26468         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26469
26470 2008-01-08  Bruno Haible  <bruno@clisp.org>
26471
26472         * modules/unictype/category-of (Depends-on): Add
26473         unictype/category-none.
26474         * modules/unictype/category-and-tests (Depends-on): Add
26475         unictype/category-{L,N,Lu,Nd}.
26476         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26477         * modules/unictype/category-or-tests (Depends-on): Add
26478         unictype/category-{L,N}.
26479         * modules/unictype/category-name-tests (Depends-on): Add
26480         unictype/category-{Z,Nl}.
26481         Reported by Simon Josefsson.
26482
26483 2008-01-08  Bruno Haible  <bruno@clisp.org>
26484
26485         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26486         convention better.
26487         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26488         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26489         Reported by Peter Miller <millerp@canb.auug.org.au>.
26490
26491 2008-01-08  Eric Blake  <ebb9@byu.net>
26492
26493         Rewrite memmem to guarantee linear complexity without malloc.
26494         * lib/memmem.c (memmem): Use Two-Way rather than
26495         Knuth-Morris-Pratt, to allow O(1) space usage.
26496         (critical_factorization, two_way_short_needle)
26497         (two_way_long_needle): New functions.
26498         (knuth_morris_pratt): Delete.
26499         * modules/memmem (Depends-on): No longer need malloca or stdbool.
26500         Add stdint.
26501         * tests/test-memmem.c (main): Add tests for periodic needle and
26502         sublinear performance.
26503         * doc/functions/memmem.texi (memmem): Document other deficiencies
26504         in cygwin and older glibc.
26505
26506 2008-01-08  Bruno Haible  <bruno@clisp.org>
26507
26508         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26509         augmentation.
26510
26511 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
26512
26513         Add a configure time option: --disable-acl.
26514         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26515         AC_ARG_ENABLE(acl).
26516
26517 2008-01-06  Simon Josefsson  <simon@josefsson.org>
26518
26519         * tests/test-localename.c: Don't include obsolete "setenv.h".
26520
26521         * modules/localename-tests (Depends-on): Need unsetenv.
26522
26523 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26524
26525         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26526
26527 2008-01-06  Colin Watson  <cjwatson@debian.org>
26528
26529         * users.txt: Add man-db.
26530
26531 2008-01-07  Bruno Haible  <bruno@clisp.org>
26532
26533         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26534         previous section name.
26535
26536 2008-01-07  Bruno Haible  <bruno@clisp.org>
26537
26538         * lib/progname.c (set_program_name): Don't strip off a leading
26539         "lt-" prefix outside a .libs directory.
26540         Suggested by Paul Eggert.
26541
26542 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
26543             Bruno Haible  <bruno@clisp.org>
26544
26545         Improve memory cleanup in 'relocatable' module.
26546         * lib/relocatable.h (compute_curr_prefix): Change return type to
26547         'char *'.
26548         * lib/relocatable.c (compute_curr_prefix): Change return type to
26549         'char *'. Free curr_installdir after use.
26550         (relocate): Free curr_prefix_better after use.
26551         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26552
26553 2008-01-01  Bruno Haible  <bruno@clisp.org>
26554
26555         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26556         failure on older glibc systems.
26557         Reported by Peter Fales <psfales@alcatel-lucent.com>.
26558
26559 2008-01-05  Eric Blake  <ebb9@byu.net>
26560
26561         Avoid quadratic system memmem.
26562         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26563         Reported by Ralf Wildenhues.
26564
26565         Fix memmem test for mingw.
26566         * modules/memmem-tests (configure.ac): Check for alarm.
26567         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26568         it.
26569         * doc/functions/memmem.texi: New file.
26570         * doc/gnulib.texi (Function Substitutes): Add memmem.
26571         Reported by Bruno Haible.
26572
26573 2008-01-04  Bruno Haible  <bruno@clisp.org>
26574
26575         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26576         Require gl_HEADER_STRINGS_H_DEFAULTS, not
26577         gl_HEADER_STRING_H_DEFAULTS.
26578
26579 2008-01-04  Eric Blake  <ebb9@byu.net>
26580
26581         Shorten duration of memmem test.
26582         * tests/test-memmem.c (main): Use alarm to declare failure if test
26583         is taking too long.
26584         Reported by Ralf Wildenhues.
26585
26586 2007-12-21  Simon Josefsson  <simon@josefsson.org>
26587
26588         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26589         string, needed by strerror.
26590
26591 2008-01-03  Colin Watson  <cjwatson@debian.org>
26592             Bruno Haible  <bruno@clisp.org>
26593
26594         * doc/gnulib-tool.texi (Localization): New section.
26595
26596 2008-01-02  Bruno Haible  <bruno@clisp.org>
26597
26598         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26599         variables to 'unsigned char *' type.
26600         Reported by Paul Eggert.
26601
26602 2008-01-02  Jim Meyering  <jim@meyering.net>
26603
26604         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26605
26606 2007-12-31  Jim Meyering  <jim@meyering.net>
26607
26608         Avoid use of private FTS type name.
26609         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26610
26611 2007-12-30  Karl Berry  <karl@gnu.org>
26612
26613         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26614         work around defect in Texinfo and/or the standalone Info browser.
26615
26616 2007-12-30  Bruno Haible  <bruno@clisp.org>
26617
26618         Unify 5 copies of the KMP code.
26619         * lib/str-kmp.h: New file.
26620         * lib/c-strcasestr.c: Include str-kmp.h.
26621         (knuth_morris_pratt): Remove function.
26622         (c_strcasestr): Update.
26623         * lib/c-strstr.c: Include str-kmp.h.
26624         (knuth_morris_pratt): Remove function.
26625         (c_strcasestr): Update.
26626         * lib/mbscasestr.c: Include str-kmp.h.
26627         (knuth_morris_pratt_unibyte): Remove function.
26628         * lib/mbsstr.c: Include str-kmp.h.
26629         (knuth_morris_pratt_unibyte): Remove function.
26630         * lib/strcasestr.c: Include str-kmp.h.
26631         (knuth_morris_pratt): Remove function.
26632         (strcasestr): Update.
26633         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26634         * modules/c-strstr (Files): Likewise.
26635         * modules/mbscasestr (Files): Likewise.
26636         * modules/mbsstr (Files): Likewise.
26637         * modules/strcasestr (Files): Likewise.
26638         Suggested by Paul Eggert.
26639
26640 2007-12-30  Bruno Haible  <bruno@clisp.org>
26641
26642         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26643         defined.
26644
26645 2007-12-30  Bruno Haible  <bruno@clisp.org>
26646
26647         * lib/xmalloca.h: Include xalloc.h.
26648         (xnmalloca): New macro.
26649
26650 2007-12-30  Bruno Haible  <bruno@clisp.org>
26651
26652         * lib/malloca.h (nmalloca): New macro.
26653         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26654         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26655         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26656         knuth_morris_pratt_multibyte): Likewise.
26657         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26658         knuth_morris_pratt_multibyte): Likewise.
26659         * lib/memmem.c (knuth_morris_pratt): Likewise.
26660         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26661
26662 2007-12-25  Bruno Haible  <bruno@clisp.org>
26663
26664         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26665         * lib/glob.c: Don't include openat.h.
26666         (link_exists2_p): Add back the code that deals with the
26667         !GLOB_ALTDIRFUNC case.
26668         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26669         let it do the filename concatenation.
26670         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26671         * modules/glob (Depends-on): Remove openat.
26672
26673 2007-12-31  Bruno Haible  <bruno@clisp.org>
26674
26675         * modules/dirfd (License): Change to LGPLv2+.
26676         Approved by Jim Meyering.
26677
26678 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26679
26680         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26681         when multiplying M by sizeof (size_t).
26682
26683 2007-12-10  Martin Lambers  <marlam@marlam.de>
26684
26685         Override getpagesize on mingw.
26686         * lib/getpagesize.c: New file.
26687         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26688         * modules/getpagesize (Files): Add lib/getpagesize.c.
26689         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26691         REPLACE_GETPAGESIZE.
26692         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26693
26694 2007-12-25  Bruno Haible  <bruno@clisp.org>
26695
26696         * modules/localcharset (Notice): New field.
26697         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26698         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26699
26700 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26701             Bruno Haible  <bruno@clisp.org>
26702
26703         Avoid using the syntax symbol() in formatted documentation.
26704         * MODULES.html.sh (func_module): When replacing symbol() with a
26705         hyperlink, remove the parentheses. Show an error if some remain.
26706         Recognize and render the '...' syntax.
26707         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26708         Rework. Add paragraph about GCC's inlining.
26709         * doc/alloca.texi: Likewise.
26710         * doc/error.texi: Remove parentheses from symbol reference.
26711         * doc/gnulib-intro.texi: Likewise.
26712         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26713         * modules/fnmatch (Description): Reword to say "the ... function".
26714         * modules/full-read (Description): Likewise.
26715         * modules/full-write (Description): Likewise.
26716         * modules/safe-read (Description): Likewise.
26717         * modules/safe-write (Description): Likewise.
26718         * modules/strchrnul (Description): Likewise.
26719         * modules/trim (Description): Likewise.
26720         * modules/error (Description): Remove parentheses from symbol
26721         references.
26722         * modules/verror (Description): Likewise.
26723         Reported by Karl Berry.
26724
26725 2007-12-25  Bruno Haible  <bruno@clisp.org>
26726
26727         Fixup after 2007-10-16 commit.
26728         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26729
26730 2007-12-24  Bruno Haible  <bruno@clisp.org>
26731
26732         Make --enable-relocatable work with DESTDIR.
26733         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26734         to compute installdir from destprog.
26735         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26736         also set the RELOC_DESTDIR variable.
26737         Reported by Левашев Иван <octagram@bluebottle.com>.
26738
26739 2007-12-24  Bruno Haible  <bruno@clisp.org>
26740
26741         Fix link error due to xalloc_die().
26742         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26743         of xreadlink.
26744         * lib/relocwrapper.c: Update comments.
26745         * build-aux/install-reloc: Remove xreadlink.c from file list.
26746         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26747         xreadlink.c.
26748         Reported by Левашев Иван <octagram@bluebottle.com>.
26749
26750 2007-12-24  Bruno Haible  <bruno@clisp.org>
26751
26752         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26753         * lib/setenv.h: Remove file.
26754         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26755         lib/setenv.h.
26756         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26757         (Depends-on): Add stdlib.
26758         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26759         gl_FUNC_UNSETENV.
26760         (Include): Replace setenv.h with <stdlib.h>.
26761         * modules/unsetenv: New file.
26762         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26763         * lib/unsetenv.c: Include <stdlib.h> first.
26764         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26765         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26766         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26767         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26768         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26769         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26771         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26772         * doc/functions/unsetenv.texi: Update.
26773         * modules/xsetenv (Depends-on): Add unsetenv.
26774         * modules/getdate (Depends-on): Likewise.
26775         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26776         * lib/xsetenv.c: Don't include setenv.h.
26777         * lib/getdate.y: Likewise.
26778         * lib/relocwrapper.c: Likewise.
26779         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26780         (Depends-on): Add stdlib.
26781         * NEWS: Mention the changes.
26782         Reported by Левашев Иван <octagram@bluebottle.com>.
26783
26784 2007-12-23  Bruno Haible  <bruno@clisp.org>
26785
26786         * lib/memmem.c (memmem): Use lowercase variable names. Tab
26787         indentation.
26788
26789 2007-12-23  Bruno Haible  <bruno@clisp.org>
26790
26791         * lib/c-strcasestr.c: Add more comments.
26792         * lib/c-strstr.c: Likewise.
26793         * lib/mbscasestr.c: Likewise.
26794         * lib/mbsstr.c: Likewise.
26795         * lib/strcasestr.c: Likewise.
26796         * lib/memmem.c: Likewise.
26797
26798 2007-12-23  Bruno Haible  <bruno@clisp.org>
26799
26800         * tests/test-memmem.c: Include <string.h> first.
26801
26802 2007-12-22  Bruno Haible  <bruno@clisp.org>
26803
26804         * gnulib-tool (func_create_testdir): Change $auxdir while generating
26805         the contents of $testsbase.
26806         Reported by Ralf Wildenhues.
26807
26808 2007-12-22  Bruno Haible  <bruno@clisp.org>
26809
26810         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26811         two variables local_ldadd_before, local_ldadd_last.
26812
26813 2007-12-20  Eric Blake  <ebb9@byu.net>
26814
26815         Work around circular library issue when cross-compiling.
26816         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26817         that progname.o does not need to pull in rpl_memcmp.
26818
26819 2007-12-19  Eric Blake  <ebb9@byu.net>
26820
26821         Fix memmem to avoid O(n^2) worst-case complexity.
26822         * lib/memmem.c (knuth_morris_pratt): New function.
26823         (memmem): Use it if first few naive iterations fail.
26824         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26825         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26826         * modules/memchr (License): Likewise.
26827         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26828         malloca.
26829         * tests/test-memmem.c: Rewrite, borrowing ideas from
26830         test-mbsstr1.c; the old version wouldn't even compile!
26831         * modules/memmem-tests: New file.
26832         * lib/string.in.h (rpl_memmem): Add declaration.
26833         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26835         REPLACE_MEMMEM.
26836
26837 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26838
26839         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26840         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26841         before any system include files, and undef after them all.  This
26842         should fix a problem on VMS reported by John E. Malmberg in
26843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26844
26845 2007-12-17  Eric Blake  <ebb9@byu.net>
26846
26847         Revert addition of verify, for BSD/OS.
26848         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26849         can't handle large files, for the sake of obsolete platforms.
26850         * modules/fseeko (Depends-on): Remove verify.
26851         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26852         * doc/functions/ftello.texi (ftello): Likewise.
26853         * doc/functions/fgetpos.texi (fgetpos): Likewise.
26854         Reported by Larry Jones.
26855
26856 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
26857
26858         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26859         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26860
26861 2007-12-17  Jim Meyering  <meyering@redhat.com>
26862
26863         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26864         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26865         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26866         * modules/getcwd (Depends-on): Add openat.
26867         Reported by Petr Salinger.
26868
26869 2007-12-17  Bruno Haible  <bruno@clisp.org>
26870
26871         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26872         avoid a segmentation fault of the configure test on x86_64 systems.
26873
26874 2007-12-15  Jim Meyering  <meyering@redhat.com>
26875
26876         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26877
26878 2007-12-13  Eric Blake  <ebb9@byu.net>
26879
26880         Another fseek test.
26881         * tests/test-fseek.c (main): Also test ungetc handling.
26882         * tests/test-fseeko.c (main): Likewise.
26883         * modules/fseeko (Depends-on): Add verify.
26884         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26885         large.
26886         Reported by Larry Jones.
26887
26888         Fix fseeko on mingw.
26889         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26890         seek.
26891
26892         Beef up fseek tests.
26893         * tests/test-fseek.c (main): Also test eof handling.
26894         * tests/test-fseeko.c (main): Likewise.
26895         Reported by Larry Jones.
26896
26897 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
26898
26899         Fix fseeko on BSD-based platforms.
26900         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26901         successful seek.
26902
26903 2007-12-12  Eric Blake  <ebb9@byu.net>
26904
26905         Allow circular dependency of separate libtests.a
26906         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26907         when use_libtests.
26908
26909 2007-12-11  Eric Blake  <ebb9@byu.net>
26910
26911         Fix bug with -0.0L in previous patch.
26912         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26913         * tests/test-isnan.c (main): Also test on zeroes.
26914         * tests/test-isnanf.c (main): Likewise.
26915         * tests/test-isnanl.h (main): Likewise.
26916
26917         Detect pseudo-denormals on x86 even when cross-compiling.
26918         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26919         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26920         invalid bit patterns that happen to satisfy ==.
26921
26922         Avoid link failures with separate libtests.a.
26923         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26924         last, to satisfy circular dependencies.
26925
26926 2007-12-11  Eric Blake  <ebb9@byu.net>
26927         and Bruno Haible  <bruno@clisp.org>
26928
26929         Fix OpenBSD 4.0 <float.h> handling of long double.
26930         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26931         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26932         * doc/headers/float.texi (float.h): Document OpenBSD bug.
26933
26934 2007-12-11  Jim Meyering  <meyering@redhat.com>
26935
26936         * users.txt: Add libvirt.
26937
26938         Support versions of autoconf prior to 2.59c.
26939         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26940         if it is not already defined.
26941
26942 2007-12-09  Bruno Haible  <bruno@clisp.org>
26943
26944         Let 'gnulib-tool --import' collect sources needed for the tests in
26945         tests/ rather than in lib/.
26946         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26947         argument. If true, add rules to generate libtests.a, and put libtests.a
26948         into $(LDADD). Consider source files in subdirectories and set
26949         uses_subdirs.
26950         (func_emit_initmacro_start, func_emit_initmacro_end,
26951         func_emit_initmacro_done): Pass all arguments explicitly.
26952         (func_import): Determine two module lists main_modules,
26953         testsrelated_modules. Determine use_libtests. Determine two variables
26954         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26955         instead of just sed_transform_lib_file. Determine two variables
26956         main_files and testsrelated_files. Compute 'files' as the union of
26957         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26958         func_add_or_update. In the generated gnulib-comp.m4, collect the
26959         object files for tests/ in different variables than those for lib/.
26960         Substitute LIBTESTS_LIBDEPS.
26961         (func_create_testdir): Combine the uses_subdirs results from
26962         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26963
26964 2007-12-09  Bruno Haible  <bruno@clisp.org>
26965
26966         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26967         the build-aux directory.
26968
26969 2007-12-09  Bruno Haible  <bruno@clisp.org>
26970
26971         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26972         introduced on 2006-09-09.
26973
26974 2007-12-07  Jim Meyering  <meyering@redhat.com>
26975
26976         Let these macros work also with autoconf-2.59.
26977         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
26978         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26979         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26980
26981 2007-12-06  Jim Meyering  <meyering@redhat.com>
26982
26983         Avoid a configure-time syntax error in gl_FUNC_ACL.
26984         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26985         function in each branch, before testing the cache variable.
26986
26987 2007-12-04  Eric Blake  <ebb9@byu.net>
26988
26989         Make scripts executable.
26990         * build-aux/config.guess: Add execute permissions.
26991         * build-aux/config.sub: Likewise.
26992         * build-aux/gendocs.sh: Likewise.
26993
26994         Fix frexp on mingw.
26995         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26996         cross-compiling.
26997         * doc/functions/frexp.texi (frexp): Document the bug.
26998
26999         Make cygwin fseeko check more reliable.
27000         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
27001         version numbers, rather than unrelated feature check.
27002         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
27003         * doc/functions/ftello.texi (ftello): Likewise.
27004         Reported by Bruno Haible.
27005
27006         * m4/strerror.m4: Bump version number.
27007
27008 2007-12-03  Bruno Haible  <bruno@clisp.org>
27009
27010         * doc/functions/mprotect.texi: Mention the mingw problem.
27011
27012 2007-12-03  Eric Blake  <ebb9@byu.net>
27013
27014         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
27015         REPLACE_STRERROR is initialized before this macro.
27016
27017 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
27018
27019         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
27020         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
27021         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
27022         put -lsec in even for programs other than 'ls'.  This fixes a problem
27023         for gettext reported by Bruno Haible in
27024         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
27025         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
27026         Add support for Solaris 10.  This isn't efficient, but should get the
27027         job done for now.
27028
27029 2007-12-03  James Youngman  <jay@gnu.org>
27030
27031         * doc/regexprops-generic.texi: change "an close-group" to "a
27032         close-group" and "illegal" to "not allowed".
27033
27034 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27035
27036         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
27037         pr_byname.h. Needed for the rare case when the maintainer has done
27038         "make maintainer-clean" in the source directory and then attempts a
27039         build outside the source directory.
27040         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
27041         scripts_byname.h.
27042
27043 2007-12-02  Martin Lambers <marlam@marlam.de>
27044             Bruno Haible  <bruno@clisp.org>
27045
27046         * lib/getpagesize.h: Remove file.
27047         * lib/unistd.in.h: Include declaration of getpagesize here.
27048         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
27049         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
27050         HAVE_SYS_PARAM_H.
27051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
27052         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27053         * modules/getpagesize (Files): Remove lib/getpagesize.h.
27054         (Depends-on): Add unistd.
27055         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27056         (Include): Use <unistd.h> instead of getpagesize.h.
27057         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
27058         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
27059         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
27060         gl_GETPAGESIZE invocation, already handled by module dependency.
27061         * lib/pagealign_alloc.c: Don't include getpagesize.h.
27062
27063 2007-12-02  Bruno Haible  <bruno@clisp.org>
27064
27065         * modules/strings-tests: New file.
27066         * tests/test-strings.c: New file.
27067
27068         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
27069         * lib/strings.in.h: New file.
27070         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
27071         * m4/strings_h.m4: New file.
27072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
27073         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
27074         * modules/strings: New file.
27075         * modules/string (Makefile.am): Update.
27076         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
27077         Reported by Karl Berry.
27078
27079 2007-12-01  Eric Blake  <ebb9@byu.net>
27080
27081         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
27082         accomodate fix in cygwin 1.5.25.
27083
27084 2007-12-01  Jim Meyering  <meyering@redhat.com>
27085
27086         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
27087         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
27088         that would inhibit utf8-optimization of a regexp containing line-
27089         or buffer-anchors, e.g., `^', `$'.
27090
27091 2007-11-30  Bruno Haible  <bruno@clisp.org>
27092
27093         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
27094         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
27095         glthread_recursive_lock_init.
27096         * lib/lock.c (glthread_recursive_lock_init)
27097         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
27098         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27099
27100 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
27101
27102         New function qset_acl, like set_acl but with syscall semantics.
27103         * lib/acl.h (qset_acl): New decl.
27104         * lib/acl.c (qset_acl): New function.
27105         (set_acl): Use new function.  Use more-consistent diagnostics.
27106
27107 2007-11-28  Jim Meyering  <meyering@redhat.com>
27108
27109         * modules/physmem (License): Change from GPL to LGPLv2+.
27110
27111 2007-11-26  Bruno Haible  <bruno@clisp.org>
27112
27113         * lib/vasnprintf.c (decode_long_double): Don't abort if the
27114         'long double' type has excess precision.
27115         Reported by Jim Meyering in
27116         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
27117
27118 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27119
27120         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
27121         Sync from <http://gnu.org/licenses>.
27122         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
27123         with license text from same location.
27124         * doc/maintain.texi, doc/standards.texi:  Sync from
27125         <http://savannah.gnu.org/projects/gnustandards>.
27126
27127 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
27128         and Jim Meyering  <meyering@redhat.com>
27129
27130         Adjust getdate' grammar to accept a slightly more regular language.
27131         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
27132         Before, the former was rejected.
27133         * lib/getdate.y (digits_to_date_time): New function, factored
27134         out of ...
27135         (number): ...here.  Just call digits_to_date_time.
27136         (hybrid): New non-terminal to handle an <unsigned number,
27137         signed relative offset> sequence consistently.
27138
27139 2007-11-18  Jim Meyering  <meyering@redhat.com>
27140
27141         Pull my changes from coreutils:
27142         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
27143         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
27144         use of $gnulib_tool_option_extras, so that it's separated from the
27145         preceding argument.
27146
27147         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
27148         * build-aux/bootstrap (cp_mark_as_generated): Create any required
27149         parent destination directories before copying a file into place.
27150
27151 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
27152
27153         bootstrap: work also with 4-argument variant of AC_INIT
27154         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
27155
27156 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
27157
27158         Port test-getaddrinfo to Solaris.
27159         Problem reported by Bruno Haible in
27160         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
27161         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
27162         explanation of setting 'hints'.
27163         Don't reject an implementation merely because it returns EAI_SERVICE.
27164         (EAI_SERVICE): Define to 0 if not defined.
27165
27166 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27167
27168         The license of gnu-make and posix-shell is now "GPLed build tool".
27169         * modules/gnu-make (License): Likewise.
27170         * modules/posix-shell (License): Likewise.
27171
27172         New module posix-shell, for determining a POSIX shell
27173         or perhaps something that is close enough to a POSIX shell.
27174         * m4/posix-shell.m4: New file.
27175         * modules/posix-shell: New file.
27176
27177         * MODULES.html.sh: Mention new module.
27178
27179         New module gnu-make, for determining whether we're using GNU Make.
27180         * m4/gnu-make.m4: New file.
27181         * modules/gnu-make: New file.
27182         * MODULES.html.sh: Mention new module.
27183
27184 2007-11-14  Jim Meyering  <meyering@redhat.com>
27185
27186         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
27187         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
27188         use this macro to create a function _definition_.
27189         Remove useless "#undef ARGMATCH_DIE".
27190
27191 2007-11-14  Bruno Haible  <bruno@clisp.org>
27192
27193         * lib/config.charset: Update for OpenBSD 4.1.
27194         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
27195
27196 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27197
27198         Document 64-bit #if problems in stdint.texi.
27199         * doc/headers/stdint.texi (stdint.h): Mention problems with
27200         64-bit-#if, and how to work around them.
27201
27202         Don't insist on 'long long int' support in the preprocessor.  It
27203         breaks too many things.  For example, PRIdMAX still uses a 'long
27204         long int' format with the latest Sun compiler, even though
27205         HAVE_LONG_LONG_INT isn't defined due to that compiler's
27206         preprocessor problem.  This causes the latest coreutils to dump
27207         core on Solaris 10 sparc with the Sun C compiler.
27208         Instead, fix the 2007-10-16 problem in a different way, by evaluating
27209         the troublesome expressions at configure-time, not at #if-time.
27210         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
27211         preprocessor.
27212         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
27213         compile-time C checks, done at 'configure'-time.
27214         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
27215         * modules/inttypes (Makefile): Substitute the new symbols that
27216         gl_INTTYPES_H now generates.
27217         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
27218
27219 2007-11-12  Bruno Haible  <bruno@clisp.org>
27220
27221         Tests for Unicode character classification functions.
27222
27223         * modules/unictype/bidicategory-byname-tests: New file.
27224         * modules/unictype/bidicategory-name-tests: New file.
27225         * modules/unictype/bidicategory-of-tests: New file.
27226         * modules/unictype/bidicategory-test-tests: New file.
27227         * modules/unictype/block-list-tests: New file.
27228         * modules/unictype/block-of-tests: New file.
27229         * modules/unictype/block-test-tests: New file.
27230         * modules/unictype/category-C-tests: New file.
27231         * modules/unictype/category-Cc-tests: New file.
27232         * modules/unictype/category-Cf-tests: New file.
27233         * modules/unictype/category-Cn-tests: New file.
27234         * modules/unictype/category-Co-tests: New file.
27235         * modules/unictype/category-Cs-tests: New file.
27236         * modules/unictype/category-L-tests: New file.
27237         * modules/unictype/category-Ll-tests: New file.
27238         * modules/unictype/category-Lm-tests: New file.
27239         * modules/unictype/category-Lo-tests: New file.
27240         * modules/unictype/category-Lt-tests: New file.
27241         * modules/unictype/category-Lu-tests: New file.
27242         * modules/unictype/category-M-tests: New file.
27243         * modules/unictype/category-Mc-tests: New file.
27244         * modules/unictype/category-Me-tests: New file.
27245         * modules/unictype/category-Mn-tests: New file.
27246         * modules/unictype/category-N-tests: New file.
27247         * modules/unictype/category-Nd-tests: New file.
27248         * modules/unictype/category-Nl-tests: New file.
27249         * modules/unictype/category-No-tests: New file.
27250         * modules/unictype/category-P-tests: New file.
27251         * modules/unictype/category-Pc-tests: New file.
27252         * modules/unictype/category-Pd-tests: New file.
27253         * modules/unictype/category-Pe-tests: New file.
27254         * modules/unictype/category-Pf-tests: New file.
27255         * modules/unictype/category-Pi-tests: New file.
27256         * modules/unictype/category-Po-tests: New file.
27257         * modules/unictype/category-Ps-tests: New file.
27258         * modules/unictype/category-S-tests: New file.
27259         * modules/unictype/category-Sc-tests: New file.
27260         * modules/unictype/category-Sk-tests: New file.
27261         * modules/unictype/category-Sm-tests: New file.
27262         * modules/unictype/category-So-tests: New file.
27263         * modules/unictype/category-Z-tests: New file.
27264         * modules/unictype/category-Zl-tests: New file.
27265         * modules/unictype/category-Zp-tests: New file.
27266         * modules/unictype/category-Zs-tests: New file.
27267         * modules/unictype/category-and-not-tests: New file.
27268         * modules/unictype/category-and-tests: New file.
27269         * modules/unictype/category-byname-tests: New file.
27270         * modules/unictype/category-name-tests: New file.
27271         * modules/unictype/category-none-tests: New file.
27272         * modules/unictype/category-of-tests: New file.
27273         * modules/unictype/category-or-tests: New file.
27274         * modules/unictype/category-test-withtable-tests: New file.
27275         * modules/unictype/combining-class-tests: New file.
27276         * modules/unictype/ctype-alnum-tests: New file.
27277         * modules/unictype/ctype-alpha-tests: New file.
27278         * modules/unictype/ctype-blank-tests: New file.
27279         * modules/unictype/ctype-cntrl-tests: New file.
27280         * modules/unictype/ctype-digit-tests: New file.
27281         * modules/unictype/ctype-graph-tests: New file.
27282         * modules/unictype/ctype-lower-tests: New file.
27283         * modules/unictype/ctype-print-tests: New file.
27284         * modules/unictype/ctype-punct-tests: New file.
27285         * modules/unictype/ctype-space-tests: New file.
27286         * modules/unictype/ctype-upper-tests: New file.
27287         * modules/unictype/ctype-xdigit-tests: New file.
27288         * modules/unictype/decimal-digit-tests: New file.
27289         * modules/unictype/digit-tests: New file.
27290         * modules/unictype/mirror-tests: New file.
27291         * modules/unictype/numeric-tests: New file.
27292         * modules/unictype/property-alphabetic-tests: New file.
27293         * modules/unictype/property-ascii-hex-digit-tests: New file.
27294         * modules/unictype/property-bidi-arabic-digit-tests: New file.
27295         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
27296         * modules/unictype/property-bidi-block-separator-tests: New file.
27297         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
27298         * modules/unictype/property-bidi-common-separator-tests: New file.
27299         * modules/unictype/property-bidi-control-tests: New file.
27300         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
27301         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
27302         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
27303         * modules/unictype/property-bidi-european-digit-tests: New file.
27304         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
27305         * modules/unictype/property-bidi-left-to-right-tests: New file.
27306         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
27307         * modules/unictype/property-bidi-other-neutral-tests: New file.
27308         * modules/unictype/property-bidi-pdf-tests: New file.
27309         * modules/unictype/property-bidi-segment-separator-tests: New file.
27310         * modules/unictype/property-bidi-whitespace-tests: New file.
27311         * modules/unictype/property-byname-tests: New file.
27312         * modules/unictype/property-combining-tests: New file.
27313         * modules/unictype/property-composite-tests: New file.
27314         * modules/unictype/property-currency-symbol-tests: New file.
27315         * modules/unictype/property-dash-tests: New file.
27316         * modules/unictype/property-decimal-digit-tests: New file.
27317         * modules/unictype/property-default-ignorable-code-point-tests: New file.
27318         * modules/unictype/property-deprecated-tests: New file.
27319         * modules/unictype/property-diacritic-tests: New file.
27320         * modules/unictype/property-extender-tests: New file.
27321         * modules/unictype/property-format-control-tests: New file.
27322         * modules/unictype/property-grapheme-base-tests: New file.
27323         * modules/unictype/property-grapheme-extend-tests: New file.
27324         * modules/unictype/property-grapheme-link-tests: New file.
27325         * modules/unictype/property-hex-digit-tests: New file.
27326         * modules/unictype/property-hyphen-tests: New file.
27327         * modules/unictype/property-id-continue-tests: New file.
27328         * modules/unictype/property-id-start-tests: New file.
27329         * modules/unictype/property-ideographic-tests: New file.
27330         * modules/unictype/property-ids-binary-operator-tests: New file.
27331         * modules/unictype/property-ids-trinary-operator-tests: New file.
27332         * modules/unictype/property-ignorable-control-tests: New file.
27333         * modules/unictype/property-iso-control-tests: New file.
27334         * modules/unictype/property-join-control-tests: New file.
27335         * modules/unictype/property-left-of-pair-tests: New file.
27336         * modules/unictype/property-line-separator-tests: New file.
27337         * modules/unictype/property-logical-order-exception-tests: New file.
27338         * modules/unictype/property-lowercase-tests: New file.
27339         * modules/unictype/property-math-tests: New file.
27340         * modules/unictype/property-non-break-tests: New file.
27341         * modules/unictype/property-not-a-character-tests: New file.
27342         * modules/unictype/property-numeric-tests: New file.
27343         * modules/unictype/property-other-alphabetic-tests: New file.
27344         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
27345         * modules/unictype/property-other-grapheme-extend-tests: New file.
27346         * modules/unictype/property-other-id-continue-tests: New file.
27347         * modules/unictype/property-other-id-start-tests: New file.
27348         * modules/unictype/property-other-lowercase-tests: New file.
27349         * modules/unictype/property-other-math-tests: New file.
27350         * modules/unictype/property-other-uppercase-tests: New file.
27351         * modules/unictype/property-paired-punctuation-tests: New file.
27352         * modules/unictype/property-paragraph-separator-tests: New file.
27353         * modules/unictype/property-pattern-syntax-tests: New file.
27354         * modules/unictype/property-pattern-white-space-tests: New file.
27355         * modules/unictype/property-private-use-tests: New file.
27356         * modules/unictype/property-punctuation-tests: New file.
27357         * modules/unictype/property-quotation-mark-tests: New file.
27358         * modules/unictype/property-radical-tests: New file.
27359         * modules/unictype/property-sentence-terminal-tests: New file.
27360         * modules/unictype/property-soft-dotted-tests: New file.
27361         * modules/unictype/property-space-tests: New file.
27362         * modules/unictype/property-terminal-punctuation-tests: New file.
27363         * modules/unictype/property-test-tests: New file.
27364         * modules/unictype/property-titlecase-tests: New file.
27365         * modules/unictype/property-unassigned-code-value-tests: New file.
27366         * modules/unictype/property-unified-ideograph-tests: New file.
27367         * modules/unictype/property-uppercase-tests: New file.
27368         * modules/unictype/property-variation-selector-tests: New file.
27369         * modules/unictype/property-white-space-tests: New file.
27370         * modules/unictype/property-xid-continue-tests: New file.
27371         * modules/unictype/property-xid-start-tests: New file.
27372         * modules/unictype/property-zero-width-tests: New file.
27373         * modules/unictype/scripts-tests: New file.
27374         * modules/unictype/syntax-c-ident-tests: New file.
27375         * modules/unictype/syntax-c-whitespace-tests: New file.
27376         * modules/unictype/syntax-java-ident-tests: New file.
27377         * modules/unictype/syntax-java-whitespace-tests: New file.
27378         * tests/unictype/test-bidi_byname.c: New file.
27379         * tests/unictype/test-bidi_name.c: New file.
27380         * tests/unictype/test-bidi_of.c: New file.
27381         * tests/unictype/test-bidi_test.c: New file.
27382         * tests/unictype/test-block_list.c: New file.
27383         * tests/unictype/test-block_of.c: New file.
27384         * tests/unictype/test-block_test.c: New file.
27385         * tests/unictype/test-categ_and.c: New file.
27386         * tests/unictype/test-categ_and_not.c: New file.
27387         * tests/unictype/test-categ_byname.c: New file.
27388         * tests/unictype/test-categ_name.c: New file.
27389         * tests/unictype/test-categ_none.c: New file.
27390         * tests/unictype/test-categ_of.c: New file.
27391         * tests/unictype/test-categ_or.c: New file.
27392         * tests/unictype/test-categ_test_withtable.c: New file.
27393         * tests/unictype/test-combining.c: New file.
27394         * tests/unictype/test-decdigit.c: New file.
27395         * tests/unictype/test-digit.c: New file.
27396         * tests/unictype/test-mirror.c: New file.
27397         * tests/unictype/test-numeric.c: New file.
27398         * tests/unictype/test-pr_byname.c: New file.
27399         * tests/unictype/test-pr_test.c: New file.
27400         * tests/unictype/test-predicate-part1.h: New file.
27401         * tests/unictype/test-predicate-part2.h: New file.
27402         * tests/unictype/test-scripts.c: New file.
27403         * tests/unictype/test-sy_c_ident.c: New file.
27404         * tests/unictype/test-sy_java_ident.c: New file.
27405
27406         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
27407         for Unicode 5.0.0.
27408         * tests/unictype/test-categ_Cc.c: Likewise.
27409         * tests/unictype/test-categ_Cf.c: Likewise.
27410         * tests/unictype/test-categ_Cn.c: Likewise.
27411         * tests/unictype/test-categ_Co.c: Likewise.
27412         * tests/unictype/test-categ_Cs.c: Likewise.
27413         * tests/unictype/test-categ_L.c: Likewise.
27414         * tests/unictype/test-categ_Ll.c: Likewise.
27415         * tests/unictype/test-categ_Lm.c: Likewise.
27416         * tests/unictype/test-categ_Lo.c: Likewise.
27417         * tests/unictype/test-categ_Lt.c: Likewise.
27418         * tests/unictype/test-categ_Lu.c: Likewise.
27419         * tests/unictype/test-categ_M.c: Likewise.
27420         * tests/unictype/test-categ_Mc.c: Likewise.
27421         * tests/unictype/test-categ_Me.c: Likewise.
27422         * tests/unictype/test-categ_Mn.c: Likewise.
27423         * tests/unictype/test-categ_N.c: Likewise.
27424         * tests/unictype/test-categ_Nd.c: Likewise.
27425         * tests/unictype/test-categ_Nl.c: Likewise.
27426         * tests/unictype/test-categ_No.c: Likewise.
27427         * tests/unictype/test-categ_P.c: Likewise.
27428         * tests/unictype/test-categ_Pc.c: Likewise.
27429         * tests/unictype/test-categ_Pd.c: Likewise.
27430         * tests/unictype/test-categ_Pe.c: Likewise.
27431         * tests/unictype/test-categ_Pf.c: Likewise.
27432         * tests/unictype/test-categ_Pi.c: Likewise.
27433         * tests/unictype/test-categ_Po.c: Likewise.
27434         * tests/unictype/test-categ_Ps.c: Likewise.
27435         * tests/unictype/test-categ_S.c: Likewise.
27436         * tests/unictype/test-categ_Sc.c: Likewise.
27437         * tests/unictype/test-categ_Sk.c: Likewise.
27438         * tests/unictype/test-categ_Sm.c: Likewise.
27439         * tests/unictype/test-categ_So.c: Likewise.
27440         * tests/unictype/test-categ_Z.c: Likewise.
27441         * tests/unictype/test-categ_Zl.c: Likewise.
27442         * tests/unictype/test-categ_Zp.c: Likewise.
27443         * tests/unictype/test-categ_Zs.c: Likewise.
27444         * tests/unictype/test-ctype_alnum.c: Likewise.
27445         * tests/unictype/test-ctype_alpha.c: Likewise.
27446         * tests/unictype/test-ctype_blank.c: Likewise.
27447         * tests/unictype/test-ctype_cntrl.c: Likewise.
27448         * tests/unictype/test-ctype_digit.c: Likewise.
27449         * tests/unictype/test-ctype_graph.c: Likewise.
27450         * tests/unictype/test-ctype_lower.c: Likewise.
27451         * tests/unictype/test-ctype_print.c: Likewise.
27452         * tests/unictype/test-ctype_punct.c: Likewise.
27453         * tests/unictype/test-ctype_space.c: Likewise.
27454         * tests/unictype/test-ctype_upper.c: Likewise.
27455         * tests/unictype/test-ctype_xdigit.c: Likewise.
27456         * tests/unictype/test-decdigit.h: Likewise.
27457         * tests/unictype/test-digit.h: Likewise.
27458         * tests/unictype/test-numeric.h: Likewise.
27459         * tests/unictype/test-pr_alphabetic.c: Likewise.
27460         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27461         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27462         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27463         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27464         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27465         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27466         * tests/unictype/test-pr_bidi_control.c: Likewise.
27467         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27468         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27469         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27470         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27471         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27472         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27473         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27474         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27475         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27476         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27477         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27478         * tests/unictype/test-pr_combining.c: Likewise.
27479         * tests/unictype/test-pr_composite.c: Likewise.
27480         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27481         * tests/unictype/test-pr_dash.c: Likewise.
27482         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27483         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27484         * tests/unictype/test-pr_deprecated.c: Likewise.
27485         * tests/unictype/test-pr_diacritic.c: Likewise.
27486         * tests/unictype/test-pr_extender.c: Likewise.
27487         * tests/unictype/test-pr_format_control.c: Likewise.
27488         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27489         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27490         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27491         * tests/unictype/test-pr_hex_digit.c: Likewise.
27492         * tests/unictype/test-pr_hyphen.c: Likewise.
27493         * tests/unictype/test-pr_id_continue.c: Likewise.
27494         * tests/unictype/test-pr_id_start.c: Likewise.
27495         * tests/unictype/test-pr_ideographic.c: Likewise.
27496         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27497         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27498         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27499         * tests/unictype/test-pr_iso_control.c: Likewise.
27500         * tests/unictype/test-pr_join_control.c: Likewise.
27501         * tests/unictype/test-pr_left_of_pair.c: Likewise.
27502         * tests/unictype/test-pr_line_separator.c: Likewise.
27503         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27504         * tests/unictype/test-pr_lowercase.c: Likewise.
27505         * tests/unictype/test-pr_math.c: Likewise.
27506         * tests/unictype/test-pr_non_break.c: Likewise.
27507         * tests/unictype/test-pr_not_a_character.c: Likewise.
27508         * tests/unictype/test-pr_numeric.c: Likewise.
27509         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27510         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27511         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27512         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27513         * tests/unictype/test-pr_other_id_start.c: Likewise.
27514         * tests/unictype/test-pr_other_lowercase.c: Likewise.
27515         * tests/unictype/test-pr_other_math.c: Likewise.
27516         * tests/unictype/test-pr_other_uppercase.c: Likewise.
27517         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27518         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27519         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27520         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27521         * tests/unictype/test-pr_private_use.c: Likewise.
27522         * tests/unictype/test-pr_punctuation.c: Likewise.
27523         * tests/unictype/test-pr_quotation_mark.c: Likewise.
27524         * tests/unictype/test-pr_radical.c: Likewise.
27525         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27526         * tests/unictype/test-pr_soft_dotted.c: Likewise.
27527         * tests/unictype/test-pr_space.c: Likewise.
27528         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27529         * tests/unictype/test-pr_titlecase.c: Likewise.
27530         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27531         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27532         * tests/unictype/test-pr_uppercase.c: Likewise.
27533         * tests/unictype/test-pr_variation_selector.c: Likewise.
27534         * tests/unictype/test-pr_white_space.c: Likewise.
27535         * tests/unictype/test-pr_xid_continue.c: Likewise.
27536         * tests/unictype/test-pr_xid_start.c: Likewise.
27537         * tests/unictype/test-pr_zero_width.c: Likewise.
27538         * tests/unictype/test-sy_c_whitespace.c: Likewise.
27539         * tests/unictype/test-sy_java_whitespace.c: Likewise.
27540
27541 2007-11-12  Bruno Haible  <bruno@clisp.org>
27542
27543         Unicode character classification functions.
27544         * lib/unictype.h: New file.
27545         * modules/unictype/base: New file.
27546         * modules/unictype/category-L: New file.
27547         * modules/unictype/category-Lu: New file.
27548         * modules/unictype/category-Ll: New file.
27549         * modules/unictype/category-Lt: New file.
27550         * modules/unictype/category-Lm: New file.
27551         * modules/unictype/category-Lo: New file.
27552         * modules/unictype/category-M: New file.
27553         * modules/unictype/category-Mn: New file.
27554         * modules/unictype/category-Mc: New file.
27555         * modules/unictype/category-Me: New file.
27556         * modules/unictype/category-N: New file.
27557         * modules/unictype/category-Nd: New file.
27558         * modules/unictype/category-Nl: New file.
27559         * modules/unictype/category-No: New file.
27560         * modules/unictype/category-P: New file.
27561         * modules/unictype/category-Pc: New file.
27562         * modules/unictype/category-Pd: New file.
27563         * modules/unictype/category-Ps: New file.
27564         * modules/unictype/category-Pe: New file.
27565         * modules/unictype/category-Pi: New file.
27566         * modules/unictype/category-Pf: New file.
27567         * modules/unictype/category-Po: New file.
27568         * modules/unictype/category-S: New file.
27569         * modules/unictype/category-Sm: New file.
27570         * modules/unictype/category-Sc: New file.
27571         * modules/unictype/category-Sk: New file.
27572         * modules/unictype/category-So: New file.
27573         * modules/unictype/category-Z: New file.
27574         * modules/unictype/category-Zs: New file.
27575         * modules/unictype/category-Zl: New file.
27576         * modules/unictype/category-Zp: New file.
27577         * modules/unictype/category-C: New file.
27578         * modules/unictype/category-Cc: New file.
27579         * modules/unictype/category-Cf: New file.
27580         * modules/unictype/category-Cs: New file.
27581         * modules/unictype/category-Co: New file.
27582         * modules/unictype/category-Cn: New file.
27583         * modules/unictype/category-or: New file.
27584         * modules/unictype/category-of: New file.
27585         * modules/unictype/category-test: New file.
27586         * modules/unictype/category-test-withtable: New file.
27587         * modules/unictype/category-byname: New file.
27588         * modules/unictype/category-none: New file.
27589         * modules/unictype/category-and: New file.
27590         * modules/unictype/category-and-not: New file.
27591         * modules/unictype/category-name: New file.
27592         * modules/unictype/combining-class: New file.
27593         * modules/unictype/category-all: New file.
27594         * modules/unictype/bidicategory-all: New file.
27595         * modules/unictype/bidicategory-byname: New file.
27596         * modules/unictype/bidicategory-name: New file.
27597         * modules/unictype/bidicategory-of: New file.
27598         * modules/unictype/bidicategory-test: New file.
27599         * modules/unictype/decimal-digit: New file.
27600         * modules/unictype/digit: New file.
27601         * modules/unictype/numeric: New file.
27602         * modules/unictype/mirror: New file.
27603         * modules/unictype/property-white-space: New file.
27604         * modules/unictype/property-alphabetic: New file.
27605         * modules/unictype/property-other-alphabetic: New file.
27606         * modules/unictype/property-not-a-character: New file.
27607         * modules/unictype/property-default-ignorable-code-point: New file.
27608         * modules/unictype/property-other-default-ignorable-code-point: New
27609         file.
27610         * modules/unictype/property-deprecated: New file.
27611         * modules/unictype/property-logical-order-exception: New file.
27612         * modules/unictype/property-variation-selector: New file.
27613         * modules/unictype/property-private-use: New file.
27614         * modules/unictype/property-unassigned-code-value: New file.
27615         * modules/unictype/property-uppercase: New file.
27616         * modules/unictype/property-other-uppercase: New file.
27617         * modules/unictype/property-lowercase: New file.
27618         * modules/unictype/property-other-lowercase: New file.
27619         * modules/unictype/property-titlecase: New file.
27620         * modules/unictype/property-soft-dotted: New file.
27621         * modules/unictype/property-id-start: New file.
27622         * modules/unictype/property-other-id-start: New file.
27623         * modules/unictype/property-id-continue: New file.
27624         * modules/unictype/property-other-id-continue: New file.
27625         * modules/unictype/property-xid-start: New file.
27626         * modules/unictype/property-xid-continue: New file.
27627         * modules/unictype/property-pattern-white-space: New file.
27628         * modules/unictype/property-pattern-syntax: New file.
27629         * modules/unictype/property-join-control: New file.
27630         * modules/unictype/property-grapheme-base: New file.
27631         * modules/unictype/property-grapheme-extend: New file.
27632         * modules/unictype/property-other-grapheme-extend: New file.
27633         * modules/unictype/property-grapheme-link: New file.
27634         * modules/unictype/property-bidi-control: New file.
27635         * modules/unictype/property-bidi-left-to-right: New file.
27636         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27637         * modules/unictype/property-bidi-arabic-right-to-left: New file.
27638         * modules/unictype/property-bidi-european-digit: New file.
27639         * modules/unictype/property-bidi-eur-num-separator: New file.
27640         * modules/unictype/property-bidi-eur-num-terminator: New file.
27641         * modules/unictype/property-bidi-arabic-digit: New file.
27642         * modules/unictype/property-bidi-common-separator: New file.
27643         * modules/unictype/property-bidi-block-separator: New file.
27644         * modules/unictype/property-bidi-segment-separator: New file.
27645         * modules/unictype/property-bidi-whitespace: New file.
27646         * modules/unictype/property-bidi-non-spacing-mark: New file.
27647         * modules/unictype/property-bidi-boundary-neutral: New file.
27648         * modules/unictype/property-bidi-pdf: New file.
27649         * modules/unictype/property-bidi-embedding-or-override: New file.
27650         * modules/unictype/property-bidi-other-neutral: New file.
27651         * modules/unictype/property-hex-digit: New file.
27652         * modules/unictype/property-ascii-hex-digit: New file.
27653         * modules/unictype/property-ideographic: New file.
27654         * modules/unictype/property-unified-ideograph: New file.
27655         * modules/unictype/property-radical: New file.
27656         * modules/unictype/property-ids-binary-operator: New file.
27657         * modules/unictype/property-ids-trinary-operator: New file.
27658         * modules/unictype/property-zero-width: New file.
27659         * modules/unictype/property-space: New file.
27660         * modules/unictype/property-non-break: New file.
27661         * modules/unictype/property-iso-control: New file.
27662         * modules/unictype/property-format-control: New file.
27663         * modules/unictype/property-dash: New file.
27664         * modules/unictype/property-hyphen: New file.
27665         * modules/unictype/property-punctuation: New file.
27666         * modules/unictype/property-line-separator: New file.
27667         * modules/unictype/property-paragraph-separator: New file.
27668         * modules/unictype/property-quotation-mark: New file.
27669         * modules/unictype/property-sentence-terminal: New file.
27670         * modules/unictype/property-terminal-punctuation: New file.
27671         * modules/unictype/property-currency-symbol: New file.
27672         * modules/unictype/property-math: New file.
27673         * modules/unictype/property-other-math: New file.
27674         * modules/unictype/property-paired-punctuation: New file.
27675         * modules/unictype/property-left-of-pair: New file.
27676         * modules/unictype/property-combining: New file.
27677         * modules/unictype/property-composite: New file.
27678         * modules/unictype/property-decimal-digit: New file.
27679         * modules/unictype/property-numeric: New file.
27680         * modules/unictype/property-diacritic: New file.
27681         * modules/unictype/property-extender: New file.
27682         * modules/unictype/property-ignorable-control: New file.
27683         * modules/unictype/property-test: New file.
27684         * modules/unictype/property-byname: New file.
27685         * modules/unictype/property-all: New file.
27686         * modules/unictype/scripts: New file.
27687         * modules/unictype/scripts-all: New file.
27688         * modules/unictype/block-of: New file.
27689         * modules/unictype/block-test: New file.
27690         * modules/unictype/block-list: New file.
27691         * modules/unictype/block-all: New file.
27692         * modules/unictype/syntax-c-whitespace: New file.
27693         * modules/unictype/syntax-java-whitespace: New file.
27694         * modules/unictype/syntax-c-ident: New file.
27695         * modules/unictype/syntax-java-ident: New file.
27696         * modules/unictype/ctype-alnum: New file.
27697         * modules/unictype/ctype-alpha: New file.
27698         * modules/unictype/ctype-cntrl: New file.
27699         * modules/unictype/ctype-digit: New file.
27700         * modules/unictype/ctype-graph: New file.
27701         * modules/unictype/ctype-lower: New file.
27702         * modules/unictype/ctype-print: New file.
27703         * modules/unictype/ctype-punct: New file.
27704         * modules/unictype/ctype-space: New file.
27705         * modules/unictype/ctype-upper: New file.
27706         * modules/unictype/ctype-xdigit: New file.
27707         * modules/unictype/ctype-blank: New file.
27708         * lib/unictype/bidi_byname.c: New file.
27709         * lib/unictype/bidi_name.c: New file.
27710         * lib/unictype/bidi_of.c: New file.
27711         * lib/unictype/bidi_test.c: New file.
27712         * lib/unictype/bitmap.h: New file.
27713         * lib/unictype/block_test.c: New file.
27714         * lib/unictype/blocks.c: New file.
27715         * lib/unictype/categ_C.c: New file.
27716         * lib/unictype/categ_Cc.c: New file.
27717         * lib/unictype/categ_Cf.c: New file.
27718         * lib/unictype/categ_Cn.c: New file.
27719         * lib/unictype/categ_Co.c: New file.
27720         * lib/unictype/categ_Cs.c: New file.
27721         * lib/unictype/categ_L.c: New file.
27722         * lib/unictype/categ_Ll.c: New file.
27723         * lib/unictype/categ_Lm.c: New file.
27724         * lib/unictype/categ_Lo.c: New file.
27725         * lib/unictype/categ_Lt.c: New file.
27726         * lib/unictype/categ_Lu.c: New file.
27727         * lib/unictype/categ_M.c: New file.
27728         * lib/unictype/categ_Mc.c: New file.
27729         * lib/unictype/categ_Me.c: New file.
27730         * lib/unictype/categ_Mn.c: New file.
27731         * lib/unictype/categ_N.c: New file.
27732         * lib/unictype/categ_Nd.c: New file.
27733         * lib/unictype/categ_Nl.c: New file.
27734         * lib/unictype/categ_No.c: New file.
27735         * lib/unictype/categ_P.c: New file.
27736         * lib/unictype/categ_Pc.c: New file.
27737         * lib/unictype/categ_Pd.c: New file.
27738         * lib/unictype/categ_Pe.c: New file.
27739         * lib/unictype/categ_Pf.c: New file.
27740         * lib/unictype/categ_Pi.c: New file.
27741         * lib/unictype/categ_Po.c: New file.
27742         * lib/unictype/categ_Ps.c: New file.
27743         * lib/unictype/categ_S.c: New file.
27744         * lib/unictype/categ_Sc.c: New file.
27745         * lib/unictype/categ_Sk.c: New file.
27746         * lib/unictype/categ_Sm.c: New file.
27747         * lib/unictype/categ_So.c: New file.
27748         * lib/unictype/categ_Z.c: New file.
27749         * lib/unictype/categ_Zl.c: New file.
27750         * lib/unictype/categ_Zp.c: New file.
27751         * lib/unictype/categ_Zs.c: New file.
27752         * lib/unictype/categ_and.c: New file.
27753         * lib/unictype/categ_and_not.c: New file.
27754         * lib/unictype/categ_byname.c: New file.
27755         * lib/unictype/categ_name.c: New file.
27756         * lib/unictype/categ_none.c: New file.
27757         * lib/unictype/categ_of.c: New file.
27758         * lib/unictype/categ_or.c: New file.
27759         * lib/unictype/categ_test.c: New file.
27760         * lib/unictype/combining.c: New file.
27761         * lib/unictype/ctype_alnum.c: New file.
27762         * lib/unictype/ctype_alpha.c: New file.
27763         * lib/unictype/ctype_blank.c: New file.
27764         * lib/unictype/ctype_cntrl.c: New file.
27765         * lib/unictype/ctype_digit.c: New file.
27766         * lib/unictype/ctype_graph.c: New file.
27767         * lib/unictype/ctype_lower.c: New file.
27768         * lib/unictype/ctype_print.c: New file.
27769         * lib/unictype/ctype_punct.c: New file.
27770         * lib/unictype/ctype_space.c: New file.
27771         * lib/unictype/ctype_upper.c: New file.
27772         * lib/unictype/ctype_xdigit.c: New file.
27773         * lib/unictype/decdigit.c: New file.
27774         * lib/unictype/digit.c: New file.
27775         * lib/unictype/identsyntaxmap.h: New file.
27776         * lib/unictype/mirror.c: New file.
27777         * lib/unictype/numeric.c: New file.
27778         * lib/unictype/pr_alphabetic.c: New file.
27779         * lib/unictype/pr_ascii_hex_digit.c: New file.
27780         * lib/unictype/pr_bidi_arabic_digit.c: New file.
27781         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27782         * lib/unictype/pr_bidi_block_separator.c: New file.
27783         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27784         * lib/unictype/pr_bidi_common_separator.c: New file.
27785         * lib/unictype/pr_bidi_control.c: New file.
27786         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27787         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27788         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27789         * lib/unictype/pr_bidi_european_digit.c: New file.
27790         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27791         * lib/unictype/pr_bidi_left_to_right.c: New file.
27792         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27793         * lib/unictype/pr_bidi_other_neutral.c: New file.
27794         * lib/unictype/pr_bidi_pdf.c: New file.
27795         * lib/unictype/pr_bidi_segment_separator.c: New file.
27796         * lib/unictype/pr_bidi_whitespace.c: New file.
27797         * lib/unictype/pr_byname.c: New file.
27798         * lib/unictype/pr_byname.gperf: New file.
27799         * lib/unictype/pr_combining.c: New file.
27800         * lib/unictype/pr_composite.c: New file.
27801         * lib/unictype/pr_currency_symbol.c: New file.
27802         * lib/unictype/pr_dash.c: New file.
27803         * lib/unictype/pr_decimal_digit.c: New file.
27804         * lib/unictype/pr_default_ignorable_code_point.c: New file.
27805         * lib/unictype/pr_deprecated.c: New file.
27806         * lib/unictype/pr_diacritic.c: New file.
27807         * lib/unictype/pr_extender.c: New file.
27808         * lib/unictype/pr_format_control.c: New file.
27809         * lib/unictype/pr_grapheme_base.c: New file.
27810         * lib/unictype/pr_grapheme_extend.c: New file.
27811         * lib/unictype/pr_grapheme_link.c: New file.
27812         * lib/unictype/pr_hex_digit.c: New file.
27813         * lib/unictype/pr_hyphen.c: New file.
27814         * lib/unictype/pr_id_continue.c: New file.
27815         * lib/unictype/pr_id_start.c: New file.
27816         * lib/unictype/pr_ideographic.c: New file.
27817         * lib/unictype/pr_ids_binary_operator.c: New file.
27818         * lib/unictype/pr_ids_trinary_operator.c: New file.
27819         * lib/unictype/pr_ignorable_control.c: New file.
27820         * lib/unictype/pr_iso_control.c: New file.
27821         * lib/unictype/pr_join_control.c: New file.
27822         * lib/unictype/pr_left_of_pair.c: New file.
27823         * lib/unictype/pr_line_separator.c: New file.
27824         * lib/unictype/pr_logical_order_exception.c: New file.
27825         * lib/unictype/pr_lowercase.c: New file.
27826         * lib/unictype/pr_math.c: New file.
27827         * lib/unictype/pr_non_break.c: New file.
27828         * lib/unictype/pr_not_a_character.c: New file.
27829         * lib/unictype/pr_numeric.c: New file.
27830         * lib/unictype/pr_other_alphabetic.c: New file.
27831         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27832         * lib/unictype/pr_other_grapheme_extend.c: New file.
27833         * lib/unictype/pr_other_id_continue.c: New file.
27834         * lib/unictype/pr_other_id_start.c: New file.
27835         * lib/unictype/pr_other_lowercase.c: New file.
27836         * lib/unictype/pr_other_math.c: New file.
27837         * lib/unictype/pr_other_uppercase.c: New file.
27838         * lib/unictype/pr_paired_punctuation.c: New file.
27839         * lib/unictype/pr_paragraph_separator.c: New file.
27840         * lib/unictype/pr_pattern_syntax.c: New file.
27841         * lib/unictype/pr_pattern_white_space.c: New file.
27842         * lib/unictype/pr_private_use.c: New file.
27843         * lib/unictype/pr_punctuation.c: New file.
27844         * lib/unictype/pr_quotation_mark.c: New file.
27845         * lib/unictype/pr_radical.c: New file.
27846         * lib/unictype/pr_sentence_terminal.c: New file.
27847         * lib/unictype/pr_soft_dotted.c: New file.
27848         * lib/unictype/pr_space.c: New file.
27849         * lib/unictype/pr_terminal_punctuation.c: New file.
27850         * lib/unictype/pr_test.c: New file.
27851         * lib/unictype/pr_titlecase.c: New file.
27852         * lib/unictype/pr_unassigned_code_value.c: New file.
27853         * lib/unictype/pr_unified_ideograph.c: New file.
27854         * lib/unictype/pr_uppercase.c: New file.
27855         * lib/unictype/pr_variation_selector.c: New file.
27856         * lib/unictype/pr_white_space.c: New file.
27857         * lib/unictype/pr_xid_continue.c: New file.
27858         * lib/unictype/pr_xid_start.c: New file.
27859         * lib/unictype/pr_zero_width.c: New file.
27860         * lib/unictype/scripts.c: New file.
27861         * lib/unictype/sy_c_ident.c: New file.
27862         * lib/unictype/sy_c_whitespace.c: New file.
27863         * lib/unictype/sy_java_ident.c: New file.
27864         * lib/unictype/sy_java_whitespace.c: New file.
27865
27866         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27867         Unicode 5.0.0.
27868         * lib/unictype/blocks.h: Likewise.
27869         * lib/unictype/categ_C.h: Likewise.
27870         * lib/unictype/categ_Cc.h: Likewise.
27871         * lib/unictype/categ_Cf.h: Likewise.
27872         * lib/unictype/categ_Cn.h: Likewise.
27873         * lib/unictype/categ_Co.h: Likewise.
27874         * lib/unictype/categ_Cs.h: Likewise.
27875         * lib/unictype/categ_L.h: Likewise.
27876         * lib/unictype/categ_Ll.h: Likewise.
27877         * lib/unictype/categ_Lm.h: Likewise.
27878         * lib/unictype/categ_Lo.h: Likewise.
27879         * lib/unictype/categ_Lt.h: Likewise.
27880         * lib/unictype/categ_Lu.h: Likewise.
27881         * lib/unictype/categ_M.h: Likewise.
27882         * lib/unictype/categ_Mc.h: Likewise.
27883         * lib/unictype/categ_Me.h: Likewise.
27884         * lib/unictype/categ_Mn.h: Likewise.
27885         * lib/unictype/categ_N.h: Likewise.
27886         * lib/unictype/categ_Nd.h: Likewise.
27887         * lib/unictype/categ_Nl.h: Likewise.
27888         * lib/unictype/categ_No.h: Likewise.
27889         * lib/unictype/categ_P.h: Likewise.
27890         * lib/unictype/categ_Pc.h: Likewise.
27891         * lib/unictype/categ_Pd.h: Likewise.
27892         * lib/unictype/categ_Pe.h: Likewise.
27893         * lib/unictype/categ_Pf.h: Likewise.
27894         * lib/unictype/categ_Pi.h: Likewise.
27895         * lib/unictype/categ_Po.h: Likewise.
27896         * lib/unictype/categ_Ps.h: Likewise.
27897         * lib/unictype/categ_S.h: Likewise.
27898         * lib/unictype/categ_Sc.h: Likewise.
27899         * lib/unictype/categ_Sk.h: Likewise.
27900         * lib/unictype/categ_Sm.h: Likewise.
27901         * lib/unictype/categ_So.h: Likewise.
27902         * lib/unictype/categ_Z.h: Likewise.
27903         * lib/unictype/categ_Zl.h: Likewise.
27904         * lib/unictype/categ_Zp.h: Likewise.
27905         * lib/unictype/categ_Zs.h: Likewise.
27906         * lib/unictype/categ_of.h: Likewise.
27907         * lib/unictype/combining.h: Likewise.
27908         * lib/unictype/ctype_alnum.h: Likewise.
27909         * lib/unictype/ctype_alpha.h: Likewise.
27910         * lib/unictype/ctype_blank.h: Likewise.
27911         * lib/unictype/ctype_cntrl.h: Likewise.
27912         * lib/unictype/ctype_digit.h: Likewise.
27913         * lib/unictype/ctype_graph.h: Likewise.
27914         * lib/unictype/ctype_lower.h: Likewise.
27915         * lib/unictype/ctype_print.h: Likewise.
27916         * lib/unictype/ctype_punct.h: Likewise.
27917         * lib/unictype/ctype_space.h: Likewise.
27918         * lib/unictype/ctype_upper.h: Likewise.
27919         * lib/unictype/ctype_xdigit.h: Likewise.
27920         * lib/unictype/decdigit.h: Likewise.
27921         * lib/unictype/digit.h: Likewise.
27922         * lib/unictype/mirror.h: Likewise.
27923         * lib/unictype/numeric.h: Likewise.
27924         * lib/unictype/pr_alphabetic.h: Likewise.
27925         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27926         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27927         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27928         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27929         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27930         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27931         * lib/unictype/pr_bidi_control.h: Likewise.
27932         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27933         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27934         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27935         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27936         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27937         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27938         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27939         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27940         * lib/unictype/pr_bidi_pdf.h: Likewise.
27941         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27942         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27943         * lib/unictype/pr_combining.h: Likewise.
27944         * lib/unictype/pr_composite.h: Likewise.
27945         * lib/unictype/pr_currency_symbol.h: Likewise.
27946         * lib/unictype/pr_dash.h: Likewise.
27947         * lib/unictype/pr_decimal_digit.h: Likewise.
27948         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27949         * lib/unictype/pr_deprecated.h: Likewise.
27950         * lib/unictype/pr_diacritic.h: Likewise.
27951         * lib/unictype/pr_extender.h: Likewise.
27952         * lib/unictype/pr_format_control.h: Likewise.
27953         * lib/unictype/pr_grapheme_base.h: Likewise.
27954         * lib/unictype/pr_grapheme_extend.h: Likewise.
27955         * lib/unictype/pr_grapheme_link.h: Likewise.
27956         * lib/unictype/pr_hex_digit.h: Likewise.
27957         * lib/unictype/pr_hyphen.h: Likewise.
27958         * lib/unictype/pr_id_continue.h: Likewise.
27959         * lib/unictype/pr_id_start.h: Likewise.
27960         * lib/unictype/pr_ideographic.h: Likewise.
27961         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27962         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27963         * lib/unictype/pr_ignorable_control.h: Likewise.
27964         * lib/unictype/pr_iso_control.h: Likewise.
27965         * lib/unictype/pr_join_control.h: Likewise.
27966         * lib/unictype/pr_left_of_pair.h: Likewise.
27967         * lib/unictype/pr_line_separator.h: Likewise.
27968         * lib/unictype/pr_logical_order_exception.h: Likewise.
27969         * lib/unictype/pr_lowercase.h: Likewise.
27970         * lib/unictype/pr_math.h: Likewise.
27971         * lib/unictype/pr_non_break.h: Likewise.
27972         * lib/unictype/pr_not_a_character.h: Likewise.
27973         * lib/unictype/pr_numeric.h: Likewise.
27974         * lib/unictype/pr_other_alphabetic.h: Likewise.
27975         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27976         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27977         * lib/unictype/pr_other_id_continue.h: Likewise.
27978         * lib/unictype/pr_other_id_start.h: Likewise.
27979         * lib/unictype/pr_other_lowercase.h: Likewise.
27980         * lib/unictype/pr_other_math.h: Likewise.
27981         * lib/unictype/pr_other_uppercase.h: Likewise.
27982         * lib/unictype/pr_paired_punctuation.h: Likewise.
27983         * lib/unictype/pr_paragraph_separator.h: Likewise.
27984         * lib/unictype/pr_pattern_syntax.h: Likewise.
27985         * lib/unictype/pr_pattern_white_space.h: Likewise.
27986         * lib/unictype/pr_private_use.h: Likewise.
27987         * lib/unictype/pr_punctuation.h: Likewise.
27988         * lib/unictype/pr_quotation_mark.h: Likewise.
27989         * lib/unictype/pr_radical.h: Likewise.
27990         * lib/unictype/pr_sentence_terminal.h: Likewise.
27991         * lib/unictype/pr_soft_dotted.h: Likewise.
27992         * lib/unictype/pr_space.h: Likewise.
27993         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27994         * lib/unictype/pr_titlecase.h: Likewise.
27995         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27996         * lib/unictype/pr_unified_ideograph.h: Likewise.
27997         * lib/unictype/pr_uppercase.h: Likewise.
27998         * lib/unictype/pr_variation_selector.h: Likewise.
27999         * lib/unictype/pr_white_space.h: Likewise.
28000         * lib/unictype/pr_xid_continue.h: Likewise.
28001         * lib/unictype/pr_xid_start.h: Likewise.
28002         * lib/unictype/pr_zero_width.h: Likewise.
28003         * lib/unictype/scripts.h: Likewise.
28004         * lib/unictype/scripts_byname.gperf: Likewise.
28005         * lib/unictype/sy_c_ident.h: Likewise.
28006         * lib/unictype/sy_c_whitespace.h: Likewise.
28007         * lib/unictype/sy_java_ident.h: Likewise.
28008         * lib/unictype/sy_java_whitespace.h: Likewise.
28009
28010         * lib/unictype/Makefile: New file.
28011         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
28012         glibc.
28013         * lib/unictype/3level.h: New file, copied from glibc.
28014         * lib/unictype/3levelbit.h: New file.
28015
28016 2007-11-11  Bruno Haible  <bruno@clisp.org>
28017
28018         * modules/gperf: New file.
28019         * modules/iconv_open (Depends-on): Add it.
28020         (Makefile.am): Remove the GPERF definition.
28021
28022 2007-11-11  Bruno Haible  <bruno@clisp.org>
28023
28024         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
28025         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
28026
28027 2007-11-11  Bruno Haible  <bruno@clisp.org>
28028
28029         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
28030         (usage): Remove function.
28031
28032 2007-11-11  Bruno Haible  <bruno@clisp.org>
28033
28034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
28035         gl_FUNC_CEILF_LIBS.
28036         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
28037         gl_FUNC_CEIL_LIBS.
28038         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
28039         gl_FUNC_CEILL_LIBS.
28040         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
28041         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
28042         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
28043
28044 2007-11-11  Bruno Haible  <bruno@clisp.org>
28045
28046         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
28047         roundf were declared but do not exist on functions.
28048         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
28049         roundl were declared but do not exist on functions.
28050         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
28051         HAVE_FLOORL_AND_CEILL, respectively.
28052         Needed for Sun C on Solaris 10.
28053
28054 2007-11-11  Bruno Haible  <bruno@clisp.org>
28055
28056         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
28057         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
28058         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
28059         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
28060         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
28061         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
28062         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
28063         HAVE_DECL_ROUNDF.
28064         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
28065         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
28066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
28067         of HAVE_DECL_ROUND*.
28068         * modules/math (Makefile.am): Update.
28069
28070 2007-11-10  Bruno Haible  <bruno@clisp.org>
28071
28072         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
28073         ptrdiff_t as m4/intl.m4.
28074
28075 2007-11-10  Jim Meyering  <meyering@redhat.com>
28076
28077         Avoid link failure for the argmatch test.
28078         * tests/test-argmatch.c (usage): Define function to avoid a link
28079         failure: argmatch_die requires a usage function.
28080
28081 2007-11-09  Bruno Haible  <bruno@clisp.org>
28082
28083         * doc/functions/snprintf.texi: Mention BeOS deficiency.
28084         * doc/functions/vsnprintf.texi: Likewise.
28085         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
28086         with a size argument < 2.
28087
28088 2007-11-09  Bruno Haible  <bruno@clisp.org>
28089
28090         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
28091         buffer. Fixes an inefficiency introduced on 2007-11-03.
28092
28093 2007-11-09  Bruno Haible  <bruno@clisp.org>
28094
28095         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
28096         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
28097
28098 2007-11-08  Jim Meyering  <meyering@redhat.com>
28099
28100         Change cache variable name prefix "jm_" to "gl_" everywhere.
28101         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
28102         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
28103         * m4/uptime.m4: s/gl_/jm_/
28104
28105 2007-11-07  Bruno Haible  <bruno@clisp.org>
28106
28107         Update to GNU gettext 0.17.
28108         * m4/intl.m4: Update to GNU gettext 0.17.
28109         * m4/po.m4: Likewise.
28110         * modules/gettext (Files): Remove m4/ulonglong.m4.
28111         (configure.ac): Require gettext infrastructure from version 0.17.
28112
28113 2007-11-06  Bruno Haible  <bruno@clisp.org>
28114
28115         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
28116         symbolic values are not defined in a public header.
28117         * lib/freadable.c (freadable) [QNX]: Likewise.
28118         * lib/freadahead.c (freadahead) [QNX]: Likewise.
28119         * lib/freading.c (freading) [QNX]: Likewise.
28120         * lib/fseterr.c (fseterr) [QNX]: Likewise.
28121         * lib/fwritable.c (fwritable) [QNX]: Likewise.
28122         * lib/fwriting.c (fwriting) [QNX]: Likewise.
28123         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
28124         Reported by Alain Magloire.
28125
28126         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
28127
28128 2007-11-05  Bruno Haible  <bruno@clisp.org>
28129
28130         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
28131         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
28132         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
28133         Reported by Eric Blake.
28134
28135 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28136             Bruno Haible  <bruno@clisp.org>
28137
28138         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
28139         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
28140         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
28141         (malloc): Undefine also before including <stdlib.h>.
28142         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
28143         Needed on OSF/1 4.0.
28144
28145 2007-11-05  Jim Meyering  <meyering@redhat.com>
28146
28147         git-version-gen: sync from coreutils.
28148         * build-aux/git-version-gen: Add comments.
28149         Change the first '-' to '.' in the snapshot version string,
28150         e.g., 6.9-377-08144 -> 6.9.377-08144
28151         Remove first parameter.
28152         Don't declare a version "-dirty" merely because a time
28153         stamp has changed.
28154
28155 2007-11-04  Bruno Haible  <bruno@clisp.org>
28156
28157         * lib/lock.h: Protect all macro definitions containing an 'if'
28158         statement through a "do { ... } while (0)".
28159         * lib/tls.h: Likewise.
28160
28161 2007-11-04  Bruno Haible  <bruno@clisp.org>
28162
28163         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
28164
28165 2007-11-04  Bruno Haible  <bruno@clisp.org>
28166
28167         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
28168         * modules/fprintf-posix (Depends-on): Add nocrash.
28169         * modules/snprintf-posix (Depends-on): Likewise.
28170         * modules/sprintf-posix (Depends-on): Likewise.
28171         * modules/vasnprintf-posix (Depends-on): Likewise.
28172         * modules/vasprintf-posix (Depends-on): Likewise.
28173         * modules/vfprintf-posix (Depends-on): Likewise.
28174         * modules/vsnprintf-posix (Depends-on): Likewise.
28175         * modules/vsprintf-posix (Depends-on): Likewise.
28176         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28177         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28178         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28179         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28180         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28181         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28182         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28183
28184 2007-11-04  Bruno Haible  <bruno@clisp.org>
28185
28186         * modules/nocrash: New file.
28187         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
28188         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
28189
28190 2007-11-04  Bruno Haible  <bruno@clisp.org>
28191
28192         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
28193         precision handling.
28194         * tests/test-vasprintf-posix.c (test_function): Likewise.
28195         * tests/test-snprintf-posix.h (test_function): Likewise.
28196         * tests/test-sprintf-posix.h (test_function): Likewise.
28197
28198         Fix *printf behaviour for large precisions on mingw and BeOS.
28199         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
28200         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
28201         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
28202         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28203         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28204         gl_PRINTF_PRECISION and test its result. Invoke
28205         gl_PREREQ_VASNPRINTF_PRECISION.
28206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28210         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28212         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28213         * doc/functions/fprintf.texi: Update.
28214         * doc/functions/printf.texi: Update.
28215         * doc/functions/snprintf.texi: Update.
28216         * doc/functions/sprintf.texi: Update.
28217         * doc/functions/vfprintf.texi: Update.
28218         * doc/functions/vprintf.texi: Update.
28219         * doc/functions/vsnprintf.texi: Update.
28220         * doc/functions/vsprintf.texi: Update.
28221
28222 2007-11-04  Bruno Haible  <bruno@clisp.org>
28223
28224         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
28225
28226 2007-11-04  Bruno Haible  <bruno@clisp.org>
28227
28228         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
28229         Reported by Sylvain Beucler <beuc@gnu.org>.
28230
28231 2007-11-03  Bruno Haible  <bruno@clisp.org>
28232
28233         * tests/test-fprintf-posix2.sh: New file.
28234         * tests/test-fprintf-posix2.c: New file.
28235         * modules/fprintf-posix-tests (Files): Add them.
28236         (TESTS): Add test-fprintf-posix2.sh.
28237         (configure.ac): Check for getrlimit and setrlimit.
28238         (check_PROGRAMS): Add test-fprintf-posix2.
28239
28240         * tests/test-printf-posix2.sh: New file.
28241         * tests/test-printf-posix2.c: New file.
28242         * modules/printf-posix-tests (Files): Add them.
28243         (TESTS): Add test-printf-posix2.sh.
28244         (configure.ac): Check for getrlimit and setrlimit.
28245         (check_PROGRAMS): Add test-printf-posix2.
28246
28247         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
28248         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
28249         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
28250         (decode_double): New function, copied from decode_long_double.
28251         (scale10_round_decimal_decoded): New function, extracted from
28252         scale10_round_decimal_long_double.
28253         (scale10_round_decimal_long_double): Use it.
28254         (scale10_round_decimal_double): New function.
28255         (floorlog10): New function.
28256         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
28257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
28258         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
28259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28260         gl_PRINTF_ENOMEM and test its result. Invoke
28261         gl_PREREQ_VASNPRINTF_ENOMEM.
28262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28269         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
28270         * modules/snprintf-posix (Depends-on): Likewise.
28271         * modules/sprintf-posix (Depends-on): Likewise.
28272         * modules/vasnprintf-posix (Depends-on): Likewise.
28273         * modules/vasprintf-posix (Depends-on): Likewise.
28274         * modules/vfprintf-posix (Depends-on): Likewise.
28275         * modules/vsnprintf-posix (Depends-on): Likewise.
28276         * modules/vsprintf-posix (Depends-on): Likewise.
28277         * doc/functions/fprintf.texi: Update.
28278         * doc/functions/printf.texi: Update.
28279         * doc/functions/snprintf.texi: Update.
28280         * doc/functions/sprintf.texi: Update.
28281         * doc/functions/vfprintf.texi: Update.
28282         * doc/functions/vprintf.texi: Update.
28283         * doc/functions/vsnprintf.texi: Update.
28284         * doc/functions/vsprintf.texi: Update.
28285
28286 2007-11-03  Bruno Haible  <bruno@clisp.org>
28287
28288         * modules/frexp-nolibm-tests: New file.
28289
28290         * modules/frexp-nolibm: New file.
28291         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
28292
28293 2007-11-03  Bruno Haible  <bruno@clisp.org>
28294
28295         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
28296         value is C99 compliant.
28297         Needed for OSF/1 5.1.
28298
28299 2007-11-03  Bruno Haible  <bruno@clisp.org>
28300
28301         Fix out-of-memory handling of vasnprintf.
28302         * lib/printf-parse.c: Include <errno.h>.
28303         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
28304         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
28305         is already set.
28306
28307 2007-11-02  Eric Blake  <ebb9@byu.net>
28308
28309         Fix tests on cygwin.
28310         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
28311
28312 2007-11-01  Bruno Haible  <bruno@clisp.org>
28313
28314         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
28315         warning.
28316         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
28317         needed for POSIX compatibility.
28318
28319 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28320
28321         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
28322         for compatibility with GNU.
28323
28324 2007-11-01  Bruno Haible  <bruno@clisp.org>
28325
28326         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
28327         (putenv): Renamed from rpl_putenv. Change argument type from
28328         'const char *' to 'char *'.
28329         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
28330         of defining putenv in config.h, just set REPLACE_PUTENV.
28331         * modules/putenv (Depends-on): Add stdlib.
28332         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28333         (Include): Use <stdlib.h>.
28334         * lib/stdlib.in.h (putenv): New declaration.
28335         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
28336         REPLACE_PUTENV.
28337         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
28338         REPLACE_PUTENV.
28339         Needed for MacOS X 10.5.0.
28340         Reported by Peter O'Gorman <peter@pogma.com>.
28341
28342 2007-11-01  Jim Meyering  <meyering@redhat.com>
28343
28344         Treat an empty date string exactly like "0".
28345         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
28346         if the remaining date string (to be parsed) is empty, use "0".
28347         Reported by Mischa Molhoek and discussed in this thread:
28348         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
28349
28350 2007-10-31  Bruno Haible  <bruno@clisp.org>
28351
28352         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
28353         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
28354         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
28355         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
28356         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
28357         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
28358
28359 2007-10-31  Bruno Haible  <bruno@clisp.org>
28360
28361         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
28362         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
28363         (AC_TYPE_LONG_LONG_INT): Use it.
28364         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
28365         it as well.
28366         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
28367         to m4/longlong.m4.
28368         * modules/stdint (Files): Remove m4/ulonglong.m4.
28369         * modules/strtoull (Files): Use m4/longlong.m4 instead of
28370         m4/ulonglong.m4.
28371         * modules/strtoumax (Files): Likewise.
28372
28373 2007-10-30  Bruno Haible  <bruno@clisp.org>
28374
28375         * modules/xvasprintf-posix: New file.
28376         Suggested by Eric Blake.
28377
28378 2007-10-30  Bruno Haible  <bruno@clisp.org>
28379
28380         * modules/xprintf-posix-tests: New file.
28381         * tests/test-xprintf-posix.sh: New file.
28382         * tests/test-xprintf-posix.c: New file.
28383         * tests/test-xfprintf-posix.c: New file.
28384
28385         * modules/xprintf-posix: New file.
28386
28387 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28388
28389         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
28390         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
28391         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
28392
28393 2007-10-29  Bruno Haible  <bruno@clisp.org>
28394
28395         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
28396         contain the special marker '_cv_'.
28397         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28398         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28399         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28400         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28401         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28402         Reported by Ralf Wildenhues.
28403
28404 2007-10-29  Bruno Haible  <bruno@clisp.org>
28405
28406         * gnulib-tool (func_import): When --lgpl is not specified, set
28407         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
28408         GPLv3.
28409         Reported by Simon Josefsson.
28410
28411 2007-10-28  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
28414         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
28415         HAVE_DECL_ISFINITE.
28416         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28417         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
28418         HAVE_DECL_ISFINITE.
28419
28420 2007-10-28  Bruno Haible  <bruno@clisp.org>
28421
28422         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
28423         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
28424
28425 2007-10-28  Bruno Haible  <bruno@clisp.org>
28426
28427         Fix link errors with Sun C 5.0 on Solaris 10.
28428         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
28429         function is declared but not present in the compiler's libm.
28430         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28431         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28432         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
28433         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
28434         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
28435         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
28436         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
28437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
28438         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
28439         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
28440         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
28441         HAVE_DECL_FLOORL.
28442
28443 2007-10-28  Bruno Haible  <bruno@clisp.org>
28444
28445         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
28446         gl_FUNC_FLOORL. Cache the result.
28447         (gl_FUNC_FLOORL): Use it.
28448         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28449         gl_FUNC_CEILL. Cache the result.
28450         (gl_FUNC_CEILL): Use it.
28451
28452         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28453         gl_FUNC_FLOOR. Cache the result.
28454         (gl_FUNC_FLOOR): Use it.
28455         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28456         gl_FUNC_CEIL. Cache the result.
28457         (gl_FUNC_CEIL): Use it.
28458
28459         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28460         gl_FUNC_FLOORF. Cache the result.
28461         (gl_FUNC_FLOORF): Use it.
28462         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28463         gl_FUNC_CEILF. Cache the result.
28464         (gl_FUNC_CEILF): Use it.
28465
28466 2007-10-28  Bruno Haible  <bruno@clisp.org>
28467
28468         * gnulib-tool: Allow specifying the LGPL version number through
28469         --lgpl=2 or --lgpl=3.
28470         (func_usage): Document --lgpl with argument.
28471         Handle --lgpl=... arguments.
28472         (func_import): Recognize also gl_LGPL calls with an argument. When
28473         --lgpl=2 is used and the module's license is just LGPL, report an
28474         error. Set sed_transform_lib_file according to the lgpl variable. In
28475         the generated files, use --lgpl or gl_LGPL invocations with argument,
28476         if necessary.
28477         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28478         an LGPv2+ license.
28479         * doc/gnulib-tool.texi (Modified imports): Update explanation of
28480         gl_LGPL macro.
28481
28482 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28483             Bruno Haible  <bruno@clisp.org>
28484
28485         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28486         (u16_uctomb_aux): Likewise.
28487         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28488         !HAVE_INLINE.
28489         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28490
28491 2007-10-28  Bruno Haible  <bruno@clisp.org>
28492
28493         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28494         Invoke AM_GETTEXT_OPTION if it exists.
28495         * modules/vasprintf: Likewise.
28496         * modules/verror: Likewise.
28497         * modules/xprintf: Likewise.
28498         * modules/xvasprintf: Likewise.
28499
28500 2007-10-27  Ben Pfaff  <blp@gnu.org>
28501
28502         * lib/math.in.h: Define isfinite macro and prototypes for
28503         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28504         implementations.
28505         * m4/math_h.m4: New substitutions for isfinite module.
28506         * lib/isfinite.c: New file.
28507         * m4/isfinite.m4: New file.
28508         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28509         * modules/isfinite: New file.
28510         * modules/isfinite-tests: New file.
28511         * tests/tests-isfinite.c: New file.
28512         * doc/functions/isfinite.texi: Mention isfinite module.
28513         * MODULES.html.sh: Mention new module.
28514
28515 2007-10-27  Ben Pfaff  <blp@gnu.org>
28516
28517         Ralf Wildenhues reported that Tru64 4.0D declares the round
28518         functions but does not have definitions.
28519         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28520         cannot be found in any library, set the output variable to
28521         "missing" instead of "".
28522         * m4/round.m4: Also use our substitute if we cannot find round in
28523         any library, even if it is declared.
28524         * m4/roundf.m4: Likewise for roundf.
28525         * m4/roundl.m4: Likewise for roundl.
28526         * lib/math.in.h: Undefine roundf, round, roundl before defining
28527         their replacements, to allow for hypothetical systems where these
28528         may be defined as macros but not available in libraries.
28529
28530 2007-10-27  Bruno Haible  <bruno@clisp.org>
28531
28532         * doc/gnulib.texi: Invoke @firstparagraphindent.
28533         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28534         changes in gnulib.
28535         (Source changes): New section.
28536
28537 2007-10-26  Bruno Haible  <bruno@clisp.org>
28538
28539         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28540         borrowed from autoconf.
28541
28542 2007-10-26  Bruno Haible  <bruno@clisp.org>
28543
28544         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28545         strerror returned the empty string. Needed on HP-UX 11.00.
28546
28547 2007-10-24  Micah Cowan  <micah@cowan.name>
28548
28549         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
28550         * build-aux/bootstrap: Remove support for now-unnecessary option,
28551         --cvs-user, and envvars CVS_USER, CVS_RSH.
28552
28553 2007-10-24  Jim Meyering  <meyering@redhat.com>
28554
28555         Avoid diagnostics from sha1sum when there is no cached checksum.
28556         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28557         if the po.s1 file hasn't been created yet.
28558
28559         * build-aux/bootstrap: Sync from coreutils:
28560         2007-10-24  Jim Meyering  <meyering@redhat.com>
28561         Get gnulib from the git repository, not from an obsolete cvs one.
28562         * build-aux/bootstrap: Suggestion from Micah Cowan.
28563         2007-10-04  Jim Meyering  <jim@meyering.net>
28564         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28565         (update_po_files): Work also when there are no .po files in po/.
28566
28567 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
28568
28569         * README: Append ".git" to git and cg examples.
28570         Problem reported by Benoit Sigoure.
28571
28572 2007-10-23  Micah Cowan  <micah@cowan.name>
28573
28574         * users.txt: Add wget.
28575
28576 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28577
28578         Fix linking of some unistdio tests on FreeBSD.
28579         * modules/unistdio/u16-vsnprintf-tests
28580         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28581         * modules/unistdio/u16-vsprintf-tests
28582         (test_u16_vsnprintf1_LDADD): Likewise.
28583         * modules/unistdio/u32-vsnprintf-tests
28584         (test_u32_vsnprintf1_LDADD): Likewise.
28585         * modules/unistdio/u32-vsprintf-tests
28586         (test_u32_vsprintf1_LDADD): Likewise.
28587         * modules/unistdio/u8-vsnprintf-tests
28588         (test_u8_vsnprintf1_LDADD): Likewise.
28589         * modules/unistdio/u8-vsprintf-tests
28590         (test_u8_vsprintf1_LDADD): Likewise.
28591         * modules/unistdio/ulc-vsnprintf-tests
28592         (test_ulc_vsnprintf1_LDADD): Likewise.
28593         * modules/unistdio/ulc-vsprintf-tests
28594         (test_ulc_vsprintf1_LDADD): Likewise.
28595
28596         Fix linking of some uniconv tests on FreeBSD.
28597         * modules/uniconv/u16-conv-from-enc-tests
28598         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28599         * modules/uniconv/u16-conv-to-enc-tests
28600         (test_u16_conv_to_enc_LDADD): Likewise.
28601         * modules/uniconv/u16-strconv-from-enc-tests
28602         (test_u16_strconv_from_enc_LDADD): Likewise.
28603         * modules/uniconv/u16-strconv-to-enc-tests
28604         (test_u16_strconv_to_enc_LDADD): Likewise.
28605         * modules/uniconv/u32-conv-from-enc-tests
28606         (test_u32_conv_from_enc_LDADD): Likewise.
28607         * modules/uniconv/u32-conv-to-enc-tests
28608         (test_u32_conv_to_enc_LDADD): Likewise.
28609         * modules/uniconv/u32-strconv-from-enc-tests
28610         (test_u32_strconv_from_enc_LDADD): Likewise.
28611         * modules/uniconv/u32-strconv-to-enc-tests
28612         (test_u32_strconv_to_enc_LDADD): Likewise.
28613         * modules/uniconv/u8-conv-from-enc-tests
28614         (test_u8_conv_from_enc_LDADD): Likewise.
28615         * modules/uniconv/u8-conv-to-enc-tests
28616         (test_u8_conv_to_enc_LDADD): Likewise.
28617         * modules/uniconv/u8-strconv-from-enc-tests
28618         (test_u8_strconv_from_enc_LDADD): Likewise.
28619         * modules/uniconv/u8-strconv-to-enc-tests
28620         (test_u8_strconv_to_enc_LDADD): Likewise.
28621
28622 2007-10-22  Bruno Haible  <bruno@clisp.org>
28623
28624         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28625         size.
28626
28627 2007-10-22  Eric Blake  <ebb9@byu.net>
28628
28629         Tweak x*printf documentation.
28630         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28631         variable name and comments.
28632         Suggested by Bruno Haible.
28633
28634 2007-10-22  Bruno Haible  <bruno@clisp.org>
28635
28636         * lib/acl.c (copy_acl): Fix file name in comment.
28637
28638 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28639
28640         Fix Tru64 problem with stdbool.h.
28641         * lib/stdbool.in.h (false, true):
28642         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28643         Don't declare as an enum in this situation; it runs afoul of Tru64.
28644         Problem reported by Steven M. Schweda in
28645         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28646
28647 2007-10-22  Eric Blake  <ebb9@byu.net>
28648
28649         Also wrap vf?printf.
28650         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28651         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28652         (xvprintf, xvfprintf): New functions.
28653
28654 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28655
28656         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28657         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28658
28659         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28660         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28661
28662 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
28663
28664         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
28665         by Bruno Haible.
28666
28667 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28668
28669         * lib/getloadavg.c
28670         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28671         Undef `sys' after including sys/table.h, for Tru64 4.0D.
28672
28673         * tests/test-i-ring.c: Work for C89.
28674
28675 2007-10-22  Bruno Haible  <bruno@clisp.org>
28676
28677         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28678         -1u, in preprocessor expression, so that we don't test for the bug
28679         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
28680         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28681
28682 2007-10-22  Eric Blake  <ebb9@byu.net>
28683
28684         * tests/test-yesno.sh: Silence stderr during test.
28685
28686 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28687
28688         * modules/crypto/gc-camellia: New file.
28689
28690         * m4/gc-camellia.m4: New file.
28691
28692         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28693
28694         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28695
28696 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28697
28698         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28699         --help to stdout.  Reported by sms@antinode.org (Steven
28700         M. Schweda).
28701
28702 2007-10-22  Simon Josefsson  <simon@josefsson.org>
28703
28704         * users.txt: Fix link to libksba.
28705
28706 2007-10-21  Ben Pfaff  <blp@gnu.org>
28707
28708         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28709         round.c roundf implementation that depends on floorf and ceilf to
28710         be tested unconditionally.
28711
28712 2007-10-21  Ben Pfaff  <blp@gnu.org>
28713
28714         * m4/check-libm-func.m4: Removed.
28715         * m4/check-math-lib.m4: New file.
28716         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28717         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28718         definition and lack of AC_LIBOBJ([roundf]).
28719         * m4/roundl.m4: Ditto, and similarly for roundl.
28720         * modules/round: Reference new m4 file.
28721         * modules/roundf: Ditto.
28722         * modules/roundl: Ditto.
28723         * tests/test-round2.c (main): Use ROUND instead of round.
28724         Bug report from Bruno Haible.
28725
28726 2007-10-21  Bruno Haible  <bruno@clisp.org>
28727
28728         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28729         context.
28730
28731 2007-10-21  Bruno Haible  <bruno@clisp.org>
28732
28733         * tests/test-wcwidth.c (main): Allow negative result for some control
28734         characters.
28735
28736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28737         Needed on OSF/1 5.1.
28738
28739 2007-10-21  Bruno Haible  <bruno@clisp.org>
28740
28741         * tests/test-floorf1.c: Include isnanf.h.
28742         (main): Use isnanf() instead of isnan().
28743         * tests/test-ceilf1.c: Include isnanf.h.
28744         (main): Use isnanf() instead of isnan().
28745         * tests/test-truncf1.c: Include isnanf.h.
28746         (main): Use isnanf() instead of isnan().
28747         * tests/test-roundf1.c: Include isnanf.h.
28748         (main): Use isnanf() instead of isnan().
28749
28750 2007-10-21  Eric Blake  <ebb9@byu.net>
28751
28752         * users.txt: Update URL for m4.
28753
28754 2007-10-21  Bruno Haible  <bruno@clisp.org>
28755
28756         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28757
28758 2007-10-21  Bruno Haible  <bruno@clisp.org>
28759
28760         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28761         Git's management files if the CVS files are not present.
28762
28763 2007-10-20  Bruno Haible  <bruno@clisp.org>
28764
28765         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28766         gcc-3.4.x.
28767
28768 2007-10-20  Ben Pfaff  <blp@gnu.org>
28769
28770         * lib/math.in.h: Declare round, roundf, roundl if we are providing
28771         implementations.
28772         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28773         * lib/round.c: New file.
28774         * lib/roundf.c: New file.
28775         * lib/roundl.c: New file.
28776         * m4/round.m4: New file.
28777         * m4/roundf.m4: New file.
28778         * m4/roundl.m4: New file.
28779         * m4/check-libm-func-m4: New file.
28780         * modules/math: Replace round, roundf, roundl related @VARS@ in
28781         math.in.h.
28782         * modules/round: New file.
28783         * modules/round-tests: New file.
28784         * modules/roundf: New file.
28785         * modules/roundf-tests: New file.
28786         * modules/roundl: New file.
28787         * modules/roundl-tests: New file.
28788         * tests/test-round1.c: New file.
28789         * tests/test-round2.c: New file.
28790         * tests/test-roundf1.c: New file.
28791         * tests/test-roundf2.c: New file.
28792         * tests/test-roundl.c: New file.
28793         * doc/functions/round.texi: Mention round module.
28794         * doc/functions/roundf.texi: Mention roundf module.
28795         * doc/functions/roundl.texi: Mention roundl module.
28796         * MODULES.html.sh: Mention new modules.
28797         Thanks to Bruno Haible for suggestions.
28798
28799 2007-10-20  Jim Meyering  <meyering@redhat.com>
28800
28801         * lib/xprintf.c: Include <config.h> unconditionally.
28802
28803         Change xprintf's license to GPL.
28804         * modules/xprintf (License): s/LGPL/GPL/, since this module
28805         depends on modules (exit and exitfail) which are GPL.
28806         Suggestion from Bruno Haible.
28807
28808         xprintf fixes.
28809         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28810         Use a clearer diagnostic.
28811         Patch from Bruno Haible.
28812
28813 2007-10-20  Bruno Haible  <bruno@clisp.org>
28814
28815         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28816         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28817         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28818
28819 2007-10-20  Bruno Haible  <bruno@clisp.org>
28820
28821         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28822         precision in the comparison result > x - 1 or similar.
28823         * tests/test-ceilf2.c (correct_result_p): Likewise.
28824         * tests/test-truncf2.c (correct_result_p): Likewise.
28825         * tests/test-trunc2.c (correct_result_p): Likewise.
28826         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28827
28828 2007-10-20  Bruno Haible  <bruno@clisp.org>
28829
28830         * modules/ceil: New file.
28831         * m4/ceil.m4: New file.
28832         * doc/functions/ceil.texi: Mention the 'ceil' module.
28833
28834 2007-10-20  Bruno Haible  <bruno@clisp.org>
28835
28836         * modules/floor: New file.
28837         * m4/floor.m4: New file.
28838         * doc/functions/floor.texi: Mention the 'floor' module.
28839
28840 2007-10-20  Bruno Haible  <bruno@clisp.org>
28841
28842         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28843         of %a.
28844         * modules/floorf-tests (Depends-on): Likewise.
28845         * modules/truncf-tests (Depends-on): Likewise.
28846         * modules/trunc-tests (Depends-on): Likewise.
28847         Reported by Ben Pfaff.
28848
28849 2007-10-19  Jim Meyering  <meyering@redhat.com>
28850
28851         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28852         Don't bother testing specific errno values.  Just test ferror.
28853
28854         New module: xprintf
28855         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28856
28857 2007-10-19  Bruno Haible  <bruno@clisp.org>
28858
28859         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28860         syntax.
28861         * modules/javaexec (Makefile.am): Likewise.
28862         * modules/relocatable-prog (Makefile.am): Likewise.
28863         Suggested by Jim Meyering.
28864
28865 2007-10-18  Bruno Haible  <bruno@clisp.org>
28866
28867         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28868         Reported by Jim Meyering.
28869
28870 2007-10-18  Eric Blake  <ebb9@byu.net>
28871
28872         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28873
28874 2007-10-18  Bruno Haible  <bruno@clisp.org>
28875
28876         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28877         the format string into writable memory. Needed in Fortify conditions.
28878
28879 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
28880             Bruno Haible  <bruno@clisp.org>
28881
28882         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28883         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28884         * modules/trim (Depends-on): Add mbchar.
28885         (configure.ac): Add gl_FUNC_MBRTOWC.
28886         (Makefile.am): Augment lib_SOURCES.
28887
28888 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
28889
28890         Modify glob.c to use fstatat and dirfd, to simplify it.
28891         Suggested by Eric Blake.
28892         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28893         Don't include <stdbool.h>; not used.
28894         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28895         (link_exists_p): Simplify implementation, since we can now assume
28896         dirfd and fstatat.
28897         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
28898
28899 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28900
28901         * gnulib-tool (func_get_dependencies): Fix sed script to
28902         match only tests.
28903
28904 2007-10-17  Bruno Haible  <bruno@clisp.org>
28905
28906         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28907         allow locale names without encoding suffix.
28908         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28909         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28910
28911 2007-10-16  Bruno Haible  <bruno@clisp.org>
28912
28913         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28914         * lib/getgroups.c (getgroups): Likewise.
28915         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28916
28917 2007-10-16  Bruno Haible  <bruno@clisp.org>
28918
28919         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28920         * modules/malloc-posix (License): Likewise.
28921         * modules/realloc-posix (License): Likewise.
28922         * modules/calloc-posix (License): Likewise.
28923         * modules/intprops (License): Change from GPL to LGPL, with
28924         Paul Eggert's approval.
28925
28926 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28927
28928         Merge glibc changes into lib/glob.c.
28929
28930         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28931         2007-10-15 04:59:03 UTC.  Here are the changes:
28932
28933         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
28934
28935         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28936
28937         * lib/glob.c: Add some branch prediction throughout.
28938
28939         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
28940
28941         [BZ #5103]
28942         * lib/glob.c (glob): Recognize patterns starting \/.
28943
28944         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
28945
28946         [BZ #3996]
28947         * lib/glob.c (attribute_hidden): Define if not defined.
28948         (glob): Unescape dirname, filename or username when needed and not
28949         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
28950         is NULL.  Handle unescaped [ in pattern without closing ].
28951         Don't pass GLOB_CHECK down to recursive glob for directories.
28952         (__glob_pattern_type): New function.
28953         (__glob_pattern_p): Implement using __glob_pattern_type.
28954         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28955         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28956         Remove unreachable code.
28957
28958         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
28959
28960         * lib/glob.c (glob_in_dir): Add some comments and asserts to
28961         explain why there are no leaks.
28962
28963         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
28964
28965         [BZ #3253]
28966         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28967         time, rather allocate increasingly bigger arrays of pointers, if
28968         possible with alloca, if too large with malloc.
28969
28970 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28971
28972         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28973         Problem reported by H.Merijn Brand in
28974         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28975         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28976         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28977
28978 2007-10-15  Bruno Haible  <bruno@clisp.org>
28979
28980         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28981         with explicit rpl_ prefix.
28982         * lib/fopen.c (fopen): Likewise.
28983         * lib/freopen.c (freopen): Likewise.
28984         * lib/iconv.c (iconv): Likewise.
28985         * lib/iconv_close.c (iconv_close): Likewise.
28986
28987 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28988
28989         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28990
28991 2007-10-15  Bruno Haible  <bruno@clisp.org>
28992
28993         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28994         <stddef.h> instead of <stdlib.h> since we only need NULL.
28995         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28996
28997 2007-10-15  Bruno Haible  <bruno@clisp.org>
28998
28999         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
29000         Replace paragraph talking about LIBOBJS.
29001         Reported by Colin Watson <cjwatson@debian.org>.
29002
29003 2007-10-15  Bruno Haible  <bruno@clisp.org>
29004
29005         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
29006         <stdlib.h> before using NULL.
29007
29008 2007-10-15  Simon Josefsson  <simon@josefsson.org>
29009
29010         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
29011         Reported by Albert Chin <china@thewrittenword.com>.
29012
29013 2007-10-14  Bruno Haible  <bruno@clisp.org>
29014
29015         * modules/iconv_open-utf-tests: New file.
29016         * tests/test-iconv-utf.c: New file.
29017
29018         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
29019         * modules/iconv_open-utf: New file.
29020         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
29021         (iconv, iconv_close): New declarations.
29022         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
29023         be defined.
29024         (iconv_open): Add special handling of conversion between UTF-8 and
29025         UTF-{16,32}{BE,LE}.
29026         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
29027         * lib/iconv_close.c: New file.
29028         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
29029         gl_FUNC_ICONV_OPEN.
29030         (gl_FUNC_ICONV_OPEN): Use it.
29031         (gl_FUNC_ICONV_OPEN_UTF): New macro.
29032         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
29033         and REPLACE_ICONV_UTF.
29034         * modules/iconv_open (Depends-on): Add c-strcase.
29035         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
29036         ICONV_CONST.
29037         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
29038
29039 2007-10-13  Albert Chin  <china@thewrittenword.com>
29040             Bruno Haible  <bruno@clisp.org>
29041
29042         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
29043         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
29044
29045 2007-10-13  Bruno Haible  <bruno@clisp.org>
29046
29047         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
29048         defined, use the ISO C99 inline semantics.
29049         * lib/argp.h (ARGP_EI): Likewise.
29050
29051 2007-10-13  Bruno Haible  <bruno@clisp.org>
29052
29053         Handle 'inline' change in gcc 4.3.0.
29054         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
29055         argp_fmtstream_write, argp_fmtstream_set_lmargin,
29056         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
29057         argp_fmtstream_point): Disable 'extern' declaration if the function
29058         definition is going to be provided inline.
29059         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
29060         semantics, not the ISO C99 inline semantics.
29061         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
29062         'extern' declaration if the function definition is going to be provided
29063         inline.
29064         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
29065         the GNU C inline semantics, not the ISO C99 inline semantics. With
29066         GCC 4.2, avoid a warning.
29067
29068 2007-10-13  Bruno Haible  <bruno@clisp.org>
29069
29070         * lib/freading.h (freading): Enable the use of __freading for
29071         glibc >= 2.7.
29072         * lib/freading.c (freading): Likewise.
29073
29074 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
29075
29076         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
29077         "warning: C99 inline functions are not supported; using GNU89".
29078
29079 2007-10-12  Bruno Haible  <bruno@clisp.org>
29080
29081         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
29082         of 2.
29083         * tests/test-ceilf2.c: New file.
29084         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
29085
29086         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
29087         * modules/ceilf-tests: Update.
29088
29089 2007-10-12  Bruno Haible  <bruno@clisp.org>
29090
29091         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
29092         of 2.
29093         * tests/test-floorf2.c: New file.
29094         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
29095
29096         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
29097         * modules/floorf-tests: Update.
29098
29099 2007-10-12  Bruno Haible  <bruno@clisp.org>
29100
29101         * tests/test-trunc2.c: New file.
29102         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
29103
29104         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
29105         * modules/trunc-tests: Update.
29106
29107 2007-10-12  Bruno Haible  <bruno@clisp.org>
29108
29109         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
29110         of 2.
29111         * tests/test-truncf2.c: New file.
29112         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
29113
29114         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
29115         * modules/truncf-tests: Update.
29116
29117 2007-10-11  Eric Blake  <ebb9@byu.net>
29118
29119         Don't claim strerror is broken on Interix.
29120         * doc/functions/strerror.texi (strerror): Known broken systems are
29121         now Solaris 8, and not Interix.
29122         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
29123         Interix on cross-compile.
29124         Reported by Martin Koeppe in
29125         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
29126
29127 2007-10-11  Bruno Haible  <bruno@clisp.org>
29128
29129         * modules/i-ring-tests: New file.
29130         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
29131         instead of assert.
29132
29133 2007-10-11  Bruno Haible  <bruno@clisp.org>
29134
29135         * modules/filenamecat-tests: New file.
29136         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
29137         * lib/filenamecat.c: Remove test code.
29138
29139 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
29140
29141         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
29142
29143         * lib/strerror.c: Include <string.h> always, to test interface,
29144         and to remove the need for the dummy.
29145         Include intprops.h to compute width instead of doing it ourselves
29146         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
29147         (strerror): Define it to return NULL if there's no system strerror.
29148         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
29149         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
29150         ancient pre-strerror Unix systems well any more.  Saying "unknown
29151         system error" is enough.
29152         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
29153         simpler strerror.c implementation.
29154         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
29155         Simplify the tests to reflect the simpler strerror implementation.
29156         * modules/strerror (Depends-on): Add intprops.
29157
29158 2007-10-09  Eric Blake  <ebb9@byu.net>
29159
29160         Silence test-fpending.
29161         * modules/fpending-tests (Files): Add wrapper script.
29162         * tests/test-fpending.sh: New file.
29163
29164 2007-10-09  Bruno Haible  <bruno@clisp.org>
29165
29166         * MODULES.html.sh (func_module): Don't create a hyperlink for
29167         function names like 'printf_frexp'.
29168         (Misc): Add crc, memxor.
29169         (Characteristics of floating types): New section.
29170         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
29171         isnanf-nolibm, signbit, trunc, truncf, truncl.
29172         (Enhancements for ISO C 99 functions): New subsection Input/output.
29173         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
29174         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
29175         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
29176         (Compatibility checks for POSIX:2001 functions): Add clock-time.
29177         (Enhancements for POSIX:2001 functions): Add chdir-long.
29178         (File system functions): Add areadlink, chdir-safer, read-file.
29179         Remove cycle-check.
29180         (File system as inode set): New section.
29181         (Date and time): Add gethrxtime.
29182         (Multithreading): Add openmp.
29183         (Internationalization functions): Add localename.
29184         (Unicode string functions): Add unistr/u*-mbsnlen.
29185         (Support for maintaining and releasing projects): Add git-version-gen.
29186         (Lone files): Remove directories.
29187
29188 2007-10-08  Ben Pfaff  <blp@gnu.org>
29189
29190         * lib/xmalloca.h: Fix typo in comment.
29191
29192 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
29193
29194         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
29195         when avoiding problems with integer overflow.  Use a portable test
29196         instead.
29197
29198 2007-10-08  Simon Josefsson  <simon@josefsson.org>
29199
29200         * modules/dummy (License): Change to LGPLv2+.
29201         * modules/float (License): Likewise
29202         * modules/realloc (License): Likewise
29203         * modules/stdlib (License): Likewise
29204
29205 2007-10-07  Bruno Haible  <bruno@clisp.org>
29206
29207         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
29208         * floor.c (TWO_MANT_DIG): Likewise.
29209         * ceil.c (TWO_MANT_DIG): Likewise.
29210         Reported by Ben Pfaff.
29211
29212 2007-10-07  Bruno Haible  <bruno@clisp.org>
29213
29214         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
29215         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
29216         * lib/frexp.c (FUNC): Likewise.
29217         * lib/printf-frexp.h (printf_frexp): Likewise.
29218         * lib/printf-frexpl.h (printf_frexpl): Likewise.
29219         * lib/printf-frexp.c (FUNC): Likewise.
29220         Suggested by Jim Meyering.
29221
29222 2007-10-07  Jim Meyering  <meyering@redhat.com>
29223
29224         Make xnanosleep's integer overflow test more robust.
29225         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
29226         so that gcc-4.3.0 doesn't optimize away this test for overflow.
29227
29228 2007-10-07  Bruno Haible  <bruno@clisp.org>
29229
29230         * NEWS: Mention the license change.
29231
29232         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
29233         abbreviations in the modules files.
29234
29235         Change copyright notice from GPLv2+ to GPLv3+.
29236         * README: Change copyright notice.
29237         * MODULES.html.sh: Likewise.
29238         * build-aux/bootstrap.conf: Likewise.
29239         * build-aux/config.libpath: Likewise.
29240         * build-aux/csharpcomp.sh.in: Likewise.
29241         * build-aux/csharpexec.sh.in: Likewise.
29242         * build-aux/install-reloc: Likewise.
29243         * build-aux/javacomp.sh.in: Likewise.
29244         * build-aux/javaexec.sh.in: Likewise.
29245         * build-aux/ldd.sh.in: Likewise.
29246         * build-aux/reloc-ldflags: Likewise.
29247         * build-aux/relocatable.sh.in: Likewise.
29248         * build-aux/x-to-1.in: Likewise.
29249         * check-module: Likewise.
29250         * config/srclistvars.sh: Likewise.
29251         * gnulib-tool: Likewise.
29252         * lib/acl-internal.h: Likewise.
29253         * lib/acl.c: Likewise.
29254         * lib/acl.h: Likewise.
29255         * lib/acl_entries.c: Likewise.
29256         * lib/areadlink-with-size.c: Likewise.
29257         * lib/areadlink.c: Likewise.
29258         * lib/areadlink.h: Likewise.
29259         * lib/argmatch.c: Likewise.
29260         * lib/argmatch.h: Likewise.
29261         * lib/argp-ba.c: Likewise.
29262         * lib/argp-eexst.c: Likewise.
29263         * lib/argp-fmtstream.c: Likewise.
29264         * lib/argp-fmtstream.h: Likewise.
29265         * lib/argp-fs-xinl.c: Likewise.
29266         * lib/argp-help.c: Likewise.
29267         * lib/argp-namefrob.h: Likewise.
29268         * lib/argp-parse.c: Likewise.
29269         * lib/argp-pin.c: Likewise.
29270         * lib/argp-pv.c: Likewise.
29271         * lib/argp-pvh.c: Likewise.
29272         * lib/argp-xinl.c: Likewise.
29273         * lib/argp.h: Likewise.
29274         * lib/at-func.c: Likewise.
29275         * lib/atanl.c: Likewise.
29276         * lib/backupfile.c: Likewise.
29277         * lib/backupfile.h: Likewise.
29278         * lib/basename.c: Likewise.
29279         * lib/binary-io.h: Likewise.
29280         * lib/byteswap.in.h: Likewise.
29281         * lib/c-stack.c: Likewise.
29282         * lib/c-stack.h: Likewise.
29283         * lib/c-strcasestr.c: Likewise.
29284         * lib/c-strcasestr.h: Likewise.
29285         * lib/c-strstr.c: Likewise.
29286         * lib/c-strstr.h: Likewise.
29287         * lib/c-strtod.c: Likewise.
29288         * lib/calloc.c: Likewise.
29289         * lib/canon-host.c: Likewise.
29290         * lib/canon-host.h: Likewise.
29291         * lib/canonicalize-lgpl.c: Likewise.
29292         * lib/canonicalize.c: Likewise.
29293         * lib/canonicalize.h: Likewise.
29294         * lib/ceil.c: Likewise.
29295         * lib/ceilf.c: Likewise.
29296         * lib/ceill.c: Likewise.
29297         * lib/chdir-long.c: Likewise.
29298         * lib/chdir-long.h: Likewise.
29299         * lib/chdir-safer.c: Likewise.
29300         * lib/chdir-safer.h: Likewise.
29301         * lib/chown.c: Likewise.
29302         * lib/classpath.c: Likewise.
29303         * lib/classpath.h: Likewise.
29304         * lib/clean-temp.c: Likewise.
29305         * lib/clean-temp.h: Likewise.
29306         * lib/cloexec.c: Likewise.
29307         * lib/close-stream.c: Likewise.
29308         * lib/closein.c: Likewise.
29309         * lib/closein.h: Likewise.
29310         * lib/closeout.c: Likewise.
29311         * lib/closeout.h: Likewise.
29312         * lib/concat-filename.c: Likewise.
29313         * lib/copy-file.c: Likewise.
29314         * lib/copy-file.h: Likewise.
29315         * lib/count-one-bits.h: Likewise.
29316         * lib/crc.c: Likewise.
29317         * lib/crc.h: Likewise.
29318         * lib/creat-safer.c: Likewise.
29319         * lib/csharpcomp.c: Likewise.
29320         * lib/csharpcomp.h: Likewise.
29321         * lib/csharpexec.c: Likewise.
29322         * lib/csharpexec.h: Likewise.
29323         * lib/cycle-check.c: Likewise.
29324         * lib/cycle-check.h: Likewise.
29325         * lib/diacrit.c: Likewise.
29326         * lib/diacrit.h: Likewise.
29327         * lib/diffseq.h: Likewise.
29328         * lib/dirchownmod.c: Likewise.
29329         * lib/dirent.in.h: Likewise.
29330         * lib/dirfd.c: Likewise.
29331         * lib/dirfd.h: Likewise.
29332         * lib/dirname.c: Likewise.
29333         * lib/dirname.h: Likewise.
29334         * lib/dummy.c: Likewise.
29335         * lib/dup-safer.c: Likewise.
29336         * lib/dup2.c: Likewise.
29337         * lib/eealloc.h: Likewise.
29338         * lib/error.c: Likewise.
29339         * lib/error.h: Likewise.
29340         * lib/euidaccess.c: Likewise.
29341         * lib/exclude.c: Likewise.
29342         * lib/exclude.h: Likewise.
29343         * lib/execute.c: Likewise.
29344         * lib/execute.h: Likewise.
29345         * lib/exitfail.c: Likewise.
29346         * lib/exitfail.h: Likewise.
29347         * lib/expl.c: Likewise.
29348         * lib/fatal-signal.c: Likewise.
29349         * lib/fatal-signal.h: Likewise.
29350         * lib/fbufmode.c: Likewise.
29351         * lib/fbufmode.h: Likewise.
29352         * lib/fchdir.c: Likewise.
29353         * lib/fchmodat.c: Likewise.
29354         * lib/fchownat.c: Likewise.
29355         * lib/fcntl--.h: Likewise.
29356         * lib/fcntl-safer.h: Likewise.
29357         * lib/fcntl.in.h: Likewise.
29358         * lib/fd-safer.c: Likewise.
29359         * lib/fflush.c: Likewise.
29360         * lib/file-has-acl.c: Likewise.
29361         * lib/file-set.c: Likewise.
29362         * lib/file-type.c: Likewise.
29363         * lib/file-type.h: Likewise.
29364         * lib/fileblocks.c: Likewise.
29365         * lib/filemode.c: Likewise.
29366         * lib/filemode.h: Likewise.
29367         * lib/filename.h: Likewise.
29368         * lib/filenamecat.c: Likewise.
29369         * lib/filenamecat.h: Likewise.
29370         * lib/findprog.c: Likewise.
29371         * lib/findprog.h: Likewise.
29372         * lib/float.in.h: Likewise.
29373         * lib/floor.c: Likewise.
29374         * lib/floorf.c: Likewise.
29375         * lib/floorl.c: Likewise.
29376         * lib/fopen-safer.c: Likewise.
29377         * lib/fopen.c: Likewise.
29378         * lib/fpending.c: Likewise.
29379         * lib/fpending.h: Likewise.
29380         * lib/fprintf.c: Likewise.
29381         * lib/fprintftime.h: Likewise.
29382         * lib/fpucw.h: Likewise.
29383         * lib/fpurge.c: Likewise.
29384         * lib/fpurge.h: Likewise.
29385         * lib/freadable.c: Likewise.
29386         * lib/freadable.h: Likewise.
29387         * lib/freadahead.c: Likewise.
29388         * lib/freadahead.h: Likewise.
29389         * lib/freading.c: Likewise.
29390         * lib/freading.h: Likewise.
29391         * lib/free.c: Likewise.
29392         * lib/freopen.c: Likewise.
29393         * lib/frexp.c: Likewise.
29394         * lib/frexpl.c: Likewise.
29395         * lib/fseek.c: Likewise.
29396         * lib/fseterr.c: Likewise.
29397         * lib/fseterr.h: Likewise.
29398         * lib/fstatat.c: Likewise.
29399         * lib/fstrcmp.c: Likewise.
29400         * lib/fstrcmp.h: Likewise.
29401         * lib/fsusage.c: Likewise.
29402         * lib/fsusage.h: Likewise.
29403         * lib/ftell.c: Likewise.
29404         * lib/ftello.c: Likewise.
29405         * lib/fts-cycle.c: Likewise.
29406         * lib/fts.c: Likewise.
29407         * lib/fts_.h: Likewise.
29408         * lib/full-read.c: Likewise.
29409         * lib/full-read.h: Likewise.
29410         * lib/full-write.c: Likewise.
29411         * lib/full-write.h: Likewise.
29412         * lib/fwritable.c: Likewise.
29413         * lib/fwritable.h: Likewise.
29414         * lib/fwriteerror.c: Likewise.
29415         * lib/fwriteerror.h: Likewise.
29416         * lib/fwriting.c: Likewise.
29417         * lib/fwriting.h: Likewise.
29418         * lib/gcd.c: Likewise.
29419         * lib/gcd.h: Likewise.
29420         * lib/getcwd.c: Likewise.
29421         * lib/getdate.h: Likewise.
29422         * lib/getdate.y: Likewise.
29423         * lib/getdomainname.c: Likewise.
29424         * lib/getdomainname.h: Likewise.
29425         * lib/getgroups.c: Likewise.
29426         * lib/gethostname.c: Likewise.
29427         * lib/gethrxtime.c: Likewise.
29428         * lib/gethrxtime.h: Likewise.
29429         * lib/getloadavg.c: Likewise.
29430         * lib/getndelim2.c: Likewise.
29431         * lib/getndelim2.h: Likewise.
29432         * lib/getnline.c: Likewise.
29433         * lib/getnline.h: Likewise.
29434         * lib/getopt.c: Likewise.
29435         * lib/getopt.in.h: Likewise.
29436         * lib/getopt1.c: Likewise.
29437         * lib/getopt_int.h: Likewise.
29438         * lib/getpagesize.h: Likewise.
29439         * lib/getsubopt.c: Likewise.
29440         * lib/gettime.c: Likewise.
29441         * lib/getugroups.c: Likewise.
29442         * lib/getugroups.h: Likewise.
29443         * lib/getusershell.c: Likewise.
29444         * lib/gl_anyavltree_list1.h: Likewise.
29445         * lib/gl_anyavltree_list2.h: Likewise.
29446         * lib/gl_anyhash_list1.h: Likewise.
29447         * lib/gl_anyhash_list2.h: Likewise.
29448         * lib/gl_anylinked_list1.h: Likewise.
29449         * lib/gl_anylinked_list2.h: Likewise.
29450         * lib/gl_anyrbtree_list1.h: Likewise.
29451         * lib/gl_anyrbtree_list2.h: Likewise.
29452         * lib/gl_anytree_list1.h: Likewise.
29453         * lib/gl_anytree_list2.h: Likewise.
29454         * lib/gl_anytree_oset.h: Likewise.
29455         * lib/gl_anytreehash_list1.h: Likewise.
29456         * lib/gl_anytreehash_list2.h: Likewise.
29457         * lib/gl_array_list.c: Likewise.
29458         * lib/gl_array_list.h: Likewise.
29459         * lib/gl_array_oset.c: Likewise.
29460         * lib/gl_array_oset.h: Likewise.
29461         * lib/gl_avltree_list.c: Likewise.
29462         * lib/gl_avltree_list.h: Likewise.
29463         * lib/gl_avltree_oset.c: Likewise.
29464         * lib/gl_avltree_oset.h: Likewise.
29465         * lib/gl_avltreehash_list.c: Likewise.
29466         * lib/gl_avltreehash_list.h: Likewise.
29467         * lib/gl_carray_list.c: Likewise.
29468         * lib/gl_carray_list.h: Likewise.
29469         * lib/gl_linked_list.c: Likewise.
29470         * lib/gl_linked_list.h: Likewise.
29471         * lib/gl_linkedhash_list.c: Likewise.
29472         * lib/gl_linkedhash_list.h: Likewise.
29473         * lib/gl_list.c: Likewise.
29474         * lib/gl_list.h: Likewise.
29475         * lib/gl_oset.c: Likewise.
29476         * lib/gl_oset.h: Likewise.
29477         * lib/gl_rbtree_list.c: Likewise.
29478         * lib/gl_rbtree_list.h: Likewise.
29479         * lib/gl_rbtree_oset.c: Likewise.
29480         * lib/gl_rbtree_oset.h: Likewise.
29481         * lib/gl_rbtreehash_list.c: Likewise.
29482         * lib/gl_rbtreehash_list.h: Likewise.
29483         * lib/gl_sublist.c: Likewise.
29484         * lib/gl_sublist.h: Likewise.
29485         * lib/group-member.c: Likewise.
29486         * lib/group-member.h: Likewise.
29487         * lib/hard-locale.c: Likewise.
29488         * lib/hard-locale.h: Likewise.
29489         * lib/hash-pjw.c: Likewise.
29490         * lib/hash-pjw.h: Likewise.
29491         * lib/hash-triple.c: Likewise.
29492         * lib/hash.c: Likewise.
29493         * lib/hash.h: Likewise.
29494         * lib/human.c: Likewise.
29495         * lib/human.h: Likewise.
29496         * lib/i-ring.c: Likewise.
29497         * lib/i-ring.h: Likewise.
29498         * lib/idcache.c: Likewise.
29499         * lib/imaxabs.c: Likewise.
29500         * lib/imaxdiv.c: Likewise.
29501         * lib/inet_pton.c: Likewise.
29502         * lib/inet_pton.h: Likewise.
29503         * lib/intprops.h: Likewise.
29504         * lib/inttostr.c: Likewise.
29505         * lib/inttostr.h: Likewise.
29506         * lib/inttypes.in.h: Likewise.
29507         * lib/isapipe.c: Likewise.
29508         * lib/isdir.c: Likewise.
29509         * lib/isnan.c: Likewise.
29510         * lib/isnan.h: Likewise.
29511         * lib/isnanf.c: Likewise.
29512         * lib/isnanf.h: Likewise.
29513         * lib/isnanl-nolibm.h: Likewise.
29514         * lib/isnanl.c: Likewise.
29515         * lib/isnanl.h: Likewise.
29516         * lib/javacomp.c: Likewise.
29517         * lib/javacomp.h: Likewise.
29518         * lib/javaexec.c: Likewise.
29519         * lib/javaexec.h: Likewise.
29520         * lib/javaversion.c: Likewise.
29521         * lib/javaversion.h: Likewise.
29522         * lib/javaversion.java: Likewise.
29523         * lib/lbrkprop.h: Likewise.
29524         * lib/lchmod.h: Likewise.
29525         * lib/lchown.c: Likewise.
29526         * lib/ldexpl.c: Likewise.
29527         * lib/linebreak.c: Likewise.
29528         * lib/linebreak.h: Likewise.
29529         * lib/linebuffer.c: Likewise.
29530         * lib/linebuffer.h: Likewise.
29531         * lib/locale.in.h: Likewise.
29532         * lib/logl.c: Likewise.
29533         * lib/long-options.c: Likewise.
29534         * lib/long-options.h: Likewise.
29535         * lib/lstat.c: Likewise.
29536         * lib/lstat.h: Likewise.
29537         * lib/math.in.h: Likewise.
29538         * lib/mbchar.c: Likewise.
29539         * lib/mbchar.h: Likewise.
29540         * lib/mbfile.h: Likewise.
29541         * lib/mbiter.h: Likewise.
29542         * lib/mbscasecmp.c: Likewise.
29543         * lib/mbscasestr.c: Likewise.
29544         * lib/mbschr.c: Likewise.
29545         * lib/mbscspn.c: Likewise.
29546         * lib/mbslen.c: Likewise.
29547         * lib/mbsncasecmp.c: Likewise.
29548         * lib/mbsnlen.c: Likewise.
29549         * lib/mbspbrk.c: Likewise.
29550         * lib/mbspcasecmp.c: Likewise.
29551         * lib/mbsrchr.c: Likewise.
29552         * lib/mbssep.c: Likewise.
29553         * lib/mbsspn.c: Likewise.
29554         * lib/mbsstr.c: Likewise.
29555         * lib/mbstok_r.c: Likewise.
29556         * lib/mbswidth.c: Likewise.
29557         * lib/mbswidth.h: Likewise.
29558         * lib/mbuiter.h: Likewise.
29559         * lib/memcasecmp.c: Likewise.
29560         * lib/memcasecmp.h: Likewise.
29561         * lib/memchr.c: Likewise.
29562         * lib/memcmp.c: Likewise.
29563         * lib/memcoll.c: Likewise.
29564         * lib/memcoll.h: Likewise.
29565         * lib/memcpy.c: Likewise.
29566         * lib/memrchr.c: Likewise.
29567         * lib/mkancesdirs.c: Likewise.
29568         * lib/mkdir-p.c: Likewise.
29569         * lib/mkdir-p.h: Likewise.
29570         * lib/mkdir.c: Likewise.
29571         * lib/mkdirat.c: Likewise.
29572         * lib/mkdtemp.c: Likewise.
29573         * lib/mkstemp-safer.c: Likewise.
29574         * lib/mkstemp.c: Likewise.
29575         * lib/modechange.c: Likewise.
29576         * lib/modechange.h: Likewise.
29577         * lib/mountlist.c: Likewise.
29578         * lib/mountlist.h: Likewise.
29579         * lib/mpsort.c: Likewise.
29580         * lib/nanosleep.c: Likewise.
29581         * lib/obstack.c: Likewise.
29582         * lib/obstack.h: Likewise.
29583         * lib/open-safer.c: Likewise.
29584         * lib/open.c: Likewise.
29585         * lib/openat-die.c: Likewise.
29586         * lib/openat-priv.h: Likewise.
29587         * lib/openat-proc.c: Likewise.
29588         * lib/openat.c: Likewise.
29589         * lib/openat.h: Likewise.
29590         * lib/pagealign_alloc.c: Likewise.
29591         * lib/pagealign_alloc.h: Likewise.
29592         * lib/physmem.c: Likewise.
29593         * lib/physmem.h: Likewise.
29594         * lib/pipe-safer.c: Likewise.
29595         * lib/pipe.c: Likewise.
29596         * lib/pipe.h: Likewise.
29597         * lib/posixtm.c: Likewise.
29598         * lib/posixtm.h: Likewise.
29599         * lib/posixver.c: Likewise.
29600         * lib/printf-frexp.c: Likewise.
29601         * lib/printf-frexp.h: Likewise.
29602         * lib/printf-frexpl.c: Likewise.
29603         * lib/printf-frexpl.h: Likewise.
29604         * lib/printf.c: Likewise.
29605         * lib/progname.c: Likewise.
29606         * lib/progname.h: Likewise.
29607         * lib/progreloc.c: Likewise.
29608         * lib/putenv.c: Likewise.
29609         * lib/quote.c: Likewise.
29610         * lib/quote.h: Likewise.
29611         * lib/quotearg.c: Likewise.
29612         * lib/quotearg.h: Likewise.
29613         * lib/raise.c: Likewise.
29614         * lib/readline.c: Likewise.
29615         * lib/readline.h: Likewise.
29616         * lib/readlink.c: Likewise.
29617         * lib/readtokens.c: Likewise.
29618         * lib/readtokens.h: Likewise.
29619         * lib/readtokens0.c: Likewise.
29620         * lib/readtokens0.h: Likewise.
29621         * lib/readutmp.c: Likewise.
29622         * lib/readutmp.h: Likewise.
29623         * lib/realloc.c: Likewise.
29624         * lib/relocwrapper.c: Likewise.
29625         * lib/rename-dest-slash.c: Likewise.
29626         * lib/rename.c: Likewise.
29627         * lib/rmdir.c: Likewise.
29628         * lib/rpmatch.c: Likewise.
29629         * lib/safe-read.c: Likewise.
29630         * lib/safe-read.h: Likewise.
29631         * lib/safe-write.c: Likewise.
29632         * lib/safe-write.h: Likewise.
29633         * lib/same-inode.h: Likewise.
29634         * lib/same.c: Likewise.
29635         * lib/same.h: Likewise.
29636         * lib/save-cwd.c: Likewise.
29637         * lib/save-cwd.h: Likewise.
29638         * lib/savedir.c: Likewise.
29639         * lib/savedir.h: Likewise.
29640         * lib/savewd.c: Likewise.
29641         * lib/savewd.h: Likewise.
29642         * lib/search.in.h: Likewise.
29643         * lib/setenv.c: Likewise.
29644         * lib/setenv.h: Likewise.
29645         * lib/settime.c: Likewise.
29646         * lib/sh-quote.c: Likewise.
29647         * lib/sh-quote.h: Likewise.
29648         * lib/sig2str.c: Likewise.
29649         * lib/sig2str.h: Likewise.
29650         * lib/signal.in.h: Likewise.
29651         * lib/signbitd.c: Likewise.
29652         * lib/signbitf.c: Likewise.
29653         * lib/signbitl.c: Likewise.
29654         * lib/sigprocmask.c: Likewise.
29655         * lib/sincosl.c: Likewise.
29656         * lib/sleep.c: Likewise.
29657         * lib/sprintf.c: Likewise.
29658         * lib/sqrtl.c: Likewise.
29659         * lib/stat-time.h: Likewise.
29660         * lib/stdio--.h: Likewise.
29661         * lib/stdio-safer.h: Likewise.
29662         * lib/stdlib--.h: Likewise.
29663         * lib/stdlib-safer.h: Likewise.
29664         * lib/stdlib.in.h: Likewise.
29665         * lib/stpcpy.c: Likewise.
29666         * lib/stpncpy.c: Likewise.
29667         * lib/strchrnul.c: Likewise.
29668         * lib/strcspn.c: Likewise.
29669         * lib/strerror.c: Likewise.
29670         * lib/strftime.c: Likewise.
29671         * lib/strftime.h: Likewise.
29672         * lib/striconveh.c: Likewise.
29673         * lib/striconveh.h: Likewise.
29674         * lib/striconveha.c: Likewise.
29675         * lib/striconveha.h: Likewise.
29676         * lib/stripslash.c: Likewise.
29677         * lib/strnlen1.c: Likewise.
29678         * lib/strnlen1.h: Likewise.
29679         * lib/strtod.c: Likewise.
29680         * lib/strtoimax.c: Likewise.
29681         * lib/strtok_r.c: Likewise.
29682         * lib/strtol.c: Likewise.
29683         * lib/strtoll.c: Likewise.
29684         * lib/strtoul.c: Likewise.
29685         * lib/strtoull.c: Likewise.
29686         * lib/sysexits.in.h: Likewise.
29687         * lib/tempname.c: Likewise.
29688         * lib/tempname.h: Likewise.
29689         * lib/timespec.h: Likewise.
29690         * lib/tls.c: Likewise.
29691         * lib/tls.h: Likewise.
29692         * lib/tmpdir.c: Likewise.
29693         * lib/tmpdir.h: Likewise.
29694         * lib/tmpfile-safer.c: Likewise.
29695         * lib/tmpfile.c: Likewise.
29696         * lib/trigl.c: Likewise.
29697         * lib/trigl.h: Likewise.
29698         * lib/trim.c: Likewise.
29699         * lib/trim.h: Likewise.
29700         * lib/trunc.c: Likewise.
29701         * lib/truncf.c: Likewise.
29702         * lib/truncl.c: Likewise.
29703         * lib/tsearch.c: Likewise.
29704         * lib/unicodeio.c: Likewise.
29705         * lib/unicodeio.h: Likewise.
29706         * lib/unistd--.h: Likewise.
29707         * lib/unistd-safer.h: Likewise.
29708         * lib/unistdio/ulc-fprintf.c: Likewise.
29709         * lib/unistdio/ulc-vfprintf.c: Likewise.
29710         * lib/unlinkdir.c: Likewise.
29711         * lib/unlinkdir.h: Likewise.
29712         * lib/unlocked-io.h: Likewise.
29713         * lib/unsetenv.c: Likewise.
29714         * lib/userspec.c: Likewise.
29715         * lib/utime.c: Likewise.
29716         * lib/utimecmp.c: Likewise.
29717         * lib/utimecmp.h: Likewise.
29718         * lib/utimens.c: Likewise.
29719         * lib/verify.h: Likewise.
29720         * lib/verror.c: Likewise.
29721         * lib/verror.h: Likewise.
29722         * lib/version-etc-fsf.c: Likewise.
29723         * lib/version-etc.c: Likewise.
29724         * lib/version-etc.h: Likewise.
29725         * lib/vfprintf.c: Likewise.
29726         * lib/vprintf.c: Likewise.
29727         * lib/vsprintf.c: Likewise.
29728         * lib/w32spawn.h: Likewise.
29729         * lib/wait-process.c: Likewise.
29730         * lib/wait-process.h: Likewise.
29731         * lib/wcwidth.c: Likewise.
29732         * lib/write-any-file.c: Likewise.
29733         * lib/xalloc-die.c: Likewise.
29734         * lib/xalloc.h: Likewise.
29735         * lib/xasprintf.c: Likewise.
29736         * lib/xgetcwd.c: Likewise.
29737         * lib/xgetcwd.h: Likewise.
29738         * lib/xgetdomainname.c: Likewise.
29739         * lib/xgetdomainname.h: Likewise.
29740         * lib/xgethostname.c: Likewise.
29741         * lib/xmalloc.c: Likewise.
29742         * lib/xmalloca.c: Likewise.
29743         * lib/xmalloca.h: Likewise.
29744         * lib/xmemcoll.c: Likewise.
29745         * lib/xnanosleep.c: Likewise.
29746         * lib/xreadlink.c: Likewise.
29747         * lib/xreadlink.h: Likewise.
29748         * lib/xsetenv.c: Likewise.
29749         * lib/xsetenv.h: Likewise.
29750         * lib/xstriconv.c: Likewise.
29751         * lib/xstriconv.h: Likewise.
29752         * lib/xstrndup.c: Likewise.
29753         * lib/xstrndup.h: Likewise.
29754         * lib/xstrtod.c: Likewise.
29755         * lib/xstrtod.h: Likewise.
29756         * lib/xstrtol-error.c: Likewise.
29757         * lib/xstrtol.c: Likewise.
29758         * lib/xstrtol.h: Likewise.
29759         * lib/xtime.h: Likewise.
29760         * lib/xvasprintf.c: Likewise.
29761         * lib/xvasprintf.h: Likewise.
29762         * lib/yesno.c: Likewise.
29763         * lib/yesno.h: Likewise.
29764         * posix-modules: Likewise.
29765         * tests/test-alloca-opt.c: Likewise.
29766         * tests/test-arcfour.c: Likewise.
29767         * tests/test-arctwo.c: Likewise.
29768         * tests/test-argmatch.c: Likewise.
29769         * tests/test-argp-2.sh: Likewise.
29770         * tests/test-argp.c: Likewise.
29771         * tests/test-arpa_inet.c: Likewise.
29772         * tests/test-array_list.c: Likewise.
29773         * tests/test-array_oset.c: Likewise.
29774         * tests/test-atexit.c: Likewise.
29775         * tests/test-avltree_list.c: Likewise.
29776         * tests/test-avltree_oset.c: Likewise.
29777         * tests/test-avltreehash_list.c: Likewise.
29778         * tests/test-base64.c: Likewise.
29779         * tests/test-binary-io.c: Likewise.
29780         * tests/test-byteswap.c: Likewise.
29781         * tests/test-c-ctype.c: Likewise.
29782         * tests/test-c-strcasecmp.c: Likewise.
29783         * tests/test-c-strcasestr.c: Likewise.
29784         * tests/test-c-strncasecmp.c: Likewise.
29785         * tests/test-c-strstr.c: Likewise.
29786         * tests/test-canonicalize-lgpl.c: Likewise.
29787         * tests/test-canonicalize.c: Likewise.
29788         * tests/test-carray_list.c: Likewise.
29789         * tests/test-ceilf.c: Likewise.
29790         * tests/test-ceill.c: Likewise.
29791         * tests/test-count-one-bits.c: Likewise.
29792         * tests/test-crc.c: Likewise.
29793         * tests/test-dirname.c: Likewise.
29794         * tests/test-fbufmode.c: Likewise.
29795         * tests/test-fcntl.c: Likewise.
29796         * tests/test-fflush.c: Likewise.
29797         * tests/test-floorf.c: Likewise.
29798         * tests/test-floorl.c: Likewise.
29799         * tests/test-fopen.c: Likewise.
29800         * tests/test-fprintf-posix.c: Likewise.
29801         * tests/test-fprintf-posix.h: Likewise.
29802         * tests/test-fpurge.c: Likewise.
29803         * tests/test-freadable.c: Likewise.
29804         * tests/test-freadahead.c: Likewise.
29805         * tests/test-freading.c: Likewise.
29806         * tests/test-freopen.c: Likewise.
29807         * tests/test-frexp.c: Likewise.
29808         * tests/test-frexpl.c: Likewise.
29809         * tests/test-fseek.c: Likewise.
29810         * tests/test-fseeko.c: Likewise.
29811         * tests/test-fseterr.c: Likewise.
29812         * tests/test-fstrcmp.c: Likewise.
29813         * tests/test-ftell.c: Likewise.
29814         * tests/test-ftello.c: Likewise.
29815         * tests/test-fwritable.c: Likewise.
29816         * tests/test-fwriting.c: Likewise.
29817         * tests/test-getaddrinfo.c: Likewise.
29818         * tests/test-getpass.c: Likewise.
29819         * tests/test-gettimeofday.c: Likewise.
29820         * tests/test-hmac-md5.c: Likewise.
29821         * tests/test-hmac-sha1.c: Likewise.
29822         * tests/test-iconv.c: Likewise.
29823         * tests/test-iconvme.c: Likewise.
29824         * tests/test-inttypes.c: Likewise.
29825         * tests/test-isnan.c: Likewise.
29826         * tests/test-isnanf.c: Likewise.
29827         * tests/test-isnanl-nolibm.c: Likewise.
29828         * tests/test-isnanl.c: Likewise.
29829         * tests/test-isnanl.h: Likewise.
29830         * tests/test-ldexpl.c: Likewise.
29831         * tests/test-linked_list.c: Likewise.
29832         * tests/test-linkedhash_list.c: Likewise.
29833         * tests/test-locale.c: Likewise.
29834         * tests/test-localename.c: Likewise.
29835         * tests/test-lock.c: Likewise.
29836         * tests/test-lseek.c: Likewise.
29837         * tests/test-malloca.c: Likewise.
29838         * tests/test-math.c: Likewise.
29839         * tests/test-mbscasecmp.c: Likewise.
29840         * tests/test-mbscasestr1.c: Likewise.
29841         * tests/test-mbscasestr2.c: Likewise.
29842         * tests/test-mbscasestr3.c: Likewise.
29843         * tests/test-mbscasestr4.c: Likewise.
29844         * tests/test-mbschr.c: Likewise.
29845         * tests/test-mbscspn.c: Likewise.
29846         * tests/test-mbsncasecmp.c: Likewise.
29847         * tests/test-mbspbrk.c: Likewise.
29848         * tests/test-mbspcasecmp.c: Likewise.
29849         * tests/test-mbsrchr.c: Likewise.
29850         * tests/test-mbsspn.c: Likewise.
29851         * tests/test-mbsstr1.c: Likewise.
29852         * tests/test-mbsstr2.c: Likewise.
29853         * tests/test-mbsstr3.c: Likewise.
29854         * tests/test-md5.c: Likewise.
29855         * tests/test-memmem.c: Likewise.
29856         * tests/test-netinet_in.c: Likewise.
29857         * tests/test-open.c: Likewise.
29858         * tests/test-printf-frexp.c: Likewise.
29859         * tests/test-printf-frexpl.c: Likewise.
29860         * tests/test-printf-posix.c: Likewise.
29861         * tests/test-printf-posix.h: Likewise.
29862         * tests/test-rbtree_list.c: Likewise.
29863         * tests/test-rbtree_oset.c: Likewise.
29864         * tests/test-rbtreehash_list.c: Likewise.
29865         * tests/test-read-file.c: Likewise.
29866         * tests/test-rijndael.c: Likewise.
29867         * tests/test-search.c: Likewise.
29868         * tests/test-signbit.c: Likewise.
29869         * tests/test-sleep.c: Likewise.
29870         * tests/test-snprintf-posix.c: Likewise.
29871         * tests/test-snprintf-posix.h: Likewise.
29872         * tests/test-snprintf.c: Likewise.
29873         * tests/test-sprintf-posix.c: Likewise.
29874         * tests/test-sprintf-posix.h: Likewise.
29875         * tests/test-stat-time.c: Likewise.
29876         * tests/test-stdbool.c: Likewise.
29877         * tests/test-stdint.c: Likewise.
29878         * tests/test-stdio.c: Likewise.
29879         * tests/test-stdlib.c: Likewise.
29880         * tests/test-stpncpy.c: Likewise.
29881         * tests/test-strcasestr.c: Likewise.
29882         * tests/test-striconv.c: Likewise.
29883         * tests/test-striconveh.c: Likewise.
29884         * tests/test-striconveha.c: Likewise.
29885         * tests/test-string.c: Likewise.
29886         * tests/test-sys_select.c: Likewise.
29887         * tests/test-sys_socket.c: Likewise.
29888         * tests/test-sys_stat.c: Likewise.
29889         * tests/test-sys_time.c: Likewise.
29890         * tests/test-sysexits.c: Likewise.
29891         * tests/test-time.c: Likewise.
29892         * tests/test-tls.c: Likewise.
29893         * tests/test-trunc.c: Likewise.
29894         * tests/test-truncf.c: Likewise.
29895         * tests/test-truncl.c: Likewise.
29896         * tests/test-unistd.c: Likewise.
29897         * tests/test-vasnprintf-posix.c: Likewise.
29898         * tests/test-vasnprintf-posix2.c: Likewise.
29899         * tests/test-vasnprintf.c: Likewise.
29900         * tests/test-vasprintf-posix.c: Likewise.
29901         * tests/test-vasprintf.c: Likewise.
29902         * tests/test-verify.c: Likewise.
29903         * tests/test-vfprintf-posix.c: Likewise.
29904         * tests/test-vprintf-posix.c: Likewise.
29905         * tests/test-vsnprintf-posix.c: Likewise.
29906         * tests/test-vsnprintf.c: Likewise.
29907         * tests/test-vsprintf-posix.c: Likewise.
29908         * tests/test-wchar.c: Likewise.
29909         * tests/test-wctype.c: Likewise.
29910         * tests/test-wcwidth.c: Likewise.
29911         * tests/test-xstrtol.c: Likewise.
29912         * tests/test-xvasprintf.c: Likewise.
29913         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29914         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29915         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29916         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29917         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29918         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29919         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29920         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29921         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29922         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29923         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29924         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29925         * tests/uniname/test-uninames.c: Likewise.
29926         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29927         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29928         * tests/unistdio/test-u16-printf1.h: Likewise.
29929         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29930         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29931         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29932         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29933         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29934         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29935         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29936         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29937         * tests/unistdio/test-u32-printf1.h: Likewise.
29938         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29939         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29940         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29941         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29942         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29943         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29944         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29945         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29946         * tests/unistdio/test-u8-printf1.h: Likewise.
29947         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29948         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29949         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29950         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29951         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29952         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29953         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29954         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29955         * tests/unistdio/test-ulc-printf1.h: Likewise.
29956         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29957         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29958         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29959         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29960         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29961         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29962         * tests/uniwidth/test-u16-strwidth.c: Likewise.
29963         * tests/uniwidth/test-u16-width.c: Likewise.
29964         * tests/uniwidth/test-u32-strwidth.c: Likewise.
29965         * tests/uniwidth/test-u32-width.c: Likewise.
29966         * tests/uniwidth/test-u8-strwidth.c: Likewise.
29967         * tests/uniwidth/test-u8-width.c: Likewise.
29968         * tests/uniwidth/test-uc_width.c: Likewise.
29969         * config/srclist-update: Likewise.
29970         (fixlicense): Update to GPLv3+.
29971
29972         Change copyright notice from LGPLv2.1+ to LGPLv3+.
29973         * tests/test-tsearch.c: Change copyright notice.
29974
29975         Change copyright notice from LGPLv2.0+ to LGPLv3+.
29976         * lib/c-strcaseeq.h: Change copyright notice.
29977         * lib/streq.h: Likewise.
29978         * lib/uniconv.h: Likewise.
29979         * lib/uniconv/u-conv-from-enc.h: Likewise.
29980         * lib/uniconv/u-conv-to-enc.h: Likewise.
29981         * lib/uniconv/u-strconv-from-enc.h: Likewise.
29982         * lib/uniconv/u-strconv-to-enc.h: Likewise.
29983         * lib/uniconv/u16-conv-from-enc.c: Likewise.
29984         * lib/uniconv/u16-conv-to-enc.c: Likewise.
29985         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29986         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29987         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29988         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29989         * lib/uniconv/u32-conv-from-enc.c: Likewise.
29990         * lib/uniconv/u32-conv-to-enc.c: Likewise.
29991         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29992         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29993         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29994         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29995         * lib/uniconv/u8-conv-from-enc.c: Likewise.
29996         * lib/uniconv/u8-conv-to-enc.c: Likewise.
29997         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29998         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29999         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
30000         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
30001         * lib/uniname.h: Likewise.
30002         * lib/uniname/uniname.c: Likewise.
30003         * lib/unistdio.h: Likewise.
30004         * lib/unistdio/u-asnprintf.h: Likewise.
30005         * lib/unistdio/u-asprintf.h: Likewise.
30006         * lib/unistdio/u-printf-args.c: Likewise.
30007         * lib/unistdio/u-printf-args.h: Likewise.
30008         * lib/unistdio/u-printf-parse.h: Likewise.
30009         * lib/unistdio/u-snprintf.h: Likewise.
30010         * lib/unistdio/u-sprintf.h: Likewise.
30011         * lib/unistdio/u-vasprintf.h: Likewise.
30012         * lib/unistdio/u-vsnprintf.h: Likewise.
30013         * lib/unistdio/u-vsprintf.h: Likewise.
30014         * lib/unistdio/u16-asnprintf.c: Likewise.
30015         * lib/unistdio/u16-asprintf.c: Likewise.
30016         * lib/unistdio/u16-printf-parse.c: Likewise.
30017         * lib/unistdio/u16-snprintf.c: Likewise.
30018         * lib/unistdio/u16-sprintf.c: Likewise.
30019         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
30020         * lib/unistdio/u16-u16-asprintf.c: Likewise.
30021         * lib/unistdio/u16-u16-snprintf.c: Likewise.
30022         * lib/unistdio/u16-u16-sprintf.c: Likewise.
30023         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
30024         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
30025         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
30026         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
30027         * lib/unistdio/u16-vasnprintf.c: Likewise.
30028         * lib/unistdio/u16-vasprintf.c: Likewise.
30029         * lib/unistdio/u16-vsnprintf.c: Likewise.
30030         * lib/unistdio/u16-vsprintf.c: Likewise.
30031         * lib/unistdio/u32-asnprintf.c: Likewise.
30032         * lib/unistdio/u32-asprintf.c: Likewise.
30033         * lib/unistdio/u32-printf-parse.c: Likewise.
30034         * lib/unistdio/u32-snprintf.c: Likewise.
30035         * lib/unistdio/u32-sprintf.c: Likewise.
30036         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
30037         * lib/unistdio/u32-u32-asprintf.c: Likewise.
30038         * lib/unistdio/u32-u32-snprintf.c: Likewise.
30039         * lib/unistdio/u32-u32-sprintf.c: Likewise.
30040         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
30041         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
30042         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
30043         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
30044         * lib/unistdio/u32-vasnprintf.c: Likewise.
30045         * lib/unistdio/u32-vasprintf.c: Likewise.
30046         * lib/unistdio/u32-vsnprintf.c: Likewise.
30047         * lib/unistdio/u32-vsprintf.c: Likewise.
30048         * lib/unistdio/u8-asnprintf.c: Likewise.
30049         * lib/unistdio/u8-asprintf.c: Likewise.
30050         * lib/unistdio/u8-printf-parse.c: Likewise.
30051         * lib/unistdio/u8-snprintf.c: Likewise.
30052         * lib/unistdio/u8-sprintf.c: Likewise.
30053         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
30054         * lib/unistdio/u8-u8-asprintf.c: Likewise.
30055         * lib/unistdio/u8-u8-snprintf.c: Likewise.
30056         * lib/unistdio/u8-u8-sprintf.c: Likewise.
30057         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
30058         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
30059         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
30060         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
30061         * lib/unistdio/u8-vasnprintf.c: Likewise.
30062         * lib/unistdio/u8-vasprintf.c: Likewise.
30063         * lib/unistdio/u8-vsnprintf.c: Likewise.
30064         * lib/unistdio/u8-vsprintf.c: Likewise.
30065         * lib/unistdio/ulc-asnprintf.c: Likewise.
30066         * lib/unistdio/ulc-asprintf.c: Likewise.
30067         * lib/unistdio/ulc-printf-parse.c: Likewise.
30068         * lib/unistdio/ulc-snprintf.c: Likewise.
30069         * lib/unistdio/ulc-sprintf.c: Likewise.
30070         * lib/unistdio/ulc-vasnprintf.c: Likewise.
30071         * lib/unistdio/ulc-vasprintf.c: Likewise.
30072         * lib/unistdio/ulc-vsnprintf.c: Likewise.
30073         * lib/unistdio/ulc-vsprintf.c: Likewise.
30074         * lib/unistr.h: Likewise.
30075         * lib/unistr/u-cpy-alloc.h: Likewise.
30076         * lib/unistr/u-cpy.h: Likewise.
30077         * lib/unistr/u-endswith.h: Likewise.
30078         * lib/unistr/u-move.h: Likewise.
30079         * lib/unistr/u-set.h: Likewise.
30080         * lib/unistr/u-startswith.h: Likewise.
30081         * lib/unistr/u-stpcpy.h: Likewise.
30082         * lib/unistr/u-stpncpy.h: Likewise.
30083         * lib/unistr/u-strcat.h: Likewise.
30084         * lib/unistr/u-strcpy.h: Likewise.
30085         * lib/unistr/u-strcspn.h: Likewise.
30086         * lib/unistr/u-strdup.h: Likewise.
30087         * lib/unistr/u-strlen.h: Likewise.
30088         * lib/unistr/u-strncat.h: Likewise.
30089         * lib/unistr/u-strncpy.h: Likewise.
30090         * lib/unistr/u-strnlen.h: Likewise.
30091         * lib/unistr/u-strpbrk.h: Likewise.
30092         * lib/unistr/u-strspn.h: Likewise.
30093         * lib/unistr/u-strstr.h: Likewise.
30094         * lib/unistr/u-strtok.h: Likewise.
30095         * lib/unistr/u16-check.c: Likewise.
30096         * lib/unistr/u16-chr.c: Likewise.
30097         * lib/unistr/u16-cmp.c: Likewise.
30098         * lib/unistr/u16-cpy-alloc.c: Likewise.
30099         * lib/unistr/u16-cpy.c: Likewise.
30100         * lib/unistr/u16-endswith.c: Likewise.
30101         * lib/unistr/u16-mblen.c: Likewise.
30102         * lib/unistr/u16-mbsnlen.c: Likewise.
30103         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30104         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30105         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30106         * lib/unistr/u16-mbtouc.c: Likewise.
30107         * lib/unistr/u16-mbtoucr.c: Likewise.
30108         * lib/unistr/u16-move.c: Likewise.
30109         * lib/unistr/u16-next.c: Likewise.
30110         * lib/unistr/u16-prev.c: Likewise.
30111         * lib/unistr/u16-set.c: Likewise.
30112         * lib/unistr/u16-startswith.c: Likewise.
30113         * lib/unistr/u16-stpcpy.c: Likewise.
30114         * lib/unistr/u16-stpncpy.c: Likewise.
30115         * lib/unistr/u16-strcat.c: Likewise.
30116         * lib/unistr/u16-strchr.c: Likewise.
30117         * lib/unistr/u16-strcmp.c: Likewise.
30118         * lib/unistr/u16-strcpy.c: Likewise.
30119         * lib/unistr/u16-strcspn.c: Likewise.
30120         * lib/unistr/u16-strdup.c: Likewise.
30121         * lib/unistr/u16-strlen.c: Likewise.
30122         * lib/unistr/u16-strmblen.c: Likewise.
30123         * lib/unistr/u16-strmbtouc.c: Likewise.
30124         * lib/unistr/u16-strncat.c: Likewise.
30125         * lib/unistr/u16-strncmp.c: Likewise.
30126         * lib/unistr/u16-strncpy.c: Likewise.
30127         * lib/unistr/u16-strnlen.c: Likewise.
30128         * lib/unistr/u16-strpbrk.c: Likewise.
30129         * lib/unistr/u16-strrchr.c: Likewise.
30130         * lib/unistr/u16-strspn.c: Likewise.
30131         * lib/unistr/u16-strstr.c: Likewise.
30132         * lib/unistr/u16-strtok.c: Likewise.
30133         * lib/unistr/u16-to-u32.c: Likewise.
30134         * lib/unistr/u16-to-u8.c: Likewise.
30135         * lib/unistr/u16-uctomb-aux.c: Likewise.
30136         * lib/unistr/u16-uctomb.c: Likewise.
30137         * lib/unistr/u32-check.c: Likewise.
30138         * lib/unistr/u32-chr.c: Likewise.
30139         * lib/unistr/u32-cmp.c: Likewise.
30140         * lib/unistr/u32-cpy-alloc.c: Likewise.
30141         * lib/unistr/u32-cpy.c: Likewise.
30142         * lib/unistr/u32-endswith.c: Likewise.
30143         * lib/unistr/u32-mblen.c: Likewise.
30144         * lib/unistr/u32-mbsnlen.c: Likewise.
30145         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30146         * lib/unistr/u32-mbtouc.c: Likewise.
30147         * lib/unistr/u32-mbtoucr.c: Likewise.
30148         * lib/unistr/u32-move.c: Likewise.
30149         * lib/unistr/u32-next.c: Likewise.
30150         * lib/unistr/u32-prev.c: Likewise.
30151         * lib/unistr/u32-set.c: Likewise.
30152         * lib/unistr/u32-startswith.c: Likewise.
30153         * lib/unistr/u32-stpcpy.c: Likewise.
30154         * lib/unistr/u32-stpncpy.c: Likewise.
30155         * lib/unistr/u32-strcat.c: Likewise.
30156         * lib/unistr/u32-strchr.c: Likewise.
30157         * lib/unistr/u32-strcmp.c: Likewise.
30158         * lib/unistr/u32-strcpy.c: Likewise.
30159         * lib/unistr/u32-strcspn.c: Likewise.
30160         * lib/unistr/u32-strdup.c: Likewise.
30161         * lib/unistr/u32-strlen.c: Likewise.
30162         * lib/unistr/u32-strmblen.c: Likewise.
30163         * lib/unistr/u32-strmbtouc.c: Likewise.
30164         * lib/unistr/u32-strncat.c: Likewise.
30165         * lib/unistr/u32-strncmp.c: Likewise.
30166         * lib/unistr/u32-strncpy.c: Likewise.
30167         * lib/unistr/u32-strnlen.c: Likewise.
30168         * lib/unistr/u32-strpbrk.c: Likewise.
30169         * lib/unistr/u32-strrchr.c: Likewise.
30170         * lib/unistr/u32-strspn.c: Likewise.
30171         * lib/unistr/u32-strstr.c: Likewise.
30172         * lib/unistr/u32-strtok.c: Likewise.
30173         * lib/unistr/u32-to-u16.c: Likewise.
30174         * lib/unistr/u32-to-u8.c: Likewise.
30175         * lib/unistr/u32-uctomb.c: Likewise.
30176         * lib/unistr/u8-check.c: Likewise.
30177         * lib/unistr/u8-chr.c: Likewise.
30178         * lib/unistr/u8-cmp.c: Likewise.
30179         * lib/unistr/u8-cpy-alloc.c: Likewise.
30180         * lib/unistr/u8-cpy.c: Likewise.
30181         * lib/unistr/u8-endswith.c: Likewise.
30182         * lib/unistr/u8-mblen.c: Likewise.
30183         * lib/unistr/u8-mbsnlen.c: Likewise.
30184         * lib/unistr/u8-mbtouc-aux.c: Likewise.
30185         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30186         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30187         * lib/unistr/u8-mbtouc.c: Likewise.
30188         * lib/unistr/u8-mbtoucr.c: Likewise.
30189         * lib/unistr/u8-move.c: Likewise.
30190         * lib/unistr/u8-next.c: Likewise.
30191         * lib/unistr/u8-prev.c: Likewise.
30192         * lib/unistr/u8-set.c: Likewise.
30193         * lib/unistr/u8-startswith.c: Likewise.
30194         * lib/unistr/u8-stpcpy.c: Likewise.
30195         * lib/unistr/u8-stpncpy.c: Likewise.
30196         * lib/unistr/u8-strcat.c: Likewise.
30197         * lib/unistr/u8-strchr.c: Likewise.
30198         * lib/unistr/u8-strcmp.c: Likewise.
30199         * lib/unistr/u8-strcpy.c: Likewise.
30200         * lib/unistr/u8-strcspn.c: Likewise.
30201         * lib/unistr/u8-strdup.c: Likewise.
30202         * lib/unistr/u8-strlen.c: Likewise.
30203         * lib/unistr/u8-strmblen.c: Likewise.
30204         * lib/unistr/u8-strmbtouc.c: Likewise.
30205         * lib/unistr/u8-strncat.c: Likewise.
30206         * lib/unistr/u8-strncmp.c: Likewise.
30207         * lib/unistr/u8-strncpy.c: Likewise.
30208         * lib/unistr/u8-strnlen.c: Likewise.
30209         * lib/unistr/u8-strpbrk.c: Likewise.
30210         * lib/unistr/u8-strrchr.c: Likewise.
30211         * lib/unistr/u8-strspn.c: Likewise.
30212         * lib/unistr/u8-strstr.c: Likewise.
30213         * lib/unistr/u8-strtok.c: Likewise.
30214         * lib/unistr/u8-to-u16.c: Likewise.
30215         * lib/unistr/u8-to-u32.c: Likewise.
30216         * lib/unistr/u8-uctomb-aux.c: Likewise.
30217         * lib/unistr/u8-uctomb.c: Likewise.
30218         * lib/unitypes.h: Likewise.
30219         * lib/uniwidth.h: Likewise.
30220         * lib/uniwidth/cjk.h: Likewise.
30221         * lib/uniwidth/u16-strwidth.c: Likewise.
30222         * lib/uniwidth/u16-width.c: Likewise.
30223         * lib/uniwidth/u32-strwidth.c: Likewise.
30224         * lib/uniwidth/u32-width.c: Likewise.
30225         * lib/uniwidth/u8-strwidth.c: Likewise.
30226         * lib/uniwidth/u8-width.c: Likewise.
30227         * lib/uniwidth/width.c: Likewise.
30228
30229 2007-10-07  Bruno Haible  <bruno@clisp.org>
30230
30231         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
30232         The file is still under LGPL (see modules/inttypes).
30233
30234 2007-10-06  Bruno Haible  <bruno@clisp.org>
30235
30236         * modules/trunc (Dependencies): Add 'extensions'.
30237         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
30238         Reported by Ben Pfaff <blp@gnu.org>.
30239
30240 2007-10-06  Bruno Haible  <bruno@clisp.org>
30241
30242         * modules/freopen-tests: New file.
30243         * tests/test-freopen.c: New file.
30244
30245         * modules/fopen-tests: New file.
30246         * tests/test-fopen.c: New file.
30247
30248         * modules/fopen: New file.
30249         * lib/fopen.c: New file.
30250         * m4/fopen.m4: New file.
30251         * modules/freopen: New file.
30252         * lib/freopen.c: New file.
30253         * m4/freopen.m4: New file.
30254         * lib/stdio.in.h (fopen, freopen): New declarations.
30255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
30256         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30257         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
30258         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
30259         * doc/functions/fopen.texi: Mention the 'fopen' module.
30260         * doc/functions/freopen.texi: Mention the 'freopen' module.
30261
30262 2007-10-06  Bruno Haible  <bruno@clisp.org>
30263
30264         * modules/open-tests: New file.
30265         * tests/test-open.c: New file.
30266
30267         * modules/open: New file.
30268         * lib/open.c: New file.
30269         * m4/open.m4: New file.
30270         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
30271         lib/open.c does.
30272         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
30273         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
30274         macros.
30275         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
30276         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
30277         REPLACE_OPEN.
30278         * doc/functions/open.texi: Mention the 'open' module.
30279
30280 2007-10-04  Bruno Haible  <bruno@clisp.org>
30281
30282         * modules/ceill-tests: New file.
30283         * tests/test-ceill.c: New file.
30284
30285         * modules/ceill: New file.
30286         * lib/ceill.c: Replace entire file.
30287         * m4/ceill.m4: New file.
30288         * lib/math.in.h (ceill): Replace declaration.
30289         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
30290         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
30291         * doc/functions/ceill.texi: Mention the 'ceill' module.
30292         * modules/mathl (Files): Remove lib/ceill.c.
30293         (Depends-on): Add ceill.
30294
30295 2007-10-04  Bruno Haible  <bruno@clisp.org>
30296
30297         * modules/ceilf-tests: New file.
30298         * tests/test-ceilf.c: New file.
30299
30300         * modules/ceilf: New file.
30301         * lib/ceil.c: New file.
30302         * lib/ceilf.c: New file.
30303         * m4/ceilf.m4: New file.
30304         * lib/math.in.h (ceilf): New declaration.
30305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
30306         HAVE_DECL_CEILF.
30307         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
30308         HAVE_DECL_CEILF.
30309         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
30310
30311 2007-10-04  Bruno Haible  <bruno@clisp.org>
30312
30313         * modules/floorl-tests: New file.
30314         * tests/test-floorl.c: New file.
30315
30316         * modules/floorl: New file.
30317         * lib/floorl.c: Replace entire file.
30318         * m4/floorl.m4: New file.
30319         * lib/math.in.h (floorl): Replace declaration.
30320         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
30321         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
30322         * doc/functions/floorl.texi: Mention the 'floorl' module.
30323         * modules/mathl (Files): Remove lib/floorl.c.
30324         (Depends-on): Add floorl.
30325
30326 2007-10-04  Bruno Haible  <bruno@clisp.org>
30327
30328         * modules/floorf-tests: New file.
30329         * tests/test-floorf.c: New file.
30330
30331         * modules/floorf: New file.
30332         * lib/floor.c: New file.
30333         * lib/floorf.c: New file.
30334         * m4/floorf.m4: New file.
30335         * lib/math.in.h (floorf): New declaration.
30336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
30337         HAVE_DECL_FLOORF.
30338         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
30339         HAVE_DECL_FLOORF.
30340         * doc/functions/floorf.texi: Mention the 'floorf' module.
30341
30342 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
30343             Bruno Haible  <bruno@clisp.org>
30344
30345         Advertise for the Git server instead of the CVS server.
30346         * doc/gnulib-intro.texi (Steady Development): Mention the Git
30347         repository instead of the CVS one.
30348         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
30349         about all VCS systems generically.
30350         * doc/gnulib.texi (Introduction): Capitalize `Git'.
30351
30352 2007-10-04  Bruno Haible  <bruno@clisp.org>
30353
30354         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
30355         means.
30356         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
30357
30358 2007-10-04  Bruno Haible  <bruno@clisp.org>
30359
30360         * modules/truncl-tests: New file.
30361         * tests/test-truncl.c: New file.
30362
30363         * modules/truncl: New file.
30364         * lib/truncl.c: New file.
30365         * m4/truncl.m4: New file.
30366         * lib/math.in.h (truncl): New declaration.
30367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
30368         HAVE_DECL_TRUNCL.
30369         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
30370         HAVE_DECL_TRUNCL.
30371         * doc/functions/truncl.texi: Mention the 'truncl' module.
30372
30373 2007-10-04  Bruno Haible  <bruno@clisp.org>
30374
30375         * modules/truncf-tests: New file.
30376         * tests/test-truncf.c: New file.
30377
30378         * modules/truncf: New file.
30379         * lib/trunc.c: Make paramerizable through USE_* macros.
30380         * lib/truncf.c: New file.
30381         * m4/truncf.m4: New file.
30382         * lib/math.in.h (truncf): New declaration.
30383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
30384         HAVE_DECL_TRUNCF.
30385         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
30386         HAVE_DECL_TRUNCF.
30387         * doc/functions/truncf.texi: Mention the 'truncf' module.
30388
30389 2007-10-03  Bruno Haible  <bruno@clisp.org>
30390
30391         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
30392         augmentation also for tests modules.
30393         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
30394         * modules/atexit-tests (Makefile.am): Likewise.
30395         * modules/binary-io-tests (Makefile.am): Likewise.
30396         * modules/c-strcase-tests (Makefile.am): Likewise.
30397         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
30398         * modules/canonicalize-tests (Makefile.am): Likewise.
30399         * modules/closein-tests (Makefile.am): Likewise.
30400         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30401         * modules/freadahead-tests (Makefile.am): Likewise.
30402         * modules/fseek-tests (Makefile.am): Likewise.
30403         * modules/fseeko-tests (Makefile.am): Likewise.
30404         * modules/ftell-tests (Makefile.am): Likewise.
30405         * modules/ftello-tests (Makefile.am): Likewise.
30406         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
30407         * modules/isnanl-tests (Makefile.am): Likewise.
30408         * modules/lseek-tests (Makefile.am): Likewise.
30409         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30410         * modules/mbscasestr-tests (Makefile.am): Likewise.
30411         * modules/mbschr-tests (Makefile.am): Likewise.
30412         * modules/mbscspn-tests (Makefile.am): Likewise.
30413         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30414         * modules/mbspbrk-tests (Makefile.am): Likewise.
30415         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30416         * modules/mbsrchr-tests (Makefile.am): Likewise.
30417         * modules/mbsspn-tests (Makefile.am): Likewise.
30418         * modules/mbsstr-tests (Makefile.am): Likewise.
30419         * modules/printf-posix-tests (Makefile.am): Likewise.
30420         * modules/snprintf-posix-tests (Makefile.am): Likewise.
30421         * modules/sprintf-posix-tests (Makefile.am): Likewise.
30422         * modules/tsearch-tests (Makefile.am): Likewise.
30423         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30424         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30425         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30426         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30427         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30428         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30429         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30430         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30431         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
30432         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
30433         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30434         * modules/xstrtol-tests (Makefile.am): Likewise.
30435         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30436         * modules/yesno-tests (Makefile.am): Likewise.
30437
30438 2007-10-03  Bruno Haible  <bruno@clisp.org>
30439
30440         * modules/trunc-tests: New file.
30441         * tests/test-trunc.c: New file.
30442
30443         * modules/trunc: New file.
30444         * lib/trunc.c: New file.
30445         * m4/trunc.m4: New file.
30446         * lib/math.in.h (trunc): New declaration.
30447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30448         HAVE_DECL_TRUNC.
30449         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30450         HAVE_DECL_TRUNC.
30451         * doc/functions/trunc.texi: Mention the 'trunc' module.
30452
30453 2007-10-03  Bruno Haible  <bruno@clisp.org>
30454
30455         * tests/test-fpending.c: New file, mostly copied
30456         from coreutils/lib/t-fpending.c.
30457         * modules/fpending-tests: New file.
30458
30459 2007-10-03  Bruno Haible  <bruno@clisp.org>
30460
30461         Port the stdio extensions to QNX (untested).
30462         * lib/fseterr.c (fseterr): Add support for QNX.
30463         * lib/fbufmode.c (fbufmode): Likewise.
30464         * lib/freadable.c (freadable): Likewise.
30465         * lib/fwritable.c (fwritable): Likewise.
30466         * lib/freading.c (freading): Likewise.
30467         * lib/fwriting.c (fwriting): Likewise.
30468         * lib/freadahead.c (freadahed): Likewise.
30469         * lib/fpurge.c (fpurge): Likewise.
30470         * lib/fseeko.c (rpl_fseeko): Likewise.
30471
30472 2007-10-03  Bruno Haible  <bruno@clisp.org>
30473             Jim Meyering  <jim@meyering.net>
30474             Eric Blake  <ebb9@byu.net>
30475
30476         * doc/relocatable.texi: Use @command instead of @program.
30477
30478 2007-10-02  Jim Meyering  <jim@meyering.net>
30479
30480         Perform one more "_.h" -> ".in.h" substitution.
30481         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30482         instead of unistd_.h here, too.
30483
30484 2007-10-01  Bruno Haible  <bruno@clisp.org>
30485
30486         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30487         Needed for the alloca-opt module.
30488
30489 2007-09-30  Bruno Haible  <bruno@clisp.org>
30490
30491         * lib/alloca.in.h: Renamed from lib/alloca_.h.
30492         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30493         alloca_.h.
30494         * lib/argz.in.h: Renamed from lib/argz_.h.
30495         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30496         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30497         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30498         byteswap_.h.
30499         * lib/dirent.in.h: Renamed from lib/dirent_.h.
30500         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30501         dirent_.h.
30502         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30503         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30504         fcntl_.h.
30505         * lib/float.in.h: Renamed from lib/float_.h.
30506         * modules/float (Files, Makefile.am): Use float.in.h instead of
30507         float_.h.
30508         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30509         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30510         fnmatch_.h.
30511         * lib/getopt.in.h: Renamed from lib/getopt_.h.
30512         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30513         getopt_.h.
30514         * lib/glob.in.h: Renamed from lib/glob_.h.
30515         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30516         * lib/iconv.in.h: Renamed from lib/iconv_.h.
30517         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30518         iconv_.h.
30519         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30520         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30521         inttypes_.h.
30522         * lib/locale.in.h: Renamed from lib/locale_.h.
30523         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30524         locale_.h.
30525         * lib/math.in.h: Renamed from lib/math_.h.
30526         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30527         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30528         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30529         of netinet_in_.h. Add dependency.
30530         * lib/poll.in.h: Renamed from lib/poll_.h.
30531         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30532         * lib/search.in.h: Renamed from lib/search_.h.
30533         * modules/search (Files, Makefile.am): Use search.in.h instead of
30534         search_.h.
30535         * lib/signal.in.h: Renamed from lib/signal_.h.
30536         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30537         _signal.h.
30538         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30539         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30540         stdbool_.h.
30541         * lib/stdint.in.h: Renamed from lib/stdint_.h.
30542         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30543         stdint_.h.
30544         * lib/stdio.in.h: Renamed from lib/stdio_.h.
30545         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30546         stdio_.h.
30547         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30548         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30549         stdlib_.h.
30550         * lib/string.in.h: Renamed from lib/string_.h.
30551         * modules/string (Files, Makefile.am): Use string.in.h instead of
30552         string_.h.
30553         * doc/gnulib-tool.texi (Initial import): Update.
30554         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30555         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30556         of sys_select_.h. Add dependency.
30557         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30558         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30559         of sys_socket_.h.
30560         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30561         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30562         sys_stat_.h.
30563         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30564         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30565         sys_time_.h.
30566         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30567         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30568         sysexits_.h.
30569         * lib/time.in.h: Renamed from lib/time_.h.
30570         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30571         * lib/unistd.in.h: Renamed from lib/unistd_.h.
30572         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30573         unistd_.h.
30574         * lib/wchar.in.h: Renamed from lib/wchar_.h.
30575         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30576         wchar_.h.
30577         * lib/wctype.in.h: Renamed from lib/wctype_.h.
30578         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30579         wctype_.h.
30580         * build-aux/bootstrap (slurp): Update.
30581         * lib/.cppi-disable: Update.
30582
30583 2007-09-30  Bruno Haible  <bruno@clisp.org>
30584
30585         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30586         Needed on BeOS.
30587
30588 2007-09-30  Bruno Haible  <bruno@clisp.org>
30589
30590         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30591
30592 2007-09-29  Bruno Haible  <bruno@clisp.org>
30593
30594         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30595
30596 2007-09-29  Bruno Haible  <bruno@clisp.org>
30597
30598         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30599         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30600         * build-aux/install-reloc: Compile also areadlink.c.
30601         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30602
30603 2007-09-29  Bruno Haible  <bruno@clisp.org>
30604
30605         * gnulib-tool (func_emit_initmacro_done): Indentation.
30606
30607 2007-09-29  Bruno Haible  <bruno@clisp.org>
30608
30609         * README: Add CVS checkout update instructions.
30610         Info from Bob Proulx <bob@proulx.com>.
30611
30612 2007-09-28  Eric Blake  <ebb9@byu.net>
30613
30614         Provide move-if-change.
30615         * build-aux/move-if-change: New file, based on best practice
30616         rather than any canonical upstream location.
30617
30618 2007-09-28  Jim Meyering  <jim@meyering.net>
30619
30620         Fix canonicalize loop-detection corner case.
30621         Do not attempt to stat the symlink values stored via seen_triple.
30622         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30623         on linux-2.6.18, (but not 2.6.22).
30624         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30625         triple_compare.  The former compares dev,ino,filename, while the latter
30626         would actually stat dirname(filename) when dev and ino were equal.
30627         * lib/hash-triple.c: Install <string.h>.
30628         (STREQ): Define.
30629         (triple_compare_ino_str): New function.
30630         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30631
30632 2007-09-28  Eric Blake  <ebb9@byu.net>
30633
30634         Enforce that AC_REPLACE_FUNCS files exist.
30635         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30636         override check for typos.
30637
30638         Fix test-closein on Solaris 10.
30639         * tests/test-closein.c (main): Don't assume stdin can be inherited
30640         closed on all systems.
30641         * tests/test-closein.sh: Likewise.
30642         Reported by Piotr Tarnowski.
30643
30644 2007-09-28  Jim Meyering  <jim@meyering.net>
30645
30646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30647
30648 2007-09-27  Jim Meyering  <jim@meyering.net>
30649
30650         canonicalize: Avoid a false-positive cycle failure.
30651         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30652         Sort.  Remove cycle-check.
30653         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30654         not cycle-check.h.
30655         (seen_triple): New function.
30656         (canonicalize_filename_mode): Use it instead of cycle-check.
30657         * tests/test-canonicalize.c: Add a test for this bug.
30658         * tests/test-canonicalize.sh: Set up and run the test.
30659
30660         New module, file-set, from coreutils.
30661         * modules/file-set: Define it.
30662         * lib/file-set.c, lib/file-set.h: Implement.
30663
30664         New module, hash-triple, from coreutils.
30665         * modules/hash-triple: Define it.
30666         * lib/hash-triple.c, lib/hash-triple.h: Implement.
30667
30668 2007-09-25  Eric Blake  <ebb9@byu.net>
30669
30670         Fix strerror on Interix.
30671         * lib/string_.h (strerror): Declare replacement.
30672         * doc/functions/strerror.texi (strerror): Document the Interix
30673         shortcoming.
30674         * modules/string (Makefile.am): Support new hooks.
30675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30676         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30677         gl_FUNC_STRERROR_SEPARATE.
30678         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30679         * lib/strerror.c (rpl_strerror): Provide replacement.
30680         * modules/strerror (Depends-on): Add string.
30681         (configure.ac): Detect use of module.
30682         * tests/test-strerror.c: New file.
30683         * modules/strerror-tests: New test module.
30684         * modules/argp (Depends-on): Add strerror.
30685         * modules/error (Depends-on): Likewise.
30686         Reported by Martin Koeppe.
30687
30688 2007-09-24  Bruno Haible  <bruno@clisp.org>
30689
30690         * README: Update git instructions.
30691
30692 2007-09-24  Eric Blake  <ebb9@byu.net>
30693
30694         Revert fpending breakage from 2007-09-08.
30695         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30696         __fpending.c.
30697
30698 2007-09-24  Jim Meyering  <jim@meyering.net>
30699
30700         filenamecat.c: Add a test.
30701         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30702         showing how the function works when DIR is the empty string.
30703
30704 2007-09-21  Simon Josefsson  <simon@josefsson.org>
30705
30706         * tests/test-canonicalize.sh: Turn on executable bit.
30707
30708 2007-09-19  Eric Blake  <ebb9@byu.net>
30709
30710         * README: Update CVS instructions.
30711
30712 2007-09-18  Bruno Haible  <bruno@clisp.org>
30713
30714         * modules/areadlink: New file.
30715         * lib/areadlink.h (areadlink): New declaration.
30716         * lib/areadlink.c: New file, based on lib/xreadlink.c.
30717
30718 2007-09-17  Jim Meyering  <jim@meyering.net>
30719
30720         * lib/savewd.c (ESTALE) [!defined]: Define.
30721         Reported to be required on Interix by Martin Koeppe.
30722
30723 2007-09-17  Bruno Haible  <bruno@clisp.org>
30724
30725         * gnulib-tool (func_version): Use $version.
30726
30727 2007-09-16  Bruno Haible  <bruno@clisp.org>
30728
30729         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30730         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30731         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30732         Reported by Greg Schafer <gschafer@zip.com.au>.
30733
30734 2007-09-15  Bruno Haible  <bruno@clisp.org>
30735
30736         * gnulib-tool (sed): Try a little harder to make bash understand the
30737         alias.
30738         Reported by Bruce Korb <bruce.korb@gmail.com>.
30739
30740 2007-09-13  Eric Blake  <ebb9@byu.net>
30741
30742         * ChangeLog: Remove conflict markers.
30743
30744 2007-09-13  Simon Josefsson  <simon@josefsson.org>
30745
30746         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30747         Reported by Bruno Haible <bruno@clisp.org>.
30748
30749 2007-09-12  Bruno Haible  <bruno@clisp.org>
30750
30751         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30752         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30753         is not defined.
30754
30755 2007-09-12  Eric Blake  <ebb9@byu.net>
30756
30757         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30758         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30759         Autoconf definition.
30760         * modules/euidaccess (Depends-on): Add extensions, for
30761         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30762         * modules/fnmatch (Depends-on): Likewise.
30763         * modules/getaddrinfo (Depends-on): Likewise.
30764         * modules/getdelim (Depends-on): Likewise.
30765         * modules/getline (Depends-on): Likewise.
30766         * modules/getsubopt (Depends-on): Likewise.
30767         * modules/gettext (Depends-on): Likewise.
30768         * modules/group-member (Depends-on): Likewise.
30769         * modules/mbchar (Depends-on): Likewise.
30770         * modules/memmem (Depends-on): Likewise.
30771         * modules/mempcpy (Depends-on): Likewise.
30772         * modules/memrchr (Depends-on): Likewise.
30773         * modules/pagealign_alloc (Depends-on): Likewise.
30774         * modules/readutmp (Depends-on): Likewise.
30775         * modules/stpcpy (Depends-on): Likewise.
30776         * modules/stpncpy (Depends-on): Likewise.
30777         * modules/strchrnul (Depends-on): Likewise.
30778         * modules/strndup (Depends-on): Likewise.
30779         * modules/strsep (Depends-on): Likewise.
30780         * modules/strverscmp (Depends-on): Likewise.
30781         * modules/vasprintf (Depends-on): Likewise.
30782         * modules/wcwidth (Depends-on): Likewise.
30783         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30784         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30785         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30786         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30787         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30788         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30789         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30790         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30791         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30792         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30793         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30794         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30795         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30796         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30797         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30798         * m4/readutmp.m4 (gl_READUTMP): Likewise.
30799         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30800         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30802         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30803         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30804         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30805         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30806         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30807         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30809         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30810         so that lock.m4 can be used in gettext without extensions module.
30811
30812 2007-09-11  Bruno Haible  <bruno@clisp.org>
30813
30814         * m4/isc-posix.m4: Remove file.
30815         Suggested by Eric Blake.
30816
30817 2007-09-11  Eric Blake  <ebb9@byu.net>
30818
30819         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30820
30821 2007-09-10  Bruno Haible  <bruno@clisp.org>
30822
30823         * posix-modules: Fix typo in error message.
30824         Reported by Matt <mkraai@beckman.com>.
30825
30826 2007-09-09  Bruno Haible  <bruno@clisp.org>
30827
30828         * doc/functions/getdelim.texi: Update list of platforms lacking the
30829         function.
30830         * doc/functions/getline.texi: Likewise.
30831
30832 2007-09-09  Jim Meyering  <jim@meyering.net>
30833
30834         * lib/hash.c (hash_initialize): Detect calloc failure.
30835         Reported by Bruno Haible.
30836
30837 2007-09-09  Bruno Haible  <bruno@clisp.org>
30838
30839         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30840         malloc or realloc fails.
30841
30842 2007-09-09  Bruno Haible  <bruno@clisp.org>
30843
30844         * modules/getcwd (Depends-on): Add malloc-posix.
30845         * modules/glob (Depends-on): Likewise.
30846         * modules/putenv (Depends-on): Likewise.
30847         * modules/strdup (Depends-on): Likewise.
30848         * modules/getdelim (Depends-on): Add realloc-posix.
30849         * modules/read-file (Depends-on): Likewise.
30850
30851 2007-09-09  Bruno Haible  <bruno@clisp.org>
30852
30853         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30854         (gl_FUNC_MALLOC_POSIX): Require it.
30855         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30856         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30857         * modules/realloc (Files): Add m4/malloc.m4.
30858         * modules/calloc (Files): Likewise.
30859
30860 2007-09-09  Bruno Haible  <bruno@clisp.org>
30861
30862         * modules/malloc-posix: New file.
30863         * modules/malloc (Depends-on): Add malloc-posix.
30864         * lib/malloc.c: Include errno.h.
30865         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30866         and a POSIX-compatible malloc into a single function. Set ENOMEM
30867         when returning NULL.
30868         * m4/malloc.m4: New file.
30869         * doc/functions/malloc.texi: Mention the malloc-posix module.
30870         * lib/stdlib_.h (malloc): New declaration.
30871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30872         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30873         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30874         and HAVE_MALLOC_POSIX.
30875
30876 2007-09-09  Bruno Haible  <bruno@clisp.org>
30877
30878         * modules/realloc-posix: New file.
30879         * modules/realloc (Depends-on): Add realloc-posix.
30880         * lib/realloc.c: Include errno.h.
30881         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30882         and a POSIX-compatible realloc into a single function. Set ENOMEM
30883         when returning NULL.
30884         * m4/realloc.m4: New file.
30885         * doc/functions/realloc.texi: Mention the realloc-posix module.
30886         * lib/stdlib_.h (realloc): New declaration.
30887         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30888         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30889         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30890         and HAVE_REALLOC_POSIX.
30891
30892 2007-09-09  Bruno Haible  <bruno@clisp.org>
30893
30894         * modules/calloc-posix: New file.
30895         * modules/calloc (Depends-on): Add calloc-posix.
30896         * lib/calloc.c: Include errno.h.
30897         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30898         and a POSIX-compatible calloc into a single function. Set ENOMEM
30899         when returning NULL.
30900         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30901         * doc/functions/calloc.texi: Mention the calloc-posix module.
30902         * lib/stdlib_.h (calloc): New declaration.
30903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30904         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30905         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30906         and HAVE_CALLOC_POSIX.
30907
30908 2007-09-09  Bruno Haible  <bruno@clisp.org>
30909
30910         Allow for modules to show an arbitrary notice.
30911         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30912         * gnulib-tool: New option --extract-notice.
30913         (func_usage): Document it.
30914         (sed_extract_prog): Update.
30915         (func_get_notice): New function.
30916         (func_modules_notice): New function.
30917         (func_import, func_create_testdir): Invoke it.
30918         Suggested by Jim Meyering.
30919
30920 2007-09-09  Bruno Haible  <bruno@clisp.org>
30921
30922         * gnulib-tool: New options --verbose, --quiet.
30923         (func_usage): Document them.
30924         (verbose): New variable.
30925         (func_execute_command): New function.
30926         (func_import): Don't show the module list and the file list if
30927         $verbose < 0.
30928         (func_create_testdir): Likewise. Use func_execute_command.
30929         (func_create_megatestdir): Use func_execute_command.
30930
30931 2007-09-08  Bruno Haible  <bruno@clisp.org>
30932
30933         * gnulib-tool (func_import): Prefer rsync over wget when available,
30934         for fetching the PO files.
30935
30936 2007-09-08  Bruno Haible  <bruno@clisp.org>
30937
30938         * posix-modules: New file. Portions copied from gnulib-tool.
30939         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30940
30941 2007-09-08  Jim Meyering  <jim@meyering.net>
30942
30943         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30944         * lib/fpending.h: Rename from __fpending.h.
30945         * lib/fpending.c: Rename from __fpending.c.
30946         Include "fpending.h", not "__fpending.h".
30947         * lib/__fpending.h, lib/__fpending.c: Remove files.
30948         * modules/fpending (Files): Reflect new file names.
30949         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30950
30951 2007-09-08  Bruno Haible  <bruno@clisp.org>
30952
30953         * m4/inttypes-h.m4: Remove stub file.
30954
30955 2007-09-07  Simon Josefsson  <simon@josefsson.org>
30956
30957         * doc/headers/stdint.texi: Discuss #include_next issue.
30958
30959 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30960
30961         * build-aux/bootstrap: Remove obsolete comment about wget --help.
30962
30963 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30964
30965         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30966         in variable name.
30967
30968 2007-09-03  Jim Meyering  <jim@meyering.net>
30969
30970         New module: git-version-gen.
30971         * modules/git-version-gen: New file.
30972
30973         Import changes from coreutils for bootstrap script.
30974
30975         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30976
30977         bootstrap: uses rsync to download the .po files
30978         * build-aux/bootstrap (po_download_command_format): New global.
30979         (download_po_files): Use rsync.
30980         (update_po_files): Don't remove .po files after download,
30981         so future rsync runs can take advantage of the copies.
30982
30983         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30984
30985         Solve the unnecessary-.po-file-regeneration problem once and for all.
30986         * build-aux/bootstrap (download_po_files): New function, renamed from
30987         get_translations.  Now, downloads, but doesn't update LINGUAS.
30988         (update_po_files): New function.
30989
30990         bootstrap: Ignore more.
30991         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30992         uniwidth to e.g., lib/.gitignore.
30993         (slurp): Handle the sys_stat_.h -> sys mapping, too.
30994
30995         * build-aux/bootstrap: New setting: vc_ignore.
30996         (insert_sorted_if_absent): Create $file if absent.
30997         Adapt to new, possibly empty, list: $vc_ignore.
30998
30999         bootstrap: generate more ignorable names
31000         * build-aux/bootstrap (slurp): When generating ignorable names,
31001         also map .sin to .sed, .gperf to .c, and .y to .c.
31002
31003 2007-09-03  Jim Meyering  <jim@meyering.net>
31004
31005         * build-aux/git-version-gen: New file, from coreutils.  For details, see
31006         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
31007
31008 2007-09-02  Bruno Haible  <bruno@clisp.org>
31009
31010         Fix mis-recognition of 'mcs' on QNX 6.
31011         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
31012         output contains the string "Mono".
31013         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
31014         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
31015
31016 2007-09-01  Bruno Haible  <bruno@clisp.org>
31017
31018         Fix collision between uniwidth/* and linebreak modules.
31019         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
31020         u32_width): Remove declarations.
31021         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
31022         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
31023         streq3, streq2, streq1, streq0): Remove functions.
31024         (STREQ): Remove macro.
31025         (is_cjk_encoding): Remove function.
31026         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
31027         (uc_width, u8_width, u16_width, u32_width): Remove functions.
31028         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
31029         * NEWS: Document the change.
31030
31031 2007-09-01  Bruno Haible  <bruno@clisp.org>
31032
31033         * lib/streq.h: Add double-inclusion guard.
31034
31035 2007-09-01  Karl Berry  <karl@gnu.org>
31036
31037         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
31038
31039 2007-08-28  Jim Meyering  <jim@meyering.net>
31040
31041         Rename mreadlink_with_size to areadlink_with_size.
31042         * NEWS: Document the change.
31043         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
31044         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
31045         * lib/mreadlink.h: Rename this to...
31046         * lib/areadlink.h: ...this.
31047         * modules/mreadlink-with-size: Rename this to...
31048         * modules/areadlink-with-size: ...this.
31049         * lib/canonicalize.c: Reflect the renaming.
31050         * modules/canonicalize: Likewise.
31051
31052 2007-08-26  Bruno Haible  <bruno@clisp.org>
31053
31054         * gnulib-tool (func_import): When deciding which files to remove,
31055         consider also dangling symbolic links.
31056         Reported by Eric Blake.
31057
31058 2007-08-26  Bruno Haible  <bruno@clisp.org>
31059
31060         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
31061
31062 2007-08-23  Simon Josefsson  <simon@josefsson.org>
31063
31064         * lib/readline.c: Don't include getline.h, the prototype is now
31065         found in stdio.h.
31066
31067 2007-08-23  Jim Meyering  <jim@meyering.net>
31068
31069         Getdelim touchup.
31070         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
31071         around the funlockfile call, since funlockfile never sets errno.
31072         Don't set errno upon failed realloc.
31073
31074 2007-08-22  Eric Blake  <ebb9@byu.net>
31075
31076         Getline touchups.
31077         * lib/getdelim.c (getdelim): Revert regression that required *n to
31078         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
31079         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
31080         getdelim, rather than whether implementation is missing.
31081         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
31082         * lib/stdio_.h (getline): Also declare if replacement is
31083         required.
31084         * doc/functions/getdelim.texi: New file.
31085         * doc/functions/getline.texi: Likewise.
31086         * doc/gnulib.texi (Function Substitutes): Add new files.
31087         Reported by Bruno Haible.
31088
31089 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
31090
31091         * users.txt: Add Guile.
31092
31093 2007-08-22  Eric Blake  <ebb9@byu.net>
31094
31095         * tests/test-getdelim.c (main): Use remove, not unlink.
31096         * tests/test-getline.c (main): Likewise.
31097
31098         Move getline and getdelim into stdio.h, per POSIX 200x.
31099         * modules/getline (Files): Remove getline.h.
31100         (Depends-on): Add stdio.
31101         (configure.ac): Add module indicator.
31102         * modules/getdelim (Files): Remove getdelim.h.
31103         (Depends-on): Add stdio.
31104         (configure.ac): Add module indicator.
31105         * modules/stdio (Makefile.am): Work with new indicators.
31106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31107         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
31108         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31109         * lib/getdelim.h: Delete.
31110         * lib/getline.h: Delete.
31111         * lib/stdio_.h (getdelim, getline): Declare.
31112         * modules/getdelim-tests: New module.
31113         * modules/getline-tests: Likewise.
31114         * tests/test-getdelim.c: New file.
31115         * tests/test-getline.c: Likewise.
31116         * NEWS: Document the change.
31117         * lib/getline.c: Update choice of header.
31118         * lib/csharpcomp.c: Likewise.
31119         * lib/getpass.c: Likewise.
31120         * lib/javacomp.c: Likewise.
31121         * lib/javaversion.c: Likewise.
31122         * lib/yesno.c: Likewise.
31123         * lib/getdelim.c: Likewise.
31124         (getdelim): Set errno on failure, and avoid memory leak.
31125
31126 2007-08-19  Bruno Haible  <bruno@clisp.org>
31127
31128         * modules/closein (Depends-on): Add freadahead.
31129         * lib/closein.c: Include freadahead.h.
31130         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
31131         is zero.
31132
31133 2007-08-19  Bruno Haible  <bruno@clisp.org>
31134
31135         * modules/freadahead-tests: New file.
31136         * tests/test-freadahead.sh: New file.
31137         * tests/test-freadahead.c: New file.
31138
31139         * modules/freadahead: New file.
31140         * lib/freadahead.h: New file.
31141         * lib/freadahead.c: New file.
31142         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
31143         fbufmode, fpurge, freadable, fwritable.
31144
31145 2007-08-19  Eric Blake  <ebb9@byu.net>
31146
31147         Test yesno in combination with closein.
31148         * lib/yesno.c (yesno): Document use of stdin.
31149         * modules/yesno-tests (Files): New module.
31150         * tests/test-yesno.c (main): New file.
31151         * tests/test-yesno.sh: Likewise.
31152
31153 2007-08-19  Bruno Haible  <bruno@clisp.org>
31154
31155         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
31156         * lib/fseeko.c (rpl_fseeko): Likewise.
31157         * lib/fseterr.c (fseterr): Likewise.
31158
31159 2007-08-19  Bruno Haible  <bruno@clisp.org>
31160
31161         * tests/test-lseek.c (main): Disable a test for BeOS.
31162         * doc/functions/lseek.texi: Document the BeOS bug.
31163
31164 2007-08-19  Bruno Haible  <bruno@clisp.org>
31165             Eric Blake  <ebb9@byu.net>
31166
31167         * lib/lseek.c: Include <sys/stat.h>.
31168         (rpl_lseek): Add workaround code also for Unix platforms.
31169         Needed for BeOS.
31170         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
31171         * doc/functions/lseek.texi: Document BeOS definiency.
31172
31173 2007-08-18  Bruno Haible  <bruno@clisp.org>
31174
31175         * modules/fstrcmp-tests: New file.
31176         * tests/test-fstrcmp.c: New file.
31177
31178 2007-08-18  Bruno Haible  <bruno@clisp.org>
31179
31180         * modules/fstrcmp: New file, from GNU gettext with modifications.
31181         * lib/fstrcmp.h: New file, from GNU gettext.
31182         * lib/fstrcmp.c: New file, from GNU gettext.
31183         * MODULES.html.sh (String handling): Add fstrcmp.
31184
31185 2007-08-18  Bruno Haible  <bruno@clisp.org>
31186
31187         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
31188         'bool'.
31189         (diag, compareseq): Remove const from the ctxt argument.
31190         (USE_HEURISTIC): Undefine at the end.
31191
31192 2007-08-18  Jim Meyering  <jim@meyering.net>
31193
31194         New file: lib/idcache.h
31195         * NEWS: Mention the addition.
31196         * modules/idcache (Files): Add lib/idcache.h
31197         * lib/idcache.c: Include "idcache.h".
31198         Don't include <sys/types.h>.
31199         Add a FIXME comment.
31200         Move file-scoped "static" declarations to the top.
31201         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
31202
31203 2007-08-17  Bruno Haible  <bruno@clisp.org>
31204         and Paul Eggert  <eggert@cs.ucla.edu>
31205
31206         * MODULES.html.sh: Add diffseq.
31207         * modules/diffseq: New file.
31208         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
31209         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
31210
31211 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
31212
31213         Import changes from coreutils for bootstrap script.
31214
31215         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
31216
31217         * build-aux/bootstrap (slurp): Work even in environments where
31218         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
31219         current code does not slurp files whose names start with ".", and
31220         this looks like it might be a troublesome area.
31221
31222         2007-07-11  Jim Meyering  <jim@meyering.net>
31223
31224         If there's a GPL vN copyright comment, require that N == 3.
31225
31226         2007-07-08  Jim Meyering  <jim@meyering.net>
31227
31228         Run the coreutils-specific code only if tests/Makefile.am.in exists.
31229         * build-aux/bootstrap (mam_template): Move definition out of loop.
31230
31231         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
31232
31233         * build-aux/bootstrap (symlink_to_dir): Rename function from
31234         symlink_to_gnulib.  Add a directory parameter.  Update all
31235         callers.
31236         (cp_mark_as_generated): Also check for -- and link to -- files in
31237         gl/.
31238
31239         2007-07-08  Jim Meyering  <jim@meyering.net>
31240
31241         Adapt to deeper hierarchy in gnulib.
31242         * build-aux/bootstrap (symlink_to_dir): If the destination
31243         directory doesn't exist, create it. This is required at least for
31244         "lib/uniwidth/cjk.h".
31245
31246         2007-05-15  Jim Meyering  <jim@meyering.net>
31247
31248         * build-aux/bootstrap: Now that generated Makefile.am files
31249         are no longer under version control, they must be created at
31250         bootstrap time.
31251
31252 2007-08-14  Ben Pfaff  <blp@gnu.org>
31253
31254         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
31255
31256 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
31257
31258         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
31259         given the changes below.
31260         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
31261         even on hosts that have padding bits beyond the supported 64.
31262
31263 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
31264
31265         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
31266         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
31267         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
31268         depends on it.
31269         (xstrtol_error): Remove.
31270         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
31271         but with a different signature.
31272         (ATTRIBUTE_NORETURN, __attribute__): New macros.
31273         * lib/xstrtol-error.c: Include exitfail.h.
31274         (xstrtol_fatal): New function, with a different signature from the
31275         old xstrtol_error, so that the caller need not worry about passing
31276         in an exit status, or about storage management of the option argument.
31277         (xstrtol_error): Now a static function.  Redo signature to
31278         implement xstrtol_fatal.  Output the correct number of hyphens in
31279         front of the option so that the caller need not worry about
31280         storage management.
31281         (N_): New macro.
31282         (_): Remove; not used now.
31283         * modules/xstrtol: Depend on getopt.
31284         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
31285         of old STRTOL_FATAL_ERROR macro.
31286         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
31287         of test program.
31288         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
31289         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
31290
31291 2007-08-08  Eric Blake  <ebb9@byu.net>
31292
31293         * lib/xstrtol-error.c: Add missing include.
31294
31295         Move xstrtol messages into gnulib domain, when --pobase is used.
31296         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
31297         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
31298         * modules/xstrtol (Files): Distribute new file.
31299         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
31300         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
31301         * tests/test-xstrtol.c: ...into new file.
31302         * tests/test-xstrtoul.c: Also test xstrtoul.
31303         * tests/test-xstrtoimax.c: Also test xstrtoimax.
31304         * tests/test-xstrtoumax.c: Also test xstrtoumax.
31305         * tests/test-xstrtol.sh: Drive the tests.
31306         * tests/test-xstrtoimax.sh: Likewise.
31307         * tests/test-xstrtoumax.sh: Likewise.
31308         * modules/xstrtol-tests: New module.
31309         * modules/xstrtoimax-tests: Likewise.
31310         * modules/xstrtoumax-tests: Likewise.
31311
31312 2007-08-08  Jim Meyering  <jim@meyering.net>
31313
31314         New function: mfile_name_concat.
31315         * lib/filenamecat.c (mfile_name_concat): New function, just like
31316         file_name_concat, but return NULL upon failure rather than exiting
31317         with a diagnostic.
31318         * lib/filenamecat.h: Declare it.
31319
31320 2007-08-07  Bruno Haible  <bruno@clisp.org>
31321
31322         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
31323         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
31324         warning from gcc.
31325         Reported by Eric Blake.
31326
31327 2007-08-07  Simon Josefsson  <simon@josefsson.org>
31328
31329         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
31330         * modules/crypto/arcfour (License): Likewise.
31331         * modules/crypto/des-tests (License): Likewise.
31332         * modules/crypto/gc-arctwo-tests (License): Likewise.
31333         * modules/crypto/gc-des-tests (License): Likewise.
31334         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
31335         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
31336         * modules/crypto/gc-md2-tests (License): Likewise.
31337         * modules/crypto/gc-md4-tests (License): Likewise.
31338         * modules/crypto/gc-md5-tests (License): Likewise.
31339         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
31340         * modules/crypto/gc-rijndael-tests (License): Likewise.
31341         * modules/crypto/gc-sha1-tests (License): Likewise.
31342         * modules/crypto/gc-tests (License): Likewise.
31343         * modules/crypto/hmac-md5 (License): Likewise.
31344         * modules/crypto/hmac-sha1 (License): Likewise.
31345         * modules/crypto/md2-tests (License): Likewise.
31346         * modules/crypto/md4-tests (License): Likewise.
31347         * modules/crypto/md5 (License): Likewise.
31348         * modules/crypto/rijndael (License): Likewise.
31349         * modules/crypto/sha1 (License): Likewise.
31350         * modules/memxor (License): Likewise.
31351
31352 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
31353         and Bruno Haible  <bruno@clisp.org>
31354
31355         * NEWS: Describe interface changes to human, xstrtol.
31356         * lib/human.h: Include <xstrtol.h>.
31357         (human_options): Return enum strtol_error, not int.  Remove
31358         bool arg; take int * instead.
31359         * lib/human.c: Don't include "gettext.h".
31360         (_): Remove; no longer used.
31361         Don't include <xstrtol.h>, since human.h does it.
31362         (human_options): Adjust to abovementioned interface changes.
31363         Do not report error to stderr; that's now the caller's
31364         responsibility.
31365         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
31366         interface change.
31367         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
31368         Str, Argument_type_string.  All uses changed.  Put " argument"
31369         in diagnostics to make them clearer.  Change wording of suffix
31370         message for clarity.
31371         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
31372         Argument_type_string.
31373         (STRTOL_FATAL_WARN): Remove; no longer used.
31374         * modules/human (Depends-on): Remove gettext-h.
31375
31376 2007-08-06  Simon Josefsson  <simon@josefsson.org>
31377
31378         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
31379
31380 2007-07-31  Bruno Haible  <bruno@clisp.org>
31381
31382         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
31383         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
31384         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
31385
31386 2007-07-31  Bruno Haible  <bruno@clisp.org>
31387
31388         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
31389         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
31390
31391 2007-07-30  Bruno Haible  <bruno@clisp.org>
31392
31393         * modules/base64 (License): Use the synonymous term "LGPLv2+".
31394         * modules/c-ctype (License): Likewise.
31395         * modules/c-strcase (License): Likewise.
31396         * modules/check-version (License): Likewise.
31397         * modules/iconv (License): Likewise.
31398         * modules/iconv_open (License): Likewise.
31399         * modules/read-file (License): Likewise.
31400         * modules/striconv (License): Likewise.
31401         * modules/strverscmp (License): Likewise.
31402         * modules/vasprintf (License): Likewise.
31403         * modules/crypto/des (License): Likewise.
31404         * modules/crypto/gc (License): Likewise.
31405         * modules/crypto/gc-arcfour (License): Likewise.
31406         * modules/crypto/gc-arctwo (License): Likewise.
31407         * modules/crypto/gc-des (License): Likewise.
31408         * modules/crypto/gc-hmac-md5 (License): Likewise.
31409         * modules/crypto/gc-hmac-sha1 (License): Likewise.
31410         * modules/crypto/gc-md2 (License): Likewise.
31411         * modules/crypto/gc-md4 (License): Likewise.
31412         * modules/crypto/gc-md5 (License): Likewise.
31413         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
31414         * modules/crypto/gc-random (License): Likewise.
31415         * modules/crypto/gc-rijndael (License): Likewise.
31416         * modules/crypto/gc-sha1 (License): Likewise.
31417         * modules/crypto/md2 (License): Likewise.
31418         * modules/crypto/md4 (License): Likewise.
31419
31420 2007-07-30  Jim Meyering  <jim@meyering.net>
31421
31422         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
31423         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
31424         it has valid stat data.  This bug would cause du not to count the
31425         sizes of inaccessible directories.
31426         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
31427         in <http://bugzilla.redhat.com/250077>.
31428
31429 2007-07-25  Peter O'Gorman  <peter@pogma.com>
31430             Bruno Haible  <bruno@clisp.org>
31431
31432         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
31433         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
31434         #include_next, gives a diagnostic about it, but reports no error in
31435         the exit code.
31436         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
31437
31438 2007-07-24  Ben Pfaff  <blp@gnu.org>
31439
31440         Improve name: "count-one-bits" is better than "popcount".
31441         * MODULES.html.sh: Update name.
31442         * lib/popcount.h: Renamed lib/count-one-bits.h.
31443         (popcount): Renamed count_one_bits.
31444         (popcountl): Renamed count_one_bits_l.
31445         (popcountll): Renamed count_one_bits_ll.
31446         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
31447         * modules/popcount: Renamed module/count-one-bits.
31448         * modules/popcount-tests: Renamed module/count-one-bits-tests.
31449         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31450
31451 2007-07-23  Ben Pfaff  <blp@gnu.org>
31452
31453         * lib/popcount.h (popcount32): Reduce size of constants, to allow
31454         better code generation, and add U to large constants to avoid
31455         warnings, in non-GCC case.
31456         Suggested by Bruno Haible.
31457
31458 2007-07-23  Ben Pfaff  <blp@gnu.org>
31459
31460         * lib/popcount.h: Use verify_true instead of if...abort.
31461         * modules/popcount: Depend on verify module.
31462         Suggested by Jim Meyering.
31463
31464 2007-07-23  Bruno Haible  <bruno@clisp.org>
31465
31466         * gnulib-tool (func_import): Create a .cvsignore file also when the
31467         directory is not yet in CVS but the toplevel directory is. When
31468         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31469         Reported by Karl Berry.
31470
31471 2007-07-22  Ben Pfaff  <blp@gnu.org>
31472
31473         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31474         case.
31475         Suggested by Eric Blake.
31476
31477 2007-07-22  Ben Pfaff  <blp@gnu.org>
31478
31479         New module: popcount.
31480         * MODULES.html.sh: Add popcount.
31481         * modules/popcount: New file.
31482         * modules/popcount-tests: New file.
31483         * tests/test-popcount.c: New file.
31484         * lib/popcount.h: New file.
31485         * m4/popcount.m4: New file.
31486
31487 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
31488
31489         * build-aux/announce-gen: Update to GPLv3.
31490
31491         * build-aux/config.guess: Update from config.
31492
31493 2007-07-21  Bruno Haible  <bruno@clisp.org>
31494
31495         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31496         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31497
31498 2007-07-20  Jim Meyering  <jim@meyering.net>
31499
31500         * check-module: Diagnose a self-dependency.
31501
31502 2007-07-19  Bruno Haible  <bruno@clisp.org>
31503
31504         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31505         empty.
31506         Reported by Eric Blake.
31507
31508 2007-07-18  Bruno Haible  <bruno@clisp.org>
31509
31510         * gnulib-tool: New options --po-base, --po-domain.
31511         (func_usage): Document them.
31512         (pobase, po_domain): New variables.
31513         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31514         DEFAULT_TEXT_DOMAIN.
31515         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31516         (func_import): Consider pobase and po_domain. Create a po/ directory.
31517         (func_create_testdir): Set pobase and po_domain to empty.
31518         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31519         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31520
31521 2007-07-18  Bruno Haible  <bruno@clisp.org>
31522
31523         * gnulib-tool (func_get_automake_snippet): Synthesize also an
31524         EXTRA_DIST augmentation for files in build-aux/.
31525
31526 2007-07-16  Bruno Haible  <bruno@clisp.org>
31527
31528         * modules/lseek (License): Use the synonymous term "LGPLv2+".
31529         * modules/getdelim (License): Likewise.
31530
31531 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31532
31533         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31534         * modules/d-type (License): Likewise.
31535         * modules/extensions (License): Likewise.
31536         * modules/fnmatch (License): Likewise.
31537         * modules/fseeko (License): Likewise.
31538         * modules/getaddrinfo (License): Likewise.
31539         * modules/getline (License): Likewise.
31540         * modules/getlogin_r (License): Likewise.
31541         * modules/getpass (License): Likewise.
31542         * modules/gettimeofday (License): Likewise.
31543         * modules/glob (License): Likewise.
31544         * modules/inet_ntop (License): Likewise.
31545         * modules/malloc (License): Likewise.
31546         * modules/malloca (License): Likewise.
31547         * modules/memmem (License): Likewise.
31548         * modules/mempcpy (License): Likewise.
31549         * modules/memset (License): Likewise.
31550         * modules/minmax (License): Likewise.
31551         * modules/mktime (License): Likewise.
31552         * modules/netinet_in (License): Likewise.
31553         * modules/pathmax (License): Likewise.
31554         * modules/poll (License): Likewise.
31555         * modules/regex (License): Likewise.
31556         * modules/snprintf (License): Likewise.
31557         * modules/stdbool (License): Likewise.
31558         * modules/stdint (License): Likewise.
31559         * modules/stdio (License): Likewise.
31560         * modules/strcase (License): Likewise.
31561         * modules/strcasestr (License): Likewise.
31562         * modules/strdup (License): Likewise.
31563         * modules/string (License): Likewise.
31564         * modules/strndup (License): Likewise.
31565         * modules/strnlen (License): Likewise.
31566         * modules/strpbrk (License): Likewise.
31567         * modules/strptime (License): Likewise.
31568         * modules/strsep (License): Likewise.
31569         * modules/sys_select (License): Likewise.
31570         * modules/sys_socket (License): Likewise.
31571         * modules/sys_stat (License): Likewise.
31572         * modules/sys_time (License): Likewise.
31573         * modules/time (License): Likewise.
31574         * modules/time_r (License): Likewise.
31575         * modules/timegm (License): Likewise.
31576         * modules/unistd (License): Likewise.
31577         * modules/vsnprintf (License): Likewise.
31578         * modules/wctype (License): Likewise.
31579
31580 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31581
31582         * modules/argz (License): LGPLv2+.
31583
31584 2007-07-15  Karl Berry  <karl@gnu.org>
31585
31586         * doc/gnulib.texi: revise node structure per new fdl.texi.
31587
31588 2007-07-14  Bruno Haible  <bruno@clisp.org>
31589
31590         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31591         the output file.
31592         * lib/uniname/uninames.h: Regenerated.
31593
31594 2007-07-14  Karl Berry  <karl@gnu.org>
31595
31596         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31597         omitting sectioning and index commands.
31598
31599 2007-07-13  Bruno Haible  <bruno@clisp.org>
31600
31601         New gnulib-tool option --more-symlinks.
31602         * gnulib-tool (func_usage): Document --more-symlinks.
31603         (do_copyrights): New variable.
31604         Recognize option --more-symlinks.
31605         (func_import): Don't add a copyright notice transform to
31606         sed_transform_lib_file if do_copyrights is empty.
31607
31608 2007-07-13  Bruno Haible  <bruno@clisp.org>
31609
31610         * lib/vasnprintf.c (decimal_point_char): Define also if
31611         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31612         && !NEED_PRINTF_DIRECTIVE_A.
31613         Reported by Clemens Koller <clemens.koller@anagramm.de> via
31614         Gary V. Vaughan <gary@gnu.org>.
31615
31616 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
31617
31618         * lib/inttypes_.h: Undo previous change, since it was fixed
31619         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31620
31621 2007-07-13  Bruno Haible  <bruno@clisp.org>
31622
31623         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31624         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31625
31626 2007-07-13  Jim Meyering  <jim@meyering.net>
31627
31628         df: Don't fail for Tru64's "file-on-file mount".
31629         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31630         so we fall through and use statfs instead.  Details here:
31631         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31632         Reported by Albert Chin.
31633
31634 2007-07-13  Bruno Haible  <bruno@clisp.org>
31635
31636         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31637         * modules/configmake (License): Likewise.
31638         * modules/gettext (License): Likewise.
31639         * modules/gettext-h (License): Likewise.
31640         * modules/include_next (License): Likewise.
31641         * modules/link-warning (License): Likewise.
31642         * modules/localcharset (License): Likewise.
31643         * modules/localename (License): Likewise.
31644         * modules/lock (License): Likewise.
31645         * modules/relocatable-lib-lgpl (License): Likewise.
31646         * modules/size_max (License): Likewise.
31647         * modules/vasnprintf (License): Likewise.
31648         * modules/wchar (License): Likewise.
31649         * modules/xsize (License): Likewise.
31650
31651 2007-07-13  Bruno Haible  <bruno@clisp.org>
31652
31653         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31654         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31655
31656 2007-07-12  Bruno Haible  <bruno@clisp.org>
31657
31658         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31659         in the modules files.
31660
31661 2007-07-11  Karl Berry  <karl@gnu.org>
31662
31663         * MODULES.html.sh (func_module): use
31664          sed -e '\|^'"${includefile}"'$|d'
31665          instead of /.../d, to avoid errors on $includefile's containing /.
31666
31667 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
31668
31669         * gnulib-tool (func_import): Avoid duplication of --avoid
31670         statements
31671         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31672         names to `_' in variable names.
31673
31674 2007-07-10  Eric Blake  <ebb9@byu.net>
31675
31676         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31677         * NEWS: Document this change.
31678
31679 2007-07-08  Bruno Haible  <bruno@clisp.org>
31680
31681         Update to Unicode 5.0.
31682         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31683         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31684         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31685         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31686         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31687         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31688         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31689         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31690         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31691         U+10A3F, U+1D242..U+1D244.
31692         (nonspacing_table_ind): Update.
31693         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31694         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31695
31696 2007-07-08  Bruno Haible  <bruno@clisp.org>
31697
31698         Update to Unicode 5.0.
31699         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31700         code transform. Extend the name index field of unicode_name_to_code and
31701         unicode_code_to_name from 16 to 24 bits.
31702         * lib/uniname/uniname.c (unicode_character_name,
31703         unicode_name_character): Add the range 0x12xxx to the code transform.
31704         * lib/uniname/uninames.h: Regenerated.
31705         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31706
31707 2007-07-07  Bruno Haible  <bruno@clisp.org>
31708
31709         * modules/wcwidth-tests: New file.
31710         * tests/test-wcwidth.c: New file.
31711
31712         Work around MacOS X wcwidth() bug.
31713         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31714         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31715         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31716         original wcwidth in non-UTF-8 locales.
31717         * modules/wcwidth (Depends-on): Add localcharset, streq,
31718         uniwidth/width.
31719         * doc/functions/wcwidth.texi: Update.
31720
31721 2007-07-07  Bruno Haible  <bruno@clisp.org>
31722
31723         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31724         (wcwidth): New declaration.
31725         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31726         macros.
31727         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31728         here. Prepare for creating <wchar.h> unconditionally.
31729         * modules/wchar (Depends-on): Add link-warning.
31730         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31731         REPLACE_WCWIDTH, and GL_LINK_WARNING.
31732         * lib/wcwidth.h: Remove file.
31733         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31734         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31735         * modules/wcwidth (Files): Remove lib/wcwidth.h.
31736         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31737         (Include): Replace wcwidth.h with <wchar.h>.
31738         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31739         * lib/mbchar.h: Don't include wcwidth.h.
31740         * lib/mbswidth.c: Likewise.
31741         * NEWS: Mention the change.
31742
31743 2007-07-07  Bruno Haible  <bruno@clisp.org>
31744
31745         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31746         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31747         definition with an external declaration.
31748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31749         defined as a function. Remove AC_C_INLINE requirement.
31750         * modules/wcwidth (Files): Add lib/wcwidth.c.
31751         (Makefile.am): Remove redundant statement.
31752
31753 2007-07-07  Bruno Haible  <bruno@clisp.org>
31754
31755         * MODULES.html.sh (Unicode string functions): Add the new modules.
31756
31757         * tests/uniwidth/test-u32-strwidth.c: New file.
31758         * modules/uniwidth/u32-strwidth-tests: New file.
31759
31760         * lib/uniwidth/u32-strwidth.c: New file.
31761         * modules/uniwidth/u32-strwidth: New file.
31762
31763         * tests/uniwidth/test-u16-strwidth.c: New file.
31764         * modules/uniwidth/u16-strwidth-tests: New file.
31765
31766         * lib/uniwidth/u16-strwidth.c: New file.
31767         * modules/uniwidth/u16-strwidth: New file.
31768
31769         * tests/uniwidth/test-u8-strwidth.c: New file.
31770         * modules/uniwidth/u8-strwidth-tests: New file.
31771
31772         * lib/uniwidth/u8-strwidth.c: New file.
31773         * modules/uniwidth/u8-strwidth: New file.
31774
31775         * tests/uniwidth/test-u32-width.c: New file.
31776         * modules/uniwidth/u32-width-tests: New file.
31777
31778         * lib/uniwidth/u32-width.c: New file.
31779         * modules/uniwidth/u32-width: New file.
31780
31781         * tests/uniwidth/test-u16-width.c: New file.
31782         * modules/uniwidth/u16-width-tests: New file.
31783
31784         * lib/uniwidth/u16-width.c: New file.
31785         * modules/uniwidth/u16-width: New file.
31786
31787         * tests/uniwidth/test-u8-width.c: New file.
31788         * modules/uniwidth/u8-width-tests: New file.
31789
31790         * lib/uniwidth/u8-width.c: New file.
31791         * modules/uniwidth/u8-width: New file.
31792
31793         * tests/uniwidth/test-uc_width.c: New file.
31794         * modules/uniwidth/width-tests: New file.
31795
31796         * lib/uniwidth/width.c: New file, from GNU libiconv.
31797         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31798         * modules/uniwidth/width: New file.
31799
31800         * lib/uniwidth.h: New file, from GNU libiconv.
31801         * modules/uniwidth/base: New file.
31802
31803 2007-07-07  Bruno Haible  <bruno@clisp.org>
31804
31805         * lib/uniname.h: New file, from GNU gettext.
31806         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31807         * lib/uniname/uninames.h: New file, from GNU gettext.
31808         * lib/uniname/uniname.c: New file, from GNU gettext.
31809         * tests/uniname/test-uninames.sh: New file.
31810         * tests/uniname/test-uninames.c: New file, from GNU gettext.
31811         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31812         * modules/uniname/base: New file.
31813         * modules/uniname/uniname: New file.
31814         * modules/uniname/uniname-tests: New file.
31815         * MODULES.html.sh (Unicode string functions): Add the new modules.
31816
31817 2007-07-06  Bruno Haible  <bruno@clisp.org>
31818
31819         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31820
31821 2007-07-06  Bruno Haible  <bruno@clisp.org>
31822
31823         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31824         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31825         includes <cygwin/sys_time.h> which includes <sys/select.h> which
31826         include <sys/time.h>.
31827         Reported by Eric Blake.
31828
31829 2007-07-06  Eric Blake  <ebb9@byu.net>
31830
31831         Fix testing canonicalize on cygwin.
31832         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31833         Revert patch from 2007-06-19.
31834         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31835         canonicalize module is also in use.
31836         * tests/test-canonicalize.c: New file.
31837         * tests/test-canonicalize.sh: Likewise.
31838         * modules/canonicalize-tests: Likewise.
31839
31840 2007-07-06  Jim Meyering  <jim@meyering.net>
31841
31842         * lib/getugroups.c (getugroups): Detect getgrent failure.
31843         Adjust comment to reflect reality: this function may return -1.
31844
31845 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31846
31847         * build-aux/bootstrap (TP_URL,get_translations): Update to use
31848         the new TP address.
31849         (usage): Fix typo
31850         (gnulib_mk): New variable.
31851
31852 2007-07-05  Jim Meyering  <jim@meyering.net>
31853
31854         Don't let endgrent clobber errno, no matter how improbable.
31855         * lib/getugroups.c (getugroups): Save and restore errno around
31856         endgrent call.
31857
31858         Close the group DB even when failing with 2^31 or more members.
31859         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31860
31861 2007-07-04  Jim Meyering  <jim@meyering.net>
31862
31863         * lib/getugroups.h: New file.
31864         * lib/getugroups.c: Include "getugroups.h".
31865         Remove uses of "register" keyword.
31866         Move local variable, "cp", down into scope where used.
31867         Give "username" parameter the "const" attribute.
31868         * modules/getugroups (Files): Add lib/getugroups.h
31869
31870 2007-07-04  Karl Berry  <karl@gnu.org>
31871
31872         * MODULES.html.sh (func_all_modules): Complete rename of
31873         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31874
31875 2007-07-02  Bruno Haible  <bruno@clisp.org>
31876
31877         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31878         mode, when inttypes.h comes from gnulib.
31879         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31880
31881 2007-07-02  Simon Josefsson  <simon@josefsson.org>
31882
31883         * NEWS: Mention lgpl module name change.
31884
31885         * modules/lgpl-2.1: Renamed from lgpl.
31886
31887         * NEWS: Mention gpl module name change.
31888
31889         * modules/gpl-3.0: New file, based on gpl-2.0.
31890
31891         * modules/gpl-2.0: Renamed from gpl.
31892
31893         * modules/gpl: Fix filename, doc/gpl.texi is now found at
31894         doc/gpl-2.0.texi.
31895
31896 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
31897
31898         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31899         #define __STDC_LIMIT_MACROS temporarily while including
31900         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31901         Problem reported by Joel E. Denny in
31902         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31903
31904 2007-07-01  Bruno Haible  <bruno@clisp.org>
31905
31906         * lib/unistdio.h: New file.
31907         * lib/unistdio/u-asnprintf.h: New file.
31908         * lib/unistdio/u-asprintf.h: New file.
31909         * lib/unistdio/u-printf-args.c: New file.
31910         * lib/unistdio/u-printf-args.h: New file.
31911         * lib/unistdio/u-printf-parse.h: New file.
31912         * lib/unistdio/u-snprintf.h: New file.
31913         * lib/unistdio/u-sprintf.h: New file.
31914         * lib/unistdio/u-vasprintf.h: New file.
31915         * lib/unistdio/u-vsnprintf.h: New file.
31916         * lib/unistdio/u-vsprintf.h: New file.
31917         * lib/unistdio/ulc-asnprintf.c: New file.
31918         * lib/unistdio/ulc-asprintf.c: New file.
31919         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31920         * lib/unistdio/ulc-printf-parse.c: New file.
31921         * lib/unistdio/ulc-snprintf.c: New file.
31922         * lib/unistdio/ulc-sprintf.c: New file.
31923         * lib/unistdio/ulc-vasnprintf.c: New file.
31924         * lib/unistdio/ulc-vasprintf.c: New file.
31925         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31926         * lib/unistdio/ulc-vsnprintf.c: New file.
31927         * lib/unistdio/ulc-vsprintf.c: New file.
31928         * lib/unistdio/u8-asnprintf.c: New file.
31929         * lib/unistdio/u8-asprintf.c: New file.
31930         * lib/unistdio/u8-printf-parse.c: New file.
31931         * lib/unistdio/u8-snprintf.c: New file.
31932         * lib/unistdio/u8-sprintf.c: New file.
31933         * lib/unistdio/u8-vasnprintf.c: New file.
31934         * lib/unistdio/u8-vasprintf.c: New file.
31935         * lib/unistdio/u8-vsnprintf.c: New file.
31936         * lib/unistdio/u8-vsprintf.c: New file.
31937         * lib/unistdio/u8-u8-asnprintf.c: New file.
31938         * lib/unistdio/u8-u8-asprintf.c: New file.
31939         * lib/unistdio/u8-u8-snprintf.c: New file.
31940         * lib/unistdio/u8-u8-sprintf.c: New file.
31941         * lib/unistdio/u8-u8-vasnprintf.c: New file.
31942         * lib/unistdio/u8-u8-vasprintf.c: New file.
31943         * lib/unistdio/u8-u8-vsnprintf.c: New file.
31944         * lib/unistdio/u8-u8-vsprintf.c: New file.
31945         * lib/unistdio/u16-asnprintf.c: New file.
31946         * lib/unistdio/u16-asprintf.c: New file.
31947         * lib/unistdio/u16-printf-parse.c: New file.
31948         * lib/unistdio/u16-snprintf.c: New file.
31949         * lib/unistdio/u16-sprintf.c: New file.
31950         * lib/unistdio/u16-vasnprintf.c: New file.
31951         * lib/unistdio/u16-vasprintf.c: New file.
31952         * lib/unistdio/u16-vsnprintf.c: New file.
31953         * lib/unistdio/u16-vsprintf.c: New file.
31954         * lib/unistdio/u16-u16-asnprintf.c: New file.
31955         * lib/unistdio/u16-u16-asprintf.c: New file.
31956         * lib/unistdio/u16-u16-snprintf.c: New file.
31957         * lib/unistdio/u16-u16-sprintf.c: New file.
31958         * lib/unistdio/u16-u16-vasnprintf.c: New file.
31959         * lib/unistdio/u16-u16-vasprintf.c: New file.
31960         * lib/unistdio/u16-u16-vsnprintf.c: New file.
31961         * lib/unistdio/u16-u16-vsprintf.c: New file.
31962         * lib/unistdio/u32-asnprintf.c: New file.
31963         * lib/unistdio/u32-asprintf.c: New file.
31964         * lib/unistdio/u32-printf-parse.c: New file.
31965         * lib/unistdio/u32-snprintf.c: New file.
31966         * lib/unistdio/u32-sprintf.c: New file.
31967         * lib/unistdio/u32-vasnprintf.c: New file.
31968         * lib/unistdio/u32-vasprintf.c: New file.
31969         * lib/unistdio/u32-vsnprintf.c: New file.
31970         * lib/unistdio/u32-vsprintf.c: New file.
31971         * lib/unistdio/u32-u32-asnprintf.c: New file.
31972         * lib/unistdio/u32-u32-asprintf.c: New file.
31973         * lib/unistdio/u32-u32-snprintf.c: New file.
31974         * lib/unistdio/u32-u32-sprintf.c: New file.
31975         * lib/unistdio/u32-u32-vasnprintf.c: New file.
31976         * lib/unistdio/u32-u32-vasprintf.c: New file.
31977         * lib/unistdio/u32-u32-vsnprintf.c: New file.
31978         * lib/unistdio/u32-u32-vsprintf.c: New file.
31979         * tests/unistdio/test-ulc-asnprintf1.c: New file.
31980         * tests/unistdio/test-ulc-asnprintf1.h: New file.
31981         * tests/unistdio/test-ulc-printf1.h: New file.
31982         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31983         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31984         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31985         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31986         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31987         * tests/unistdio/test-ulc-vasprintf1.c: New file.
31988         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31989         * tests/unistdio/test-ulc-vsprintf1.c: New file.
31990         * tests/unistdio/test-u8-asnprintf1.c: New file.
31991         * tests/unistdio/test-u8-asnprintf1.h: New file.
31992         * tests/unistdio/test-u8-printf1.h: New file.
31993         * tests/unistdio/test-u8-vasnprintf1.c: New file.
31994         * tests/unistdio/test-u8-vasnprintf2.c: New file.
31995         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31996         * tests/unistdio/test-u8-vasnprintf3.c: New file.
31997         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31998         * tests/unistdio/test-u8-vasprintf1.c: New file.
31999         * tests/unistdio/test-u8-vsnprintf1.c: New file.
32000         * tests/unistdio/test-u8-vsprintf1.c: New file.
32001         * tests/unistdio/test-u16-asnprintf1.c: New file.
32002         * tests/unistdio/test-u16-asnprintf1.h: New file.
32003         * tests/unistdio/test-u16-printf1.h: New file.
32004         * tests/unistdio/test-u16-vasnprintf1.c: New file.
32005         * tests/unistdio/test-u16-vasnprintf2.c: New file.
32006         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
32007         * tests/unistdio/test-u16-vasnprintf3.c: New file.
32008         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
32009         * tests/unistdio/test-u16-vasprintf1.c: New file.
32010         * tests/unistdio/test-u16-vsnprintf1.c: New file.
32011         * tests/unistdio/test-u16-vsprintf1.c: New file.
32012         * tests/unistdio/test-u32-asnprintf1.c: New file.
32013         * tests/unistdio/test-u32-asnprintf1.h: New file.
32014         * tests/unistdio/test-u32-printf1.h: New file.
32015         * tests/unistdio/test-u32-vasnprintf1.c: New file.
32016         * tests/unistdio/test-u32-vasnprintf2.c: New file.
32017         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
32018         * tests/unistdio/test-u32-vasnprintf3.c: New file.
32019         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
32020         * tests/unistdio/test-u32-vasprintf1.c: New file.
32021         * tests/unistdio/test-u32-vsnprintf1.c: New file.
32022         * tests/unistdio/test-u32-vsprintf1.c: New file.
32023         * modules/unistdio/base: New file.
32024         * modules/unistdio/u-printf-args: New file.
32025         * modules/unistdio/ulc-asnprintf: New file.
32026         * modules/unistdio/ulc-asprintf: New file.
32027         * modules/unistdio/ulc-fprintf: New file.
32028         * modules/unistdio/ulc-printf-parse: New file.
32029         * modules/unistdio/ulc-snprintf: New file.
32030         * modules/unistdio/ulc-sprintf: New file.
32031         * modules/unistdio/ulc-vasnprintf: New file.
32032         * modules/unistdio/ulc-vasprintf: New file.
32033         * modules/unistdio/ulc-vfprintf: New file.
32034         * modules/unistdio/ulc-vsnprintf: New file.
32035         * modules/unistdio/ulc-vsprintf: New file.
32036         * modules/unistdio/u8-asnprintf: New file.
32037         * modules/unistdio/u8-asprintf: New file.
32038         * modules/unistdio/u8-printf-parse: New file.
32039         * modules/unistdio/u8-snprintf: New file.
32040         * modules/unistdio/u8-sprintf: New file.
32041         * modules/unistdio/u8-vasnprintf: New file.
32042         * modules/unistdio/u8-vasprintf: New file.
32043         * modules/unistdio/u8-vsnprintf: New file.
32044         * modules/unistdio/u8-vsprintf: New file.
32045         * modules/unistdio/u8-u8-asnprintf: New file.
32046         * modules/unistdio/u8-u8-asprintf: New file.
32047         * modules/unistdio/u8-u8-snprintf: New file.
32048         * modules/unistdio/u8-u8-sprintf: New file.
32049         * modules/unistdio/u8-u8-vasnprintf: New file.
32050         * modules/unistdio/u8-u8-vasprintf: New file.
32051         * modules/unistdio/u8-u8-vsnprintf: New file.
32052         * modules/unistdio/u8-u8-vsprintf: New file.
32053         * modules/unistdio/u16-asnprintf: New file.
32054         * modules/unistdio/u16-asprintf: New file.
32055         * modules/unistdio/u16-printf-parse: New file.
32056         * modules/unistdio/u16-snprintf: New file.
32057         * modules/unistdio/u16-sprintf: New file.
32058         * modules/unistdio/u16-vasnprintf: New file.
32059         * modules/unistdio/u16-vasprintf: New file.
32060         * modules/unistdio/u16-vsnprintf: New file.
32061         * modules/unistdio/u16-vsprintf: New file.
32062         * modules/unistdio/u16-u16-asnprintf: New file.
32063         * modules/unistdio/u16-u16-asprintf: New file.
32064         * modules/unistdio/u16-u16-snprintf: New file.
32065         * modules/unistdio/u16-u16-sprintf: New file.
32066         * modules/unistdio/u16-u16-vasnprintf: New file.
32067         * modules/unistdio/u16-u16-vasprintf: New file.
32068         * modules/unistdio/u16-u16-vsnprintf: New file.
32069         * modules/unistdio/u16-u16-vsprintf: New file.
32070         * modules/unistdio/u32-asnprintf: New file.
32071         * modules/unistdio/u32-asprintf: New file.
32072         * modules/unistdio/u32-printf-parse: New file.
32073         * modules/unistdio/u32-snprintf: New file.
32074         * modules/unistdio/u32-sprintf: New file.
32075         * modules/unistdio/u32-vasnprintf: New file.
32076         * modules/unistdio/u32-vasprintf: New file.
32077         * modules/unistdio/u32-vsnprintf: New file.
32078         * modules/unistdio/u32-vsprintf: New file.
32079         * modules/unistdio/u32-u32-asnprintf: New file.
32080         * modules/unistdio/u32-u32-asprintf: New file.
32081         * modules/unistdio/u32-u32-snprintf: New file.
32082         * modules/unistdio/u32-u32-sprintf: New file.
32083         * modules/unistdio/u32-u32-vasnprintf: New file.
32084         * modules/unistdio/u32-u32-vasprintf: New file.
32085         * modules/unistdio/u32-u32-vsnprintf: New file.
32086         * modules/unistdio/u32-u32-vsprintf: New file.
32087         * modules/unistdio/ulc-asnprintf-tests: New file.
32088         * modules/unistdio/ulc-vasnprintf-tests: New file.
32089         * modules/unistdio/ulc-vasprintf-tests: New file.
32090         * modules/unistdio/ulc-vsnprintf-tests: New file.
32091         * modules/unistdio/ulc-vsprintf-tests: New file.
32092         * modules/unistdio/u8-asnprintf-tests: New file.
32093         * modules/unistdio/u8-vasnprintf-tests: New file.
32094         * modules/unistdio/u8-vasprintf-tests: New file.
32095         * modules/unistdio/u8-vsnprintf-tests: New file.
32096         * modules/unistdio/u8-vsprintf-tests: New file.
32097         * modules/unistdio/u16-asnprintf-tests: New file.
32098         * modules/unistdio/u16-vasnprintf-tests: New file.
32099         * modules/unistdio/u16-vasprintf-tests: New file.
32100         * modules/unistdio/u16-vsnprintf-tests: New file.
32101         * modules/unistdio/u16-vsprintf-tests: New file.
32102         * modules/unistdio/u32-asnprintf-tests: New file.
32103         * modules/unistdio/u32-vasnprintf-tests: New file.
32104         * modules/unistdio/u32-vasprintf-tests: New file.
32105         * modules/unistdio/u32-vsnprintf-tests: New file.
32106         * modules/unistdio/u32-vsprintf-tests: New file.
32107         * MODULES.html.sh (Unicode string functions): Add the new modules.
32108
32109 2007-07-01  Bruno Haible  <bruno@clisp.org>
32110
32111         * lib/sprintf.c (sprintf): Limit the available length estimation,
32112         to avoid address wraparound.
32113         * lib/vsprintf.c (vsprintf): Likewise.
32114         * modules/sprintf-posix (Dependencies): Add stdint.
32115         * modules/vsprintf-posix (Dependencies): Likewise.
32116
32117 2007-07-01  Bruno Haible  <bruno@clisp.org>
32118
32119         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
32120         Windows PATH as well. Conservative double-quoting. Comments.
32121
32122 2007-07-01  Bruno Haible  <bruno@clisp.org>
32123             Eric Blake  <ebb9@byu.net>
32124             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32125
32126         * gnulib-tool (self_abspathname): Fix algorithm to cope with
32127         empty components in $PATH, denoting '.'.
32128
32129 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32130
32131         * gnulib-tool: Fix indentation.
32132         (func_create_megatestdir): Likewise.
32133         Report by Bruno Haible.
32134
32135 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32136
32137         Sync from Automake.
32138         * build-aux/gnupload: Fix shell portability issues with for loops.
32139         Report by Karl Berry.
32140
32141 2007-06-29  Simon Josefsson  <simon@josefsson.org>
32142
32143         * build-aux/maint.mk (POURL): Use translationproject.org.
32144
32145 2007-06-27  Simon Josefsson  <simon@josefsson.org>
32146             Bruno Haible  <bruno@clisp.org>
32147
32148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
32149         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
32150         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
32151         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
32152         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
32153
32154 2007-06-27  Bruno Haible  <bruno@clisp.org>
32155
32156         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
32157         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
32158
32159 2007-06-26  Karl Berry  <karl@gnu.org>
32160
32161         * MODULES.html.sh: remove xreadlink-with-size.
32162
32163 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32164
32165         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
32166         method that I hope also handles the double-include problem noted
32167         by Bruno Haible in
32168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
32169
32170 2007-06-23  Bruno Haible  <bruno@clisp.org>
32171
32172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32173         Don't let the 'mostlyclean' target fail if the last subdirectory could
32174         not be removed.
32175         Reported by Karl Berry.
32176
32177 2007-06-23  Bruno Haible  <bruno@clisp.org>
32178
32179         * gnulib-tool (echo): Add a speedier workaround for ksh.
32180         * tests/test-echo.sh: Likewise.
32181
32182 2007-06-23  Bruno Haible  <bruno@clisp.org>
32183
32184         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
32185         * tests/test-echo.sh: Likewise.
32186
32187 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32188
32189         * gnulib-tool (IFS): Initialize early, so we don't set it to
32190         empty later.
32191         (self_abspathname): Rewrite algorithm to set it, reindent.
32192         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
32193         (func_create_megatestdir): Merge some sed scripts.
32194
32195 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32196
32197         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
32198         exposed by Sun Studio 11 cc on Solaris 8.
32199
32200 2007-06-22  Bruno Haible  <bruno@clisp.org>
32201
32202         * gnulib-tool (echo): Ensure the echo primitive does not interpret
32203         backslashes.
32204         * tests/test-echo.sh: New file.
32205
32206 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32207
32208         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
32209         simplify `sed_replace_build_aux' scripts, they are portable but
32210         echoing them with `echo' is not.
32211         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
32212
32213 2007-06-21  Karl Berry  <karl@gnu.org>
32214
32215         * config/srclist.txt: guess we can't handle the licenses via
32216         srclist at the moment.
32217
32218 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
32219
32220         * MODULES.html.sh: Add include_next.
32221         * modules/include_next: New file.
32222
32223 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
32224
32225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
32226         INCLUDE_NEXT.
32227         (gl_CHECK_NEXT_HEADERS): New macro.
32228         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
32229         the obsolescent gl_ABSOLUTE_HEADER.
32230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
32231         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
32232         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
32233         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32234         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32235         * m4/math_h.m4 (gl_MATH_H): Likewise.
32236         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32237         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32238         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32239         * m4/stdint.m4 (gl_STDINT_H): Likewise.
32240         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32241         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32242         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32243         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32244         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32245         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32246         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
32247         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32248         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
32249         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32250         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32251         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32252         * m4/inttypes.m4 (gl_INTTYPES_H): Define
32253         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
32254         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
32255         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
32256         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
32257         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
32258         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
32259         * lib/float_.h: Likewise.
32260         * lib/inttypes_.h: Likewise.
32261         * lib/math_.h: Likewise.
32262         * lib/search_.h: Likewise.
32263         * lib/signal_.h: Likewise.
32264         * lib/stdint_.h: Likewise.
32265         * lib/stdio_.h: Likewise.
32266         * lib/stdlib_.h: Likewise.
32267         * lib/string_.h: Likewise.
32268         * lib/sys_stat_.h: Likewise.
32269         * lib/sys_time_.h: Likewise.
32270         * lib/time_.h: Likewise.
32271         * lib/unistd_.h: Likewise.
32272         * lib/wchar_.h: Likewise.
32273         * lib/wctype_.h: Likewise.
32274         * lib/dirent_.h: Likewise.
32275         * lib/iconv_.h: Likewise.
32276         * lib/locale_.h: Likewise.
32277         * lib/netinet_in_.h: Likewise.
32278         * lib/sys_select_.h: Likewise.
32279         * lib/sys_socket_.h: Likewise.
32280         * lib/sysexits_.h: Likewise.
32281         * modules/fcntl (Depends-on): Depend on include_next, not
32282         absolute_header.
32283         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
32284         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
32285         * modules/fchdir: Likewise.
32286         * modules/float: Likewise.
32287         * modules/iconv_open: Likewise.
32288         * modules/inttypes: Likewise.
32289         * modules/locale: Likewise.
32290         * modules/math: Likewise.
32291         * modules/netinet_in: Likewise.
32292         * modules/search: Likewise.
32293         * modules/signal: Likewise.
32294         * modules/stdint: Likewise.
32295         * modules/stdio: Likewise.
32296         * modules/stdlib: Likewise.
32297         * modules/string: Likewise.
32298         * modules/sys_select: Likewise.
32299         * modules/sys_socket: Likewise.
32300         * modules/sys_stat: Likewise.
32301         * modules/sys_time: Likewise.
32302         * modules/sysexits: Likewise.
32303         * modules/time: Likewise.
32304         * modules/unistd: Likewise.
32305         * modules/wchar: Likewise.
32306         * modules/wctype: Likewise.
32307         * modules/sys_stat: Change maintainer to "all".
32308         * modules/unistd: Likewise.
32309
32310 2007-06-20  Karl Berry  <karl@gnu.org>
32311
32312         * config/srclist.txt: track www changes in license files.
32313
32314 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
32315
32316         * build-aux/bootstrap: Remove stray dot.
32317         Make sure build_aux settings are honored when linking
32318         gnulib_extra_files.
32319
32320 2007-06-19  Eric Blake  <ebb9@byu.net>
32321
32322         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
32323         Allow compilation on cygwin.
32324
32325 2007-06-19  Jim Meyering  <jim@meyering.net>
32326
32327         xreadlink-with-size: Remove module.  No longer used.
32328         Ex-callers now use xreadlink or mreadlink-with-size.
32329         * modules/xreadlink-with-size: Remove module.
32330         * lib/xreadlink-with-size.c: Remove file.
32331         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
32332         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
32333         just before the function definition *is* accurate.
32334
32335         Eliminate one way canonicalize_filename_mode could exit.
32336         * lib/canonicalize.c (canonicalize_filename_mode):
32337         Use mreadlink_with_size, not xreadlink_with_size.
32338
32339 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
32340
32341         Detect porting problems to FreeBSD/arm, which has time_t wider than
32342         long int.  Original problem reported for GNU diff by Xin Li in
32343         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
32344         * modules/getdate (Depends-on): Add intprops, verify.
32345         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
32346         is an integer type no wider than long int.
32347
32348 2007-06-18  Jim Meyering  <jim@meyering.net>
32349
32350         New module: mreadlink-with-size.
32351         * MODULES.html.sh: Add mreadlink-with-size.
32352         * modules/mreadlink-with-size: New module
32353         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
32354         not xreadlink-with-size.
32355         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
32356
32357 2007-06-16  Bruno Haible  <bruno@clisp.org>
32358
32359         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
32360         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
32361         Reported by Gary V. Vaughan <gary@gnu.org>.
32362
32363 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
32364
32365         Revamp lchown so that it lives in unistd.h where it belongs.
32366         * lib/lchown.h: Remove.
32367         * lib/dirchownmod.c: Don't include lib/lchown.h.
32368         * lib/fchownat.c: Likewise.
32369         * lib/openat.c: Likewise.
32370         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
32371         does not follow symlinks.
32372         (EOPNOTSUPP): Define if not defined.
32373         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
32374         is defined to 0.
32375         (lchown): New decl.
32376         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
32377         Do not check for lchown decl.
32378         Set REPLACE_LCHOWN.
32379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
32380         REPLACE_LCHOWN.
32381         * modules/chown: Make it clear it follows symlinks.
32382         * modules/lchown: Make it clear it doesn't follow symlinks.
32383         (Files): Remove lib/lchown.h
32384         (Depends-on): Add unistd.
32385         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
32386         (Include): Include <unistd.h>, not "lchown.h".
32387         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
32388         REPLACE_LCHOWN.
32389
32390 2007-06-15  Jim Meyering  <jim@meyering.net>
32391
32392         Change license (GPL to LGPL) of fsusage and dependents.
32393         * modules/fsusage (License): Change to LGPL.
32394         * modules/full-read (License): Likewise.
32395         * modules/full-write (License): Likewise.
32396         * modules/safe-read (License): Likewise.
32397         * modules/safe-write (License): Likewise.
32398
32399 2007-06-14  Ben Pfaff  <blp@gnu.org>
32400
32401         Missing part of allocsa -> malloca transition.
32402         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
32403         gl_MALLOCA.
32404
32405 2007-06-12  Bruno Haible  <bruno@clisp.org>
32406
32407         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
32408         to ia64, x86_64, i386.
32409         Reported by Eric Blake.
32410
32411 2007-06-12  Bruno Haible  <bruno@clisp.org>
32412
32413         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
32414         cross-compiling to x86_64.
32415
32416 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
32417
32418         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
32419         glitch reported by Ralf Wildenhues in
32420         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
32421
32422         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
32423         Vin Shelton.
32424
32425 2007-06-11  Bruno Haible  <bruno@clisp.org>
32426
32427         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
32428         replacement string.
32429         Reported by Eric Blake.
32430
32431 2007-06-10  Bruno Haible  <bruno@clisp.org>
32432
32433         Prepare vasnprintf code for use with Unicode strings.
32434         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
32435         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
32436         TYPE_U32_STRING.
32437         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
32438         a_u32_string variants.
32439         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32440         * lib/printf-args.c: Don't include config.h and the specification
32441         header if PRINTF_FETCHARGS is already defined.
32442         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
32443         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
32444         TYPE_U16_STRING, TYPE_U32_STRING.
32445         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
32446         u16_directive, u16_directives, u32_directive, u32_directives): New
32447         types.
32448         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32449         New declarations.
32450         * lib/printf-parse.c: Don't include config.h and the specification
32451         header if PRINTF_PARSE is already defined. Eliminate the set of
32452         parameters for WIDE_CHAR_VERSION; the user of this file must provide
32453         them now. Include c-ctype.h.
32454         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32455         directive and CHAR_T_ONLY_ASCII.
32456         * lib/vasnprintf.c: Don't include config.h and the specification header
32457         if VASNPRINTF is already defined.
32458         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32459         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32460         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32461         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32462         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32463         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32464         code accordingly.
32465         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32466         pad_ourselves also in this case, with the 'c' and 's' directives, and
32467         with a different notion of "width".
32468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32469
32470 2007-06-10  Bruno Haible  <bruno@clisp.org>
32471
32472         * modules/unistr/u32-mbsnlen: New file.
32473         * lib/unistr/u32-mbsnlen.c: New file.
32474
32475         * modules/unistr/u16-mbsnlen: New file.
32476         * lib/unistr/u16-mbsnlen.c: New file.
32477
32478         * modules/unistr/u8-mbsnlen: New file.
32479         * lib/unistr/u8-mbsnlen.c: New file.
32480
32481         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32482         declarations.
32483
32484 2007-06-10  Bruno Haible  <bruno@clisp.org>
32485
32486         * lib/string_.h (mbsnlen): New declaration.
32487         * lib/mbsnlen.c: New file.
32488         * m4/mbsnlen.m4: New file.
32489         * modules/mbsnlen: New file.
32490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32491         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32492         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32493
32494 2007-06-10  Bruno Haible  <bruno@clisp.org>
32495
32496         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32497
32498 2007-06-10  Bruno Haible  <bruno@clisp.org>
32499
32500         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32501         * lib/mbuiter.h: Likewise.
32502
32503 2007-06-10  Bruno Haible  <bruno@clisp.org>
32504
32505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32506         declaration.
32507
32508 2007-06-10  Karl Berry  <karl@gnu.org>
32509
32510         * config/srclist.txt: remove gettext entries, Bruno prefers
32511         to update individually.
32512
32513 2007-06-10  Bruno Haible  <bruno@clisp.org>
32514
32515         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32516         'maxlen'. Ensure only length + width bytes are allocated, not
32517         length + 1 + width.
32518
32519 2007-06-09  Bruno Haible  <bruno@clisp.org>
32520
32521         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32522         (CHAR_T): Remove macro.
32523         (VASNPRINTF): Update.
32524
32525 2007-06-09  Bruno Haible  <bruno@clisp.org>
32526
32527         * MODULES.html.sh (Unicode string functions): Add the new modules.
32528
32529         * modules/uniconv/u32-conv-to-enc: New file.
32530         * lib/uniconv/u32-conv-to-enc.c: New file.
32531         * modules/uniconv/u32-conv-to-enc-tests: New file.
32532         * tests/uniconv/test-u32-conv-to-enc.c: New file.
32533
32534         * modules/uniconv/u16-conv-to-enc: New file.
32535         * lib/uniconv/u16-conv-to-enc.c: New file.
32536         * lib/uniconv/u-conv-to-enc.h: New file.
32537         * modules/uniconv/u16-conv-to-enc-tests: New file.
32538         * tests/uniconv/test-u16-conv-to-enc.c: New file.
32539
32540         * modules/uniconv/u8-conv-to-enc: New file.
32541         * lib/uniconv/u8-conv-to-enc.c: New file.
32542         * modules/uniconv/u8-conv-to-enc-tests: New file.
32543         * tests/uniconv/test-u8-conv-to-enc.c: New file.
32544
32545         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32546         u32_conv_to_encoding): New declarations.
32547
32548 2007-06-09  Bruno Haible  <bruno@clisp.org>
32549
32550         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32551
32552 2007-06-09  Bruno Haible  <bruno@clisp.org>
32553
32554         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32555         * modules/malloca: Renamed from modules/allocsa, updated.
32556         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32557         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32558         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32559         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32560         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32561         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32562         * modules/xmalloca: Renamed from modules/xallocsa, updated.
32563         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32564         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32565         * modules/c-strcasestr (Depends-on): Update.
32566         * lib/c-strcasestr.c: Update.
32567         * modules/c-strstr (Depends-on): Update.
32568         * lib/c-strstr.c: Update.
32569         * modules/canonicalize-lgpl (Depends-on): Update.
32570         * lib/canonicalize-lgpl.c: Update.
32571         * modules/clean-temp (Depends-on): Update.
32572         * lib/clean-temp.c: Update.
32573         * modules/csharpcomp (Depends-on): Update.
32574         * lib/csharpcomp.c: Update.
32575         * modules/csharpexec (Depends-on): Update.
32576         * lib/csharpexec.c: Update.
32577         * modules/javacomp (Depends-on): Update.
32578         * lib/javacomp.c: Update.
32579         * modules/javaexec (Depends-on): Update.
32580         * lib/javaexec.c: Update.
32581         * modules/mbscasestr (Depends-on): Update.
32582         * lib/mbscasestr.c: Update.
32583         * modules/mbsstr (Depends-on): Update.
32584         * lib/mbsstr.c: Update.
32585         * modules/setenv (Depends-on): Update.
32586         * lib/setenv.c: Update.
32587         * modules/strcasestr (Depends-on): Update.
32588         * lib/strcasestr.c: Update.
32589         * modules/striconveha (Depends-on): Update.
32590         * lib/striconveha.c: Update.
32591         * modules/relocatable-prog-wrapper (Files): Update.
32592         * lib/relocwrapper.c: Update.
32593         * build-aux/install-reloc: Update.
32594         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32595
32596 2007-06-08  Bruno Haible  <bruno@clisp.org>
32597
32598         Port to uClibc.
32599         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32600         * lib/fpurge.c (fpurge): Likewise.
32601         * lib/freading.c (freading): Likewise.
32602         * lib/fseeko.c (rpl_fseeko): Likewise.
32603         * lib/fseterr.c (fseterr): Likewise.
32604         * lib/fwriting.c (fwriting): Likewise.
32605         * tests/test-fflush.c (main): Avoid a failure on uClibc.
32606
32607 2007-06-08  Bruno Haible  <bruno@clisp.org>
32608
32609         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32610         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32611         * modules/gettext (Files): Add m4/intlmacosx.m4.
32612
32613 2007-06-07  Bruno Haible  <bruno@clisp.org>
32614
32615         * modules/localename-tests: New file.
32616         * tests/test-localename.c: New file.
32617
32618         New module 'localename'.
32619         * lib/localename.h: New file.
32620         * lib/localename.c: New file, from GNU gettext.
32621         * m4/localename.m4: New file.
32622         * modules/localename: New file.
32623
32624 2007-06-07  Bruno Haible  <bruno@clisp.org>
32625
32626         Work around the lack of <wchar.h> on some builds of uClibc.
32627         * doc/headers/wchar.texi: Update.
32628         * lib/wchar_.h: Include <wchar.h> only if it exists.
32629         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32630         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32631         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32632         doesn't exist.
32633         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32634         * modules/mbfile (Depends-on): Add wchar.
32635         * modules/mbiter (Depends-on): Likewise.
32636         * modules/mbuiter (Depends-on): Likewise.
32637         Reported by Simon Josefsson.
32638
32639 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
32640
32641         Work around problem reported by Steven M. Schweda in
32642         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32643         Tru64 5.1B with the Compaq compiler environment installed declares
32644         an 'isblank' function but does not define it in the C library.
32645         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32646         * lib/regex_internal.h (isblank): Likewise.
32647         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32648         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32649
32650 2007-06-05  Bruno Haible  <bruno@clisp.org>
32651
32652         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32653         ia64.
32654         * modules/printf-safe: New file.
32655         * modules/fprintf-posix (Depends-on): Add printf-safe.
32656         * modules/printf-posix (Depends-on): Likewise.
32657         * modules/snprintf-posix (Depends-on): Likewise.
32658         * modules/sprintf-posix (Depends-on): Likewise.
32659         * modules/vasnprintf-posix (Depends-on): Likewise.
32660         * modules/vasprintf-posix (Depends-on): Likewise.
32661         * modules/vfprintf-posix (Depends-on): Likewise.
32662         * modules/vprintf-posix (Depends-on): Likewise.
32663         * modules/vsnprintf-posix (Depends-on): Likewise.
32664         * modules/vsprintf-posix (Depends-on): Likewise.
32665         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32666         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32667         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32668         "no" on i386, x86_64, ia64.
32669         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32670         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32671         on i386, x86_64, ia64.
32672         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32673         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32674         on i386, x86_64, ia64.
32675         * tests/test-vasnprintf-posix.c: Include float.h.
32676         (LDBL80_WORDS): New macro.
32677         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32678         on i386, x86_64, ia64.
32679         * tests/test-vasprintf-posix.c: Include float.h.
32680         (LDBL80_WORDS): New macro.
32681         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32682         on i386, x86_64, ia64.
32683         * tests/test-snprintf-posix.c: Include float.h.
32684         * tests/test-sprintf-posix.c: Likewise.
32685         * tests/test-vsnprintf-posix.c: Likewise.
32686         * tests/test-vsprintf-posix.c: Likewise.
32687
32688 2007-06-05  Bruno Haible  <bruno@clisp.org>
32689
32690         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32691         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32692         non-IEEE numbers on i386, x86_64, ia64.
32693         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32694         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32695         * tests/test-isnanl.h: Include float.h.
32696         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32697
32698 2007-06-05  Bruno Haible  <bruno@clisp.org>
32699
32700         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32701         also the %a / %A. Handle the %a / %A code before this extra handling.
32702
32703 2007-06-05  Bruno Haible  <bruno@clisp.org>
32704
32705         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32706         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32707
32708 2007-06-05  Bruno Haible  <bruno@clisp.org>
32709
32710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32711         typo in variable name.
32712
32713 2007-06-05  Eric Blake  <ebb9@byu.net>
32714
32715         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32716         Reported by Simon Josefsson.
32717
32718 2007-06-04  Bruno Haible  <bruno@clisp.org>
32719
32720         Avoid test failures on some PowerPC platforms.
32721         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32722         Define differently for PowerPC.
32723         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32724         Reported by Gary V. Vaughan <gary@gnu.org>.
32725
32726 2007-06-02  Bruno Haible  <bruno@clisp.org>
32727
32728         Fix test-stdint failure on FreeBSD/ia64.
32729         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32730         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32731         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32732         * doc/headers/stdint.texi: Update.
32733
32734 2007-06-01  Bruno Haible  <bruno@clisp.org>
32735
32736         * tests/test-binary-io.c (main): Pass a third argument to open().
32737         Reported by Gary V. Vaughan <gary@gnu.org>.
32738
32739 2007-06-01  Bruno Haible  <bruno@clisp.org>
32740
32741         * doc/functions/frexpl.texi: Update for mingw.
32742
32743 2007-06-01  Bruno Haible  <bruno@clisp.org>
32744
32745         * tests/test-lseek.c (main): Disable test of errno for invalid third
32746         argument.
32747         * doc/functions/lseek.texi: Update.
32748         Reported by Gary V. Vaughan <gary@gnu.org>.
32749
32750 2007-05-28  Bruno Haible  <bruno@clisp.org>
32751
32752         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32753
32754 2007-05-31  Eric Blake  <ebb9@byu.net>
32755
32756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32757         cross compiling.
32758
32759 2007-05-30  Eric Blake  <ebb9@byu.net>
32760         and Bruno Haible  <bruno@clisp.org>
32761
32762         Work around mingw test failures exposed by m4-1.4.9b.
32763         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32764         * tests/test-unistd.c: Disable uid_t and git_t tests for the
32765         moment.
32766
32767 2007-05-30  Bruno Haible  <bruno@clisp.org>
32768
32769         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32770         assuming that they are closed. Needed on HP-UX 11.
32771
32772 2007-05-29  Bruno Haible  <bruno@clisp.org>
32773
32774         Fix a problem with #include_next.
32775         * lib/dirent_.h: Split the double-inclusion guard.
32776         * lib/fcntl_.h: Likewise.
32777         * lib/float_.h: Likewise.
32778         * lib/iconv_.h: Likewise.
32779         * lib/inttypes_.h: Likewise.
32780         * lib/locale_.h: Likewise.
32781         * lib/math_.h: Likewise.
32782         * lib/netinet_in_.h: Likewise.
32783         * lib/search_.h: Likewise.
32784         * lib/signal_.h: Likewise.
32785         * lib/stdint_.h: Likewise.
32786         * lib/stdio_.h: Likewise.
32787         * lib/stdlib_.h: Likewise.
32788         * lib/string_.h: Likewise.
32789         * lib/sys_select_.h: Likewise.
32790         * lib/sys_socket_.h: Likewise.
32791         * lib/sys_stat_.h: Likewise.
32792         * lib/sys_time_.h: Likewise.
32793         * lib/sysexits_.h: Likewise.
32794         * lib/time_.h: Likewise.
32795         * lib/unistd_.h: Likewise.
32796         * lib/wchar_.h: Likewise.
32797         * lib/wctype_.h: Likewise.
32798
32799 2007-05-29  Bruno Haible  <bruno@clisp.org>
32800
32801         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32802         for the moment.
32803
32804 2007-05-29  Bruno Haible  <bruno@clisp.org>
32805
32806         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32807         invocation.
32808         Reported by Eric Blake.
32809
32810 2007-05-29  Bruno Haible  <bruno@clisp.org>
32811
32812         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32813         compiling case.
32814
32815 2007-05-29  Eric Blake  <ebb9@byu.net>
32816             Bruno Haible  <bruno@clisp.org>
32817
32818         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32819         cross compiles.
32820
32821 2007-05-28  Eric Blake  <ebb9@byu.net>
32822
32823         * modules/closein-tests (test_closein_LDADD): Support test on
32824         cygwin with libtool.
32825
32826 2007-05-28  Bruno Haible  <bruno@clisp.org>
32827
32828         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32829         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32830         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32831         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32832         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32833         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32834         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32835         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32836         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32837
32838 2007-05-28  Eric Blake  <ebb9@byu.net>
32839
32840         Unconditionally include <config.h> in unit tests.
32841         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32842         * tests/test-allocsa.c, tests/test-arcfour.c,
32843         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32844         tests/test-array_list.c, tests/test-array_oset.c,
32845         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32846         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32847         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32848         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32849         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32850         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32851         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32852         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32853         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32854         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32855         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32856         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32857         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32858         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32859         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32860         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32861         test-md5.c, test-memmem.c, test-printf-posix.c,
32862         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32863         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32864         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32865         test-strcasestr.c, test-striconv.c, test-striconveh.c,
32866         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32867         test-vasnprintf-posix2.c, test-vasnprintf.c,
32868         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32869         test-vfprintf-posix.c, test-vprintf-posix.c,
32870         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32871         test-xvasprintf.c: Likewise.
32872
32873 2007-05-28  Bruno Haible  <bruno@clisp.org>
32874
32875         * gnulib-tool (func_import): Remember the --with-tests command-line
32876         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32877         Reported by Eric Blake.
32878
32879 2007-05-28  Bruno Haible  <bruno@clisp.org>
32880
32881         * modules/ftell-tests: New file.
32882         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32883         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32884
32885         * lib/ftell.c: New file.
32886         * modules/ftell: New file.
32887         * m4/ftell.m4: New file.
32888         * doc/functions/ftell.texi: Update.
32889         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32890         REPLACE_FTELL.
32891         * lib/stdio_.h (rpl_ftell): New declaration.
32892         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32893         REPLACE_FTELL.
32894
32895 2007-05-28  Eric Blake  <ebb9@byu.net>
32896
32897         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32898
32899 2007-05-28  Bruno Haible  <bruno@clisp.org>
32900
32901         * modules/fseek-tests: New file.
32902         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32903         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32904
32905         * lib/fseek.c: New file.
32906         * modules/fseek: New file.
32907         * m4/fseek.m4: New file.
32908         * doc/functions/fseek.texi: Update.
32909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32910         REPLACE_FSEEK.
32911         * lib/stdio_.h (rpl_fseek): New declaration.
32912         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32913         REPLACE_FSEEK.
32914
32915 2007-05-28  Bruno Haible  <bruno@clisp.org>
32916
32917         * lib/stdio_.h (fflush): More comments.
32918
32919 2007-05-28  Bruno Haible  <bruno@clisp.org>
32920
32921         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32922         runtime test.
32923
32924 2007-05-28  Eric Blake  <ebb9@byu.net>
32925
32926         Improve lseek module.
32927         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32928         * lib/unistd_.h (lseek): Scale back link warning message.
32929         * tests/test-lseek.c: Beef up test.
32930         * tests/test-lseek.sh: Exercise more facets of lseek.
32931         Reported by Bruno Haible.
32932
32933 2007-05-28  Bruno Haible  <bruno@clisp.org>
32934
32935         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32936         to define.
32937
32938 2007-05-27  Bruno Haible  <bruno@clisp.org>
32939
32940         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32941
32942 2007-05-27  Bruno Haible  <bruno@clisp.org>
32943
32944         * modules/openmp: New file.
32945         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32946         Noah Misch.
32947
32948 2007-05-26  Bruno Haible  <bruno@clisp.org>
32949
32950         * modules/chdir-long (Depends-on): Add fchdir.
32951         * modules/chdir-safer (Depends-on): Likewise.
32952         * modules/fts (Depends-on): Likewise.
32953         * modules/fts-lgpl (Depends-on): Likewise.
32954         * modules/openat (Depends-on): Likewise.
32955         * modules/savewd (Depends-on): Likewise.
32956
32957 2007-05-24  Eric Blake  <ebb9@byu.net>
32958
32959         Fix lseek on mingw.
32960         * modules/lseek: New module.
32961         * m4/lseek.m4: New file.
32962         * lib/lseek.c: New file.
32963         * modules/lseek-tests: New file.
32964         * tests/test-lseek.c: New file.
32965         * tests/test-lseek.sh: New file.
32966         * MODULES.html.sh: Document lseek module.
32967         * modules/fflush (Depends-on): Add lseek, fseeko.
32968         * modules/fseeko (Depends-on): Likewise.
32969         * modules/ftello (Depends-on): Likewise.
32970         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32971         broken.
32972         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32973         broken.
32974         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32975         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32976         * lib/ftello.c (rpl_ftello): Likewise.
32977         * tests/test-fseeko.c (main): Test this.
32978         * tests/test-fseeko.sh: Likewise.
32979         * tests/test-ftello.c (main): Likewise.
32980         * tests/test-ftello.sh: Likewise.
32981         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32982         implies replacing fseek.
32983         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32984         HAVE_FTELLO.
32985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32986         * modules/unistd (Makefile.am): Likewise.
32987         * lib/unistd_.h (lseek): Declare a replacement.
32988         * doc/functions/lseek.texi (lseek): Document this fix.
32989         * doc/functions/fseek.texi (fseek): Likewise.
32990         * doc/functions/ftell.texi (ftell): Likewise.
32991
32992 2007-05-24  Bruno Haible  <bruno@clisp.org>
32993
32994         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32995         in the printed representation of a NaN.
32996         * tests/test-vasprintf-posix.c (test_function): Likewise.
32997         * tests/test-snprintf-posix.h (test_function): Likewise.
32998         * tests/test-sprintf-posix.h (test_function): Likewise.
32999         Reported by Eric Blake.
33000
33001 2007-05-23  Eric Blake  <ebb9@byu.net>
33002
33003         Fix fseeko/ftello on cygwin 1.5.24.
33004         * doc/functions/fseeko.texi (fseeko): Document the fix.
33005         * doc/functions/ftello.texi (ftello): Document the fix.
33006         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
33007         * doc/functions/stdout.text (stdout): New file.
33008         * doc/functions/stderr.text (stderr): New file.
33009         * doc/gnulib.texi (Function Substitutes): Use new files.
33010         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
33011         prior to 1.7.0.
33012         * tests/test-ftello.c (main): Likewise for ftello.
33013         * tests/test-fseeko.sh: New file.
33014         * tests/test-ftello.sh: New file.
33015         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
33016         with seekable stdin.
33017         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
33018         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
33019         (gl_REPLACE_FSEEKO): New macro.
33020         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
33021         * modules/fseeko (Files): Distribute fseeko.c.
33022         * modules/ftello (Files): Distribute ftello.c.
33023         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
33024         mode.
33025         * lib/ftello.c (rpl_ftello): New file.
33026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
33027         fseeko, ftello.
33028         (gl_STDIN_LARGE_OFFSET): New macro.
33029         * modules/stdio (Makefile.am): Perform the replacement.
33030         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
33031
33032 2007-05-23  Bruno Haible  <bruno@clisp.org>
33033
33034         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
33035         GNULIB_POSIXCHECK is defined.
33036
33037 2007-05-21  Bruno Haible  <bruno@clisp.org>
33038
33039         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
33040         Check also the output for NaN arguments. When cross-compiling, guess
33041         no on IRIX.
33042         * lib/vasnprintf.c: Update comments.
33043         * tests/test-vasnprintf-posix.c (strisnan): New function.
33044         (test_function): Use it.
33045         * tests/test-vasprintf-posix.c (strisnan): New function.
33046         (test_function): Use it.
33047         * tests/test-snprintf-posix.h (strisnan): New function.
33048         (test_function): Use it.
33049         * tests/test-sprintf-posix.h (strisnan): New function.
33050         (test_function): Use it.
33051         Reported by Eric Blake.
33052
33053 2007-05-20  Bruno Haible  <bruno@clisp.org>
33054
33055         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
33056         numbers that fails on BeOS.
33057         * doc/functions/frexpl.texi: Update.
33058
33059 2007-05-20  Jim Meyering  <jim@meyering.net>
33060
33061         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
33062         forced upon us by glibc-2.6.
33063
33064 2007-05-20  Bruno Haible  <bruno@clisp.org>
33065
33066         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
33067         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
33068         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
33069         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
33070         NEED_PRINTF_INFINITE.
33071         (is_infinitel): New function.
33072         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
33073         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
33074         gl_PREREQ_VASNPRINTF_INFINITE.
33075         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
33076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33077         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
33078         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
33079         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
33080         gl_PREREQ_VASNPRINTF_INFINITE.
33081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33082         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33087         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33088         * doc/functions/fprintf.texi: Update.
33089         * doc/functions/printf.texi: Update.
33090         * doc/functions/snprintf.texi: Update.
33091         * doc/functions/sprintf.texi: Update.
33092         * doc/functions/vfprintf.texi: Update.
33093         * doc/functions/vprintf.texi: Update.
33094         * doc/functions/vsnprintf.texi: Update.
33095         * doc/functions/vsprintf.texi: Update.
33096
33097 2007-05-20  Bruno Haible  <bruno@clisp.org>
33098
33099         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
33100         was not found in libc.
33101         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33102
33103 2007-05-20  Bruno Haible  <bruno@clisp.org>
33104
33105         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33106         printed as "-nan" instead of "nan".
33107         * tests/test-vasprintf-posix.c (test_function): Likewise.
33108         * tests/test-snprintf-posix.h (test_function): Likewise.
33109         * tests/test-sprintf-posix.h (test_function): Likewise.
33110         Needed for HP-UX 11.
33111
33112 2007-05-20  Jim Meyering  <jim@meyering.net>
33113
33114         Fix buggy test for the fchownat-deref bug.
33115         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
33116         symlink required for the run-test.  Without it, this test would
33117         always declare that fchownat doesn't work, and client code would
33118         unnecessarily use the replacement function with fixed libc.
33119         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
33120         Reported by Greg Schafer.
33121
33122 2007-05-19  Bruno Haible  <bruno@clisp.org>
33123
33124         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
33125         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
33126         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
33127         Needed for IRIX 6.5 and Solaris 2.5.1.
33128
33129 2007-05-19  Bruno Haible  <bruno@clisp.org>
33130
33131         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
33132         (test_function): Skip tests involving -0.0 on platforms where
33133         -0.0 = 0.0.
33134         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
33135         (test_function): Skip tests involving -0.0 on platforms where
33136         -0.0 = 0.0.
33137         * tests/test-snprintf-posix.h (have_minus_zero): New function.
33138         (test_function): Skip tests involving -0.0 on platforms where
33139         -0.0 = 0.0.
33140         * tests/test-sprintf-posix.h (have_minus_zero): New function.
33141         (test_function): Skip tests involving -0.0 on platforms where
33142         -0.0 = 0.0.
33143         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
33144         tests.
33145         * tests/test-printf-posix.h (test_function): Likewise.
33146         * tests/test-printf-posix.output: Remove all -0.0 related results.
33147         Needed for IRIX 6.5.
33148
33149 2007-05-19  Bruno Haible  <bruno@clisp.org>
33150
33151         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
33152         printed as "nan0x7fffffff" instead of "nan".
33153         * tests/test-vasprintf-posix.c (test_function): Likewise.
33154         * tests/test-snprintf-posix.h (test_function): Likewise.
33155         * tests/test-sprintf-posix.h (test_function): Likewise.
33156         * tests/test-fprintf-posix.h (NaN): Remove macro.
33157         (test_function): Remove all NaN related tests.
33158         * tests/test-printf-posix.h (NaN): Remove macro.
33159         (test_function): Remove all NaN related tests.
33160         * tests/test-printf-posix.output: Remove all NaN related results.
33161         Needed for IRIX 6.5.
33162
33163 2007-05-19  Bruno Haible  <bruno@clisp.org>
33164
33165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
33166         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
33167
33168 2007-05-19  Bruno Haible  <bruno@clisp.org>
33169
33170         * lib/float_.h: New file.
33171         * m4/float_h.m4: New file.
33172         * modules/float: New file.
33173         * modules/isnanl (Dependencies): Add float.
33174         * modules/isnanl-nolibm (Dependencies): Likewise.
33175         * modules/mathl (Dependencies): Likewise.
33176         * modules/printf-frexpl (Dependencies): Likewise.
33177         * modules/signbit (Dependencies): Likewise.
33178         * modules/vasnprintf (Dependencies): Likewise.
33179         * doc/headers/float.texi: Update.
33180
33181 2007-05-19  Jim Meyering  <jim@meyering.net>
33182
33183         * lib/utimens.c (gl_futimens): Rename from futimens,
33184         now that glibc-2.6 declares futimens.
33185         * lib/utimens.h: Likewise.
33186
33187 2007-05-19  Bruno Haible  <bruno@clisp.org>
33188
33189         Avoid test failures on mingw.
33190         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
33191         * tests/test-printf-posix.sh: Likewise.
33192         * tests/test-vfprintf-posix.sh: Likewise.
33193         * tests/test-vprintf-posix.sh: Likewise.
33194
33195 2007-05-19  Bruno Haible  <bruno@clisp.org>
33196
33197         Fix *printf result for NaN, Inf, -0.0 on mingw.
33198         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
33199         * lib/vasnprintf.c: Include math.h and isnan.h.
33200         (is_infinite_or_zero): New function.
33201         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
33202         values in the %f, %F, %e, %E, %g, %G directives.
33203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
33204         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33205         gl_PRINTF_INFINITE and test its result. Invoke
33206         gl_PREREQ_VASNPRINTF_INFINITE.
33207         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33208         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33209         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33210         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33213         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33214         * doc/functions/fprintf.texi: Update.
33215         * doc/functions/printf.texi: Update.
33216         * doc/functions/snprintf.texi: Update.
33217         * doc/functions/sprintf.texi: Update.
33218         * doc/functions/vfprintf.texi: Update.
33219         * doc/functions/vprintf.texi: Update.
33220         * doc/functions/vsnprintf.texi: Update.
33221         * doc/functions/vsprintf.texi: Update.
33222
33223 2007-05-19  Bruno Haible  <bruno@clisp.org>
33224
33225         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
33226         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
33227         Instead of multiplying with 10^k, set extra_zeroes to k.
33228         (scale10_round_long_double): Remove function.
33229
33230 2007-05-18  Bruno Haible  <bruno@clisp.org>
33231
33232         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
33233         introduced on 2007-05-06.
33234
33235 2007-05-18  Bruno Haible  <bruno@clisp.org>
33236
33237         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
33238         %g directives.
33239         * tests/test-vasprintf-posix.c (test_function): Likewise.
33240         * tests/test-snprintf-posix.h (test_function): Likewise.
33241         * tests/test-sprintf-posix.h (test_function): Likewise.
33242
33243 2007-05-18  Bruno Haible  <bruno@clisp.org>
33244
33245         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
33246         (strmatch): New function.
33247         (test_function): Test the %f directive on numbers of various exponents.
33248         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
33249         (strmatch): New function.
33250         (test_function): Test the %f directive on numbers of various exponents.
33251         * tests/test-snprintf-posix.h (strmatch): New function.
33252         (test_function): Test the %f directive on numbers of various exponents.
33253         * tests/test-sprintf-posix.h (strmatch): New function.
33254         (test_function): Test the %f directive on numbers of various exponents.
33255         * tests/test-snprintf-posix.c (SIZEOF): New macro.
33256         * tests/test-sprintf-posix.c (SIZEOF): New macro.
33257         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
33258         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
33259
33260 2007-05-18  Bruno Haible  <bruno@clisp.org>
33261
33262         Add support for 'long double' number output.
33263         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
33264         * lib/vasnprintf.c: Include math.h and float+.h.
33265         (mp_limb_t): New type.
33266         (GMP_LIMB_BITS): New macro.
33267         (mp_twolimb_t): New type.
33268         (GMP_TWOLIMB_BITS): New macro.
33269         (mpn_t): New type.
33270         (multiply, divide, convert_to_decimal, decode_long_double,
33271         scale10_round_long_double, scale10_round_decimal_long_double,
33272         floorlog10l): New functions.
33273         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
33274         for the %f, %F, %e, %E, %g, %G directives.
33275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
33276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33277         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
33278         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
33279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33286         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
33287         * modules/snprintf-posix (Depends-on): Likewise.
33288         * modules/sprintf-posix (Depends-on): Likewise.
33289         * modules/vasnprintf-posix (Depends-on): Likewise.
33290         * modules/vasprintf-posix (Depends-on): Likewise.
33291         * modules/vfprintf-posix (Depends-on): Likewise.
33292         * modules/vsnprintf-posix (Depends-on): Likewise.
33293         * modules/vsprintf-posix (Depends-on): Likewise.
33294         * modules/vasnprintf (Files): Add lib/float+.h.
33295         * doc/functions/fprintf.texi: Update.
33296         * doc/functions/printf.texi: Update.
33297         * doc/functions/snprintf.texi: Update.
33298         * doc/functions/sprintf.texi: Update.
33299         * doc/functions/vfprintf.texi: Update.
33300         * doc/functions/vprintf.texi: Update.
33301         * doc/functions/vsnprintf.texi: Update.
33302         * doc/functions/vsprintf.texi: Update.
33303
33304 2007-05-18  Bruno Haible  <bruno@clisp.org>
33305
33306         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
33307
33308 2007-05-18  Bruno Haible  <bruno@clisp.org>
33309
33310         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
33311         for printing 64-bit integers. Needed for mingw.
33312
33313 2007-05-18  Bruno Haible  <bruno@clisp.org>
33314
33315         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
33316         gl_FUNC_FREXPL_WORKS.
33317         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
33318
33319 2007-05-18  Bruno Haible  <bruno@clisp.org>
33320
33321         * modules/frexpl-nolibm-tests: New file.
33322
33323         * modules/frexpl-nolibm: New file.
33324         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
33325
33326 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
33327
33328         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
33329         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33330         GCC 4.2, which otherwise issues a lot of warnings.
33331         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
33332         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
33333         Likewise.
33334         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
33335         * modules/iconv_open (iconv.h): Likewise.
33336         * modules/locale (locale.h): Likewise.
33337         * modules/netinet_in (netinet/in.h): Likewise.
33338         * modules/sys_select (sys_select.h): Likewise.
33339         * modules/sys_socket (sys/socket.h): Likewise.
33340         * modules/sys_stat (sys/stat.h): Likewise.
33341         * modules/sysexits (sysexits.h): Likewise.
33342         * modules/unistd (unistd.h): Likewise.
33343
33344 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33345
33346         * modules/closein-tests (Makefile.am): Distribute
33347         `test-closein.sh'.
33348
33349 2007-05-17  Bruno Haible  <bruno@clisp.org>
33350
33351         * tests/test-printf-posix.output: Renamed from
33352         tests/test-fprintf-posix.out.
33353         * modules/fprintf-posix-tests: Update.
33354         * modules/printf-posix-tests: Update.
33355         * modules/vfprintf-posix-tests: Update.
33356         * modules/vprintf-posix-tests: Update.
33357         * tests/test-fprintf-posix.sh: Update.
33358         * tests/test-printf-posix.sh: Update.
33359         * tests/test-vfprintf-posix.sh: Update.
33360         * tests/test-vprintf-posix.sh: Update.
33361         Reported by Ralf Wildenhues.
33362
33363 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33364
33365         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
33366         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
33367         GCC 4.2, which otherwise issues a lot of warnings.
33368         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
33369         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
33370         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
33371         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
33372         it should no longer be needed.
33373         * lib/string_.h: Likewise.
33374         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
33375         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
33376         * modules/inttypes (inttypes.h): Likewise.
33377         * modules/math (math.h): Likewise.
33378         * modules/search (search.h): Likewise.
33379         * modules/signal (signal.h): Likewise.
33380         * modules/stdint (stdint.h): Likewise.
33381         * modules/stdio (stdio.h): Likewise.
33382         * modules/stdlib (stdlib.h): Likewise.
33383         * modules/string (string.h): Likewise.
33384         * modules/sys_time (sys/time.h): Likewise.
33385         * modules/time (time.h): Likewise.
33386         * modules/wchar (wchar.h): Likewise.
33387         * modules/wctype (wtype.h): Likewise.
33388
33389 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33390
33391         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
33392
33393 2007-05-13  Bruno Haible  <bruno@clisp.org>
33394
33395         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
33396         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33397         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
33398         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33399         (gl_PREREQ_STRTOK_R): Don't require it here.
33400
33401 2007-05-13  Bruno Haible  <bruno@clisp.org>
33402
33403         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
33404         when used in C++ mode.
33405
33406 2007-05-12  Bruno Haible  <bruno@clisp.org>
33407
33408         * lib/linebuffer.h: Tweak doc.
33409         * lib/linebuffer.c: Likewise.
33410
33411 2007-05-12  James Youngman  <jay@gnu.org>
33412
33413         * lib/linebuffer.c (readlinebuffer_delim): New function,
33414         like readlinebuffer, but use a caller-specified delimiter.
33415         (readlinebuffer): Just call readlinebuffer_delim with '\n'
33416         as the delimiter.
33417         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
33418
33419 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33420
33421         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
33422         * modules/openat (Files): Remove openat-die.c.
33423         (Depends-on): Add openat-die.
33424         * modules/openat-die: New module.
33425
33426 2007-05-06  Bruno Haible  <bruno@clisp.org>
33427
33428         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
33429         Update with info about Cygwin.
33430         * doc/functions/fprintf.texi: Update.
33431         * doc/functions/printf.texi: Update.
33432         * doc/functions/snprintf.texi: Update.
33433         * doc/functions/sprintf.texi: Update.
33434         * doc/functions/vfprintf.texi: Update.
33435         * doc/functions/vprintf.texi: Update.
33436         * doc/functions/vsnprintf.texi: Update.
33437         * doc/functions/vsprintf.texi: Update.
33438         Reported by Eric Blake.
33439
33440 2007-05-06  Bruno Haible  <bruno@clisp.org>
33441
33442         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
33443         padding ourselves for the floating-point directives.
33444         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
33445         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
33446         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33447         gl_PRINTF_FLAG_ZERO and test its result. Invoke
33448         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33449         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33453         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33454         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33456         * tests/test-snprintf-posix.h (test_function): Also check the width
33457         and some flags in the %f directive.
33458         * tests/test-sprintf-posix.h (test_function): Likewise.
33459         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33460         * tests/test-vasprintf-posix.c (test_function): Likewise.
33461         * doc/functions/fprintf.texi: Update.
33462         * doc/functions/printf.texi: Update.
33463         * doc/functions/snprintf.texi: Update.
33464         * doc/functions/sprintf.texi: Update.
33465         * doc/functions/vfprintf.texi: Update.
33466         * doc/functions/vprintf.texi: Update.
33467         * doc/functions/vsnprintf.texi: Update.
33468         * doc/functions/vsprintf.texi: Update.
33469
33470 2007-05-06  Bruno Haible  <bruno@clisp.org>
33471
33472         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33473         pass the ' flag character to sprintf or snprintf.
33474         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33476         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33477         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33478         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33479         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33480         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33481         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33482         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33483         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33484         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33485         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33486         * tests/test-snprintf-posix.h (test_function): Also check the grouping
33487         flag.
33488         * tests/test-sprintf-posix.h (test_function): Likewise.
33489         * tests/test-vasnprintf-posix.c (test_function): Likewise.
33490         * tests/test-vasprintf-posix.c (test_function): Likewise.
33491         * doc/functions/fprintf.texi: Update.
33492         * doc/functions/printf.texi: Update.
33493         * doc/functions/snprintf.texi: Update.
33494         * doc/functions/sprintf.texi: Update.
33495         * doc/functions/vfprintf.texi: Update.
33496         * doc/functions/vprintf.texi: Update.
33497         * doc/functions/vsnprintf.texi: Update.
33498         * doc/functions/vsprintf.texi: Update.
33499
33500 2007-05-01  Bruno Haible  <bruno@clisp.org>
33501
33502         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33503
33504 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
33505
33506         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33507         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
33508
33509 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
33510
33511         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33512         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
33513         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33514
33515 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
33516
33517         * lib/argp-help.c (struct hol_entry): New member `ord'.
33518         (HOL_ENTRY_PTRCMP): Use ord for comparison
33519         (hol_sort): Initialize ord.
33520
33521 2007-05-01  Bruno Haible  <bruno@clisp.org>
33522
33523         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33524         Reported by Eric Blake.
33525         * doc/gnulib.texi (Function Substitutes): Update.
33526
33527 2007-05-01  Bruno Haible  <bruno@clisp.org>
33528
33529         * doc/functions.texi: Remove file, now redundant through
33530         doc/functions/*.texi.
33531
33532 2007-05-01  Bruno Haible  <bruno@clisp.org>
33533
33534         * modules/argp (Depends-on): Add sleep.
33535
33536 2007-05-01  Bruno Haible  <bruno@clisp.org>
33537
33538         * modules/sleep-tests: New file.
33539         * tests/test-sleep.c: New file.
33540
33541         * modules/sleep: New file.
33542         * lib/sleep.c: New file.
33543         * m4/sleep.m4: New file.
33544         * lib/unistd_.h (sleep): New declaration.
33545         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33546         HAVE_SLEEP.
33547         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33548         * doc/functions/sleep.texi: Document the sleep module.
33549
33550 2007-05-01  Bruno Haible  <bruno@clisp.org>
33551
33552         * lib/sigprocmask.h: Remove file.
33553         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33554         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33555         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33556         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33557         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33558         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33559         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33560         HAVE_SIGSET_T as a shell variable.
33561         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33562         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33563         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33564         (Depends-on): Add signal. Remove verify.
33565         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33566         (Include): Mention <signal.h> instead of sigprocmask.h.
33567         * NEWS: Mention the change.
33568         * lib/fatal-signal.c: Don't include sigprocmask.h.
33569
33570 2007-05-01  Bruno Haible  <bruno@clisp.org>
33571
33572         * modules/signal: New file.
33573         * lib/signal_.h: New file.
33574         * m4/signal_h.m4: New file.
33575
33576 2007-05-01  Bruno Haible  <bruno@clisp.org>
33577
33578         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33579         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33580         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33581         HAVE_WCTYPE_CTMP_BUG into wctype.h.
33582
33583 2007-05-01  Bruno Haible  <bruno@clisp.org>
33584
33585         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33586         configure time.
33587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33588         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33589         * modules/sys_stat (Makefile.am): Substitute their values into
33590         sys/stat.h.
33591
33592 2007-05-01  Bruno Haible  <bruno@clisp.org>
33593
33594         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33595         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33596         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33597
33598 2007-05-01  Bruno Haible  <bruno@clisp.org>
33599
33600         * doc/header/assert.texi: Undo last change: don't mention the gnulib
33601         'assert' module here.
33602
33603 2007-05-01  Bruno Haible  <bruno@clisp.org>
33604
33605         * doc/functions/*.texi: New files.
33606         * doc/functions/google-ranking.txt: New file.
33607         * doc/gnulib.texi (Function Substitutes): New chapter.
33608         (ctime, inet_ntoa): Remove sections.
33609         * doc/ctime.texi: Remove file.
33610         * doc/inet_ntoa.texi: Remove file.
33611         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33612         dependencies.
33613         (%.info): New rule, specifying a --reference-limit.
33614
33615 2007-05-01  Bruno Haible  <bruno@clisp.org>
33616
33617         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33618
33619 2007-05-01  Bruno Haible  <bruno@clisp.org>
33620
33621         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33622         the portability of 'mkdir' to mingw systems.
33623
33624 2007-05-01  Bruno Haible  <bruno@clisp.org>
33625
33626         * doc/headers/google-ranking.txt: New file.
33627
33628 2007-04-30  Eric Blake  <ebb9@byu.net>
33629
33630         Prefer fseeko to fseek.
33631         * modules/getpass (Depends-on): Add fseeko.
33632         * lib/getpass.c (getpass): Use fseeko, not fseek.
33633
33634 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
33635
33636         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33637         assumes the sorting is stable, while most qsort implementations
33638         are not.  Use argument addresses to ensure they never compare as
33639         equal.
33640
33641         * tests/test-argp-2.sh (usage-indent test): Fix output
33642         (func_compare): Restore diff options
33643         * tests/test-argp.c: Restore #include "progname.h"
33644
33645 2007-04-29  Bruno Haible  <bruno@clisp.org>
33646
33647         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33648         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33649         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33650         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33651         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33652         (configure.ac): Define CHECK_SNPRINTF_POSIX.
33653         (TESTS, check_PROGRAMS): Add test-snprintf.
33654         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33655         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33656         (TESTS, check_PROGRAMS): Add test-vsnprintf.
33657         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33658         assertions that fail on HP-UX, OSF/1, or IRIX.
33659         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33660
33661 2007-04-29  Bruno Haible  <bruno@clisp.org>
33662
33663         * MODULES.html.sh (posix_functions): Remove 'contents'.
33664
33665 2007-04-29  Karl Berry  <karl@gnu.org>
33666
33667         * config/srclist.txt (gendocs_template_min): new entry.
33668
33669 2007-04-29  Bruno Haible  <bruno@clisp.org>
33670
33671         Work around fpurge bug on BSD systems.
33672         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33673         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33674         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33675         fpurge to rpl_fpurge if the system already has this function.
33676         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33677         the case where the system already has this function. Correct invariants
33678         on BSD systems.
33679         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33680         BSD systems.
33681
33682 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33683
33684         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
33685         proposed by Sven Verdoolaege.
33686
33687         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
33688         options.
33689         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33690         (usage and help tests): Update
33691
33692 2007-04-29  Bruno Haible  <bruno@clisp.org>
33693
33694         * tests/test-fflush.c (main): Use a file of size 17, not 10.
33695         Print more information in case of failure. Disable a test on BeOS.
33696
33697 2007-04-29  Bruno Haible  <bruno@clisp.org>
33698
33699         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33700         This helps debugging on systems on which no gdb is available.
33701
33702 2007-04-29  Bruno Haible  <bruno@clisp.org>
33703
33704         * lib/freading.h: Improve comments.
33705         * lib/fwriting.h: Likewise.
33706         * tests/test-freading.c (main): Don't check freading immediately after
33707         repositioning. Needed for glibc.
33708
33709 2007-04-29  Bruno Haible  <bruno@clisp.org>
33710
33711         * lib/freading.c (freading): Trivial simplification.
33712
33713 2007-04-28  Bruno Haible  <bruno@clisp.org>
33714
33715         * tests/test-fwriting.c (main): Also test the interaction between
33716         fflush and fwriting.
33717         * modules/fwriting-tests (Depends-on): Add fflush.
33718
33719         * tests/test-freading.c (main): Also test the interaction between
33720         fflush and freading.
33721         * modules/freading-tests (Depends-on): Add fflush.
33722
33723 2007-04-28  Bruno Haible  <bruno@clisp.org>
33724
33725         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33726         fseeko and ftello.
33727         Suggested by Eric Blake.
33728
33729 2007-04-28  Jim Meyering  <jim@meyering.net>
33730
33731         Avoid false-negative in gl_STDINT_H's C99 conformance test.
33732         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33733         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33734
33735 2007-04-27  Eric Blake  <ebb9@byu.net>
33736
33737         * doc/headers/assert.texi (assert.h): Document assert module use.
33738
33739 2007-04-27  Bruno Haible  <bruno@clisp.org>
33740
33741         * doc/headers/*.texi: New files.
33742         * doc/gnulib.texi (Header File Substitutes): New chapter.
33743         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33744         dependencies.
33745         (standards.info ,standards.html, standards.dvi): Update dependencies.
33746         (mostlyclean, clean): New targets.
33747
33748 2007-04-27  Bruno Haible  <bruno@clisp.org>
33749
33750         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33751         * modules/sysexits (Files, Makefile.am): Update.
33752
33753         * lib/sys_socket_.h: Renamed from lib/socket_.h.
33754         * modules/sys_socket (Files, Makefile.am): Update.
33755
33756         * lib/sys_stat_.h: Renamed from lib/stat_.h.
33757         * modules/sys_stat (Files, Makefile.am): Update.
33758
33759 2007-04-27  Eric Blake  <ebb9@byu.net>
33760
33761         * lib/freading.h: Improve comments.
33762         * lib/fwriting.h: Likewise.
33763         * lib/fflush.c: Likewise.
33764
33765         Fix closein for mingw.
33766         * modules/closein-tests: Add tests for closein.
33767         * tests/test-closein.c: New file.
33768         * tests/test-closein.sh: Likewise.
33769         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33770         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33771
33772 2007-04-27  Bruno Haible  <bruno@clisp.org>
33773
33774         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33775         version is < 6.
33776         * lib/math_.h [__DECC]: Likewise.
33777         * lib/stdio_.h [__DECC]: Likewise.
33778         * lib/stdlib_.h [__DECC]: Likewise.
33779         * lib/string_.h [__DECC]: Likewise.
33780         * lib/time_.h [__DECC]: Likewise.
33781         * lib/wchar_.h [__DECC]: Likewise.
33782         * lib/wctype_.h [__DECC]: Likewise.
33783
33784 2007-04-27  Bruno Haible  <bruno@clisp.org>
33785
33786         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33787
33788 2007-04-27  Bruno Haible  <bruno@clisp.org>
33789
33790         * lib/fflush.c: Add comments.
33791         * modules/fpurge-tests (Depends-on): Add fflush.
33792         * modules/freadable-tests (Depends-on): Likewise.
33793         * modules/fwritable-tests (Depends-on): Likewise.
33794
33795 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
33796
33797         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33798         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
33799         Report by Bruno Haible <bruno@clisp.org>.
33800
33801 2007-04-26  Eric Blake  <ebb9@byu.net>
33802
33803         Fix fflush on mingw.
33804         * modules/fflush (Depends-on): Add freading.
33805         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33806         but unread data.
33807
33808 2007-04-26  Eric Blake  <ebb9@byu.net>
33809         and Bruno Haible  <bruno@clisp.org>
33810
33811         Implement freading and fwriting.
33812         * lib/freading.c: New file.
33813         * lib/freading.h: Likewise.
33814         * m4/freading.m4: Likewise.
33815         * modules/freading: Likewise.
33816         * modules/freading-tests: Likewise.
33817         * tests/test-freading.c: Likewise.
33818         * lib/fwriting.c: New file.
33819         * lib/fwriting.h: Likewise.
33820         * m4/fwriting.m4: Likewise.
33821         * modules/fwriting: Likewise.
33822         * modules/fwriting-tests: Likewise.
33823         * tests/test-fwriting.c: Likewise.
33824         * MODULES.html.sh (File stream based Input/Output): Mention them.
33825
33826 2007-04-26  Bruno Haible  <bruno@clisp.org>
33827
33828         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33829         'long' when we assume it.
33830         Suggested by Eric Blake.
33831
33832 2007-04-26  Bruno Haible  <bruno@clisp.org>
33833
33834         Ensure fseeko, ftello are declared on glibc systems.
33835         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33836         * modules/fseeko (configure.ac-early): Likewise.
33837         * modules/ftello (configure.ac-early): Likewise.
33838         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33839         AC_FUNC_FSEEKO for this.
33840         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33841         (gl_CHECK_FSEEKO): Remove macro.
33842
33843 2007-04-26  Bruno Haible  <bruno@clisp.org>
33844
33845         * tests/test-fflush.c (main): Also check the ftell result after
33846         fflush and fseek/fseeko.
33847         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33848         file descriptor position cache in the stream.
33849         * lib/fseeko.c (rpl_fseeko): Likewise.
33850
33851 2007-04-26  Bruno Haible  <bruno@clisp.org>
33852
33853         * modules/fflush-tests (Depends-on): Add fseeko.
33854
33855 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
33856             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33857
33858         * lib/argz_.h: ensure error_t definition is obtained in same
33859         mechanism system argz.h would have.
33860         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33861         argz facilities are known bad.  Err on the side of caution if
33862         cross-compiling.
33863
33864 2007-04-25  Eric Blake  <ebb9@byu.net>
33865
33866         * lib/fpurge.c (includes): Use stdlib.h for free.
33867         * tests/test-fflush.c (main): Also test fflush-fseeko.
33868
33869 2007-04-25  Bruno Haible  <bruno@clisp.org>
33870
33871         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33872         * lib/fseeko.c: New file.
33873         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33874         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33875         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33876         gl_FUNC_FSEEKO.
33877         (gl_FUNC_FSEEKO): Invoke it.
33878         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33879         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33880         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33881
33882 2007-04-25  Bruno Haible  <bruno@clisp.org>
33883
33884         * modules/fflush (Depends-on): Add ftello.
33885
33886 2007-04-25  Bruno Haible  <bruno@clisp.org>
33887
33888         * modules/ftello-tests: New file.
33889         * tests/test-ftello.c: New file.
33890
33891         * modules/ftello: New file.
33892         * m4/ftello.m4: New file.
33893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33894         HAVE_FTELLO.
33895         * lib/stdio_.h (ftello): New declaration.
33896         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33897         HAVE_FTELLO.
33898
33899 2007-04-25  Bruno Haible  <bruno@clisp.org>
33900
33901         * modules/fseeko-tests: New file.
33902         * tests/test-fseeko.c: New file.
33903
33904         * modules/fseeko: New file.
33905         * m4/fseeko.m4: New file.
33906         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33907         HAVE_FSEEKO.
33908         * lib/stdio_.h (fseeko): New declaration.
33909         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33910         HAVE_FSEEKO.
33911
33912 2007-04-25  Bruno Haible  <bruno@clisp.org>
33913
33914         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33915
33916 2007-04-25  Bruno Haible  <bruno@clisp.org>
33917
33918         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33919         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33920         * tests/test-unistd.c: Likewise.
33921         * tests/test-fcntl.c: Likewise.
33922
33923 2007-04-23  Eric Blake  <ebb9@byu.net>
33924
33925         * lib/fflush.c: Fix missing include.
33926         Reported by Bruno Haible.
33927
33928 2007-04-23  Bruno Haible  <bruno@clisp.org>
33929
33930         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33931         Reported by Eric Blake.
33932
33933 2007-04-23  Bruno Haible  <bruno@clisp.org>
33934
33935         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33936
33937 2007-04-23  Bruno Haible  <bruno@clisp.org>
33938
33939         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33940
33941 2007-04-23  Bruno Haible  <bruno@clisp.org>
33942
33943         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33944         Needed on HP-UX 11.
33945
33946 2007-04-16  Eric Blake  <ebb9@byu.net>
33947
33948         Make fflush rely on fpurge.
33949         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33950         open coding all variants.
33951         * modules/fflush (Depends-on): Add fpurge and unistd.
33952         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33953         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33954
33955         Fix --with-tests compilation on cygwin.
33956         * modules/argmatch-tests (Makefile.am): List gnulib library first
33957         in LDADD.
33958         * modules/argp-tests (Makefile.am): Likewise.
33959         * modules/array-list-tests (Makefile.am): Likewise.
33960         * modules/array-oset-tests (Makefile.am): Likewise.
33961         * modules/avltree-list-tests (Makefile.am): Likewise.
33962         * modules/avltree-oset-tests (Makefile.am): Likewise.
33963         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33964         * modules/carray-list-tests (Makefile.am): Likewise.
33965         * modules/dirname-tests (Makefile.am): Likewise.
33966         * modules/frexp-tests (Makefile.am): Likewise.
33967         * modules/isnanl-tests (Makefile.am): Likewise.
33968         * modules/linked-list-tests (Makefile.am): Likewise.
33969         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33970         * modules/lock-tests (Makefile.am): Likewise.
33971         * modules/rbtree-list-tests (Makefile.am): Likewise.
33972         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33973         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33974         * modules/tls-tests (Makefile.am): Likewise.
33975         * modules/tsearch-tests (Makefile.am): Likewise.
33976         * modules/xvasprintf-tests (Makefile.am): Likewise.
33977
33978         Fix fpurge for cygwin.
33979         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33980         value.
33981         * modules/fpurge-tests (Depends-on): Clean up trash.
33982
33983 2007-04-16  Simon Josefsson  <simon@josefsson.org>
33984
33985         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33986
33987         * m4/autobuild.m4: Re-indent.
33988
33989 2007-04-13  Bruno Haible  <bruno@clisp.org>
33990
33991         * modules/fpurge-tests: New file.
33992         * tests/test-fpurge.c: New file.
33993
33994         * modules/fpurge: New file.
33995         * lib/fpurge.h: New file.
33996         * lib/fpurge.c: New file.
33997         * m4/fpurge.m4: New file.
33998
33999 2007-04-13  Bruno Haible  <bruno@clisp.org>
34000
34001         * modules/fbufmode-tests: New file.
34002         * tests/test-fbufmode.c: New file.
34003
34004         * modules/fbufmode: New file.
34005         * lib/fbufmode.h: New file.
34006         * lib/fbufmode.c: New file.
34007         * m4/fbufmode.m4: New file.
34008
34009 2007-04-13  Bruno Haible  <bruno@clisp.org>
34010
34011         * modules/fwritable-tests: New file.
34012         * tests/test-fwritable.c: New file.
34013
34014         * modules/fwritable: New file.
34015         * lib/fwritable.h: New file.
34016         * lib/fwritable.c: New file.
34017         * m4/fwritable.m4: New file.
34018
34019 2007-04-13  Bruno Haible  <bruno@clisp.org>
34020
34021         * modules/freadable-tests: New file.
34022         * tests/test-freadable.c: New file.
34023
34024         * modules/freadable: New file.
34025         * lib/freadable.h: New file.
34026         * lib/freadable.c: New file.
34027         * m4/freadable.m4: New file.
34028
34029 2007-04-13  Bruno Haible  <bruno@clisp.org>
34030
34031         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
34032         MOSTLYCLEANFILES.
34033
34034 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
34035
34036         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
34037         gzip bootstrap.conf to avoid dragging in i18n machinery.
34038         (gnulib_tool_option): Use it.
34039
34040 2007-04-13  Bruno Haible  <bruno@clisp.org>
34041
34042         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
34043         %F directives.
34044         * tests/test-vasprintf-posix.c (test_function): Likewise.
34045         * tests/test-snprintf-posix.h (test_function): Likewise.
34046         * tests/test-sprintf-posix.h (test_function): Likewise.
34047         * tests/test-fprintf-posix.h (test_function): Likewise.
34048         * tests/test-printf-posix.h (test_function): Likewise.
34049         * tests/test-fprintf-posix.out: Likewise.
34050
34051 2007-04-13  Bruno Haible  <bruno@clisp.org>
34052
34053         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
34054         * modules/tls-tests (configure.ac): Likewise.
34055         Reported by Arto C. Nirkko <anirkko@insel.ch>.
34056
34057 2007-04-13  Bruno Haible  <bruno@clisp.org>
34058
34059         * lib/tls.c (glthread_tls_get): Fix return type.
34060         Patch by Arto C. Nirkko <anirkko@insel.ch>.
34061
34062 2007-04-12  Eric Blake  <ebb9@byu.net>
34063
34064         * modules/gettime (Depends-on): Remove gettime.
34065         Reported by Dmitry V. Levin.
34066
34067 2007-04-12  Bruno Haible  <bruno@clisp.org>
34068
34069         * modules/fflush (Include): Mention <stdio.h>.
34070         * modules/strtoimax (Include): Mention <inttypes.h>.
34071         * modules/strtoumax (Include): Likewise.
34072
34073 2007-04-12  Eric Blake  <ebb9@byu.net>
34074
34075         * .cvsignore: New file.
34076         * .gitignore: Likewise.
34077
34078 2007-04-12  Bruno Haible  <bruno@clisp.org>
34079
34080         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
34081         not before, since $(LDADD) often contains libgnu.a.
34082         * modules/striconv-tests (test_striconv_LDADD): Likewise.
34083         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
34084         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
34085         Needed on Cygwin.
34086
34087 2007-04-12  Eric Blake  <ebb9@byu.net>
34088
34089         Work around glibc's failure to flush stdin on fclose.
34090         * lib/closein.c (close_stdin): Flush stdin before closing.
34091
34092         Work around glibc's failure to reset seekable stdin on exit.
34093         * modules/closein: New module.
34094         * lib/closein.c: New file.
34095         * lib/closein.h: Likewise.
34096         * m4/closein.m4: Likewise.
34097         * MODULES.html.sh (File stream based Input/Output): Document it.
34098
34099 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34100
34101         * gnulib-tool: Rename generated 'autobuild' script to
34102         'do-autobuild' in --create-megatestdir output.
34103
34104         * doc/gnulib.texi (Build robot for gnulib): Fix.
34105
34106 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34107
34108         * modules/sysexits (Depends-on): Add absolute-header.
34109
34110 2007-04-12  Eric Blake  <ebb9@byu.net>
34111
34112         No need to preserve errno on success.
34113         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
34114         Reported by Bruno Haible.
34115
34116 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34117
34118         * MODULES.html.sh (Support for maintaining and releasing
34119         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
34120
34121 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34122
34123         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
34124
34125 2007-04-12  Simon Josefsson  <simon@josefsson.org>
34126
34127         * modules/autobuild: New module.
34128
34129         * m4/autobuild.m4: New file.
34130
34131 2007-04-11  Bruno Haible  <bruno@clisp.org>
34132
34133         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
34134         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
34135         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
34136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
34137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34138         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34139         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
34141         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
34142         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
34143         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_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/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_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/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_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/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
34162
34163 2007-04-11  Bruno Haible  <bruno@clisp.org>
34164
34165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
34166
34167 2007-04-10  Bruno Haible  <bruno@clisp.org>
34168
34169         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
34170         for NaN and Infinity. Needed on FreeBSD 6.1.
34171         * tests/test-vasnprintf-posix.c (test_function): Undo last change
34172         regarding results for "%010a" of Infinity and NaN.
34173         * tests/test-vasprintf-posix.c (test_function): Likewise.
34174         * tests/test-snprintf-posix.h (test_function): Likewise.
34175         * tests/test-sprintf-posix.h (test_function): Likewise.
34176         * tests/test-fprintf-posix.h (test_function): Likewise.
34177         * tests/test-printf-posix.h (test_function): Likewise.
34178         * tests/test-fprintf-posix.out: Likewise.
34179
34180 2007-04-10  Bruno Haible  <bruno@clisp.org>
34181
34182         * modules/locale-tests: New file.
34183         * tests/test-locale.c: New file.
34184
34185         * modules/locale: New file.
34186         * lib/locale_.h: New file.
34187         * m4/locale_h.m4: New file.
34188
34189 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
34190             Bruno Haible  <bruno@clisp.org>
34191
34192         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
34193         be determined, test for availability of the copysignf, copysign,
34194         copysignl functions.
34195         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
34196         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
34197         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
34198
34199 2007-04-09  Eric Blake  <ebb9@byu.net>
34200
34201         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
34202         * modules/stdio (Makefile.am): Support fflush.
34203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34204         * modules/fflush: New file.
34205         * lib/fflush.c: Likewise.
34206         * m4/fflush.m4: Likewise.
34207         * modules/fflush-tests: New test.
34208         * tests/test-fflush.c: Likewise.
34209         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
34210
34211 2007-04-06  Bruno Haible  <bruno@clisp.org>
34212
34213         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
34214         (VASNPRINTF): Use signbit for faster determination whether to print a
34215         minus sign.
34216         * modules/vasnprintf (Files): Remove lib/float+.h.
34217         * modules/fprintf-posix (Depends-on): Add signbit.
34218         * modules/snprintf-posix (Depends-on): Likewise.
34219         * modules/sprintf-posix (Depends-on): Likewise.
34220         * modules/vasnprintf-posix (Depends-on): Likewise.
34221         * modules/vasprintf-posix (Depends-on): Likewise.
34222         * modules/vfprintf-posix (Depends-on): Likewise.
34223         * modules/vsnprintf-posix (Depends-on): Likewise.
34224         * modules/vsprintf-posix (Depends-on): Likewise.
34225
34226 2007-04-06  Bruno Haible  <bruno@clisp.org>
34227
34228         * tests/test-frexp.c (main): Test also the sign bit of zero results.
34229         * tests/test-frexpl.c (main): Likewise.
34230         * tests/test-ldexpl.c (main): Likewise.
34231         * modules/frexp-tests (Depends-on): Add signbit.
34232         * modules/frexpl-tests (Depdends-on): Likewise.
34233         * modules/ldexpl-tests (Depdends-on): Likewise.
34234
34235 2007-04-06  Bruno Haible  <bruno@clisp.org>
34236
34237         * modules/signbit-tests: New file.
34238         * tests/test-signbit.c: New file.
34239
34240         * modules/signbit: New file.
34241         * lib/signbitf.c: New file.
34242         * lib/signbitd.c: New file.
34243         * lib/signbitl.c: New file.
34244         * m4/signbit.m4: New file.
34245         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
34246         (signbit): New macro.
34247         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
34248         REPLACE_SIGNBIT.
34249         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
34250         REPLACE_FREXPL into math.h.
34251
34252 2007-04-06  Bruno Haible  <bruno@clisp.org>
34253
34254         * modules/isnanf-nolibm-tests: New file.
34255         * tests/test-isnanf.c: New file.
34256
34257         * modules/isnanf-nolibm: New file.
34258         * lib/isnanf.h: New file.
34259         * lib/isnanf.c: New file.
34260         * lib/isnan.c: Consider the USE_FLOAT macro.
34261         * m4/isnanf.m4: New file.
34262
34263 2007-04-06  Bruno Haible  <bruno@clisp.org>
34264
34265         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
34266         (Link): New section.
34267
34268         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
34269
34270 2007-04-06  Bruno Haible  <bruno@clisp.org>
34271
34272         Assume the 'long double' type.
34273         * m4/longdouble.m4: Remove file.
34274         * config/srclist.txt: Don't mention longdouble.m4.
34275         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
34276         * lib/float+.h: Likewise.
34277         * lib/frexp.c: Likewise.
34278         * lib/printf-args.h: Likewise.
34279         * lib/printf-args.c: Likewise.
34280         * lib/printf-frexp.c: Likewise.
34281         * lib/printf-parse.c: Likewise.
34282         * lib/vasnprintf.c: Likewise.
34283         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
34284         * m4/intl.m4: Likewise.
34285         * m4/isnanl.m4: Likewise.
34286         * m4/printf.m4: Likewise.
34287         * m4/printf-frexpl.m4: Likewise.
34288         * m4/vasnprintf.m4: Likewise.
34289         * modules/allocsa (Files): Remove m4/longdouble.m4.
34290         * modules/gettext (Files): Likewise.
34291         * modules/relocatable-prog-wrapper (Files): Likewise.
34292         * modules/vasnprintf (Files): Likewise.
34293         * modules/isnanl (Files): Likewise.
34294         (Include): Simplify.
34295         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
34296         (Include): Simplify.
34297         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
34298         (Include): Simplify.
34299         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
34300         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34301         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
34302         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34303         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34304         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34305         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
34306         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34307         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
34308         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34309         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
34310         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
34311         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
34312         * tests/test-isnanl.c: Likewise.
34313         * tests/test-snprintf-posix.h: Likewise.
34314         * tests/test-sprintf-posix.h: Likewise.
34315         * tests/test-vasnprintf-posix.c: Likewise.
34316         * tests/test-vasnprintf-posix2.c: Likewise.
34317         * tests/test-vasprintf-posix.c: Likewise.
34318
34319 2007-04-06  Bruno Haible  <bruno@clisp.org>
34320
34321         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
34322         * lib/math_.h [__DECC]: Include the overridden include file through
34323         #include_next, outside the double-inclusion guard.
34324         * lib/stdio_.h [__DECC]: Likewise.
34325         * lib/stdlib_.h [__DECC]: Likewise.
34326         * lib/string_.h [__DECC]: Likewise.
34327         * lib/time_.h [__DECC]: Likewise.
34328         * lib/wchar_.h [__DECC]: Likewise.
34329         * lib/wctype_.h [__DECC]: Likewise.
34330         * lib/inttypes_.h [__DECC]: Likewise.
34331         Reported by Albert Chin <china@thewrittenword.com> in
34332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
34333
34334 2007-04-04  Eric Blake  <ebb9@byu.net>
34335
34336         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
34337         1.5.x.
34338
34339 2007-04-04  Bruno Haible  <bruno@clisp.org>
34340
34341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
34342         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
34343
34344 2007-04-04  Bruno Haible  <bruno@clisp.org>
34345
34346         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
34347         results for "%010a" of Infinity and NaN.
34348         * tests/test-vasprintf-posix.c (test_function): Likewise.
34349         * tests/test-snprintf-posix.h (test_function): Likewise.
34350         * tests/test-sprintf-posix.h (test_function): Likewise.
34351         * tests/test-fprintf-posix.h (test_function): Remove these tests.
34352         * tests/test-printf-posix.h (test_function): Likewise.
34353         * tests/test-fprintf-posix.out: Update.
34354         Needed for FreeBSD 6.1.
34355
34356 2007-04-04  Bruno Haible  <bruno@clisp.org>
34357
34358         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
34359         directly used by the gnulib modules nor by gnulib-tool.
34360
34361 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
34362
34363         * DEPENDENCIES: Give overall description of version dependency
34364         desirability.  Use more-typical names for apps.
34365         Add shell, coreutils, diffutils, grep, tar, gzip.
34366
34367 2007-04-04  Simon Josefsson  <simon@josefsson.org>
34368
34369         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
34370
34371 2007-04-04  Karl Berry  <karl@gnu.org>
34372
34373         * MODULES.html.sh (func_module): missing '.
34374
34375 2007-04-03  Bruno Haible  <bruno@clisp.org>
34376
34377         * modules/argmatch-tests (Makefile.am): New variable
34378         test_argmatch_LDADD.
34379         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
34380         * modules/array-list-tests (Makefile.am): New variable
34381         test_array_list_LDADD.
34382         * modules/array-oset-tests (Makefile.am): New variable
34383         test_array_oset_LDADD.
34384         * modules/avltree-list-tests (Makefile.am): New variable
34385         test_avltree_list_LDADD.
34386         * modules/avltree-oset-tests (Makefile.am): New variable
34387         test_avltree_oset_LDADD.
34388         * modules/avltreehash-list-tests (Makefile.am): New variable
34389         test_avltreehash_list_LDADD.
34390         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
34391         test_canonicalize_lgpl_LDADD.
34392         * modules/carray-list-tests (Makefile.am): New variable
34393         test_carray_list_LDADD.
34394         * modules/dirname-tests (Makefile.am): New variable
34395         test_dirname_LDADD.
34396         * modules/linked-list-tests (Makefile.am): New variable
34397         test_linked_list_LDADD.
34398         * modules/linkedhash-list-tests (Makefile.am): New variable
34399         test_linkedhash_list_LDADD.
34400         * modules/rbtree-list-tests (Makefile.am): New variable
34401         test_rbtree_list_LDADD.
34402         * modules/rbtree-oset-tests (Makefile.am): New variable
34403         test_rbtree_oset_LDADD.
34404         * modules/rbtreehash-list-tests (Makefile.am): New variable
34405         test_rbtreehash_list_LDADD.
34406         * modules/xvasprintf-tests (Makefile.am): New variable
34407         test_xvasprintf_LDADD.
34408         Reported by Eric Blake.
34409
34410 2007-04-03  Eric Blake  <ebb9@byu.net>
34411
34412         * DEPENDENCIES: Weaken m4 requirements.
34413
34414 2007-04-03  Bruno Haible  <bruno@clisp.org>
34415
34416         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
34417         * modules/isnanl-tests (configure.ac): Likewise.
34418
34419 2007-04-03  Ben Pfaff  <blp@gnu.org>
34420
34421         * modules/iconv_open: Add $(srcdir)/ to source directory
34422         references in Makefile fragments that call gperf, to fix VPATH
34423         builds.
34424
34425 2007-04-03  Bruno Haible  <bruno@clisp.org>
34426
34427         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
34428         * lib/ldexpl.c: Undo last change.
34429
34430 2007-04-03  Bruno Haible  <bruno@clisp.org>
34431
34432         * modules/printf-frexpl (Depends-on): Undo last change.
34433         (Files): Add m4/ldexpl.m4.
34434
34435 2007-04-03  Bruno Haible  <bruno@clisp.org>
34436
34437         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
34438         * modules/isnanl (Link): New section.
34439
34440         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
34441         * modules/frexp (Link): New section.
34442
34443         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
34444         * modules/frexpl (Link): New section.
34445
34446         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
34447         * modules/ldexpl (Link): New section.
34448
34449 2007-04-03  Bruno Haible  <bruno@clisp.org>
34450
34451         * modules/TEMPLATE-EXTENDED: New file.
34452         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34453
34454 2007-04-03  Bruno Haible  <bruno@clisp.org>
34455
34456         * DEPENDENCIES: New file.
34457         Suggested by Simon Josefsson.
34458
34459 2007-04-03  Bruno Haible  <bruno@clisp.org>
34460
34461         * doc/gnulib.texi: Escape @.
34462
34463 2007-04-03  James Youngman  <jay@gnu.org>
34464         and Paul Eggert  <eggert@cs.ucla.edu>
34465
34466         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34467         birthtime on all systems that have birthtime, not just those which
34468         use st_birthtimensec rather than st_birthtim.  Putting zero in
34469         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34470         that the birth time is not available for files on an NFS mount.
34471
34472 2007-04-03  Simon Josefsson  <simon@josefsson.org>
34473
34474         * modules/memxor: Move back from crypto/, suggested by Bruno.
34475         * modules/crypto/hmac-sha1: Fix memxor dependency.
34476
34477         * modules/crypto/gc: Moved from ../.
34478
34479 2007-04-02  Eric Blake  <ebb9@byu.net>
34480
34481         * lib/ldexpl.c (includes): Avoid libm.
34482
34483         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34484
34485 2007-04-02  Bruno Haible  <bruno@clisp.org>
34486
34487         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34488         on IRIX.
34489
34490 2007-04-02  Bruno Haible  <bruno@clisp.org>
34491
34492         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34493         x86 or x86_64 platforms running MacOS X.
34494         Reported by Ryan Schmidt <@ryandesign.com>.
34495
34496 2007-04-02  Bruno Haible  <bruno@clisp.org>
34497
34498         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34499         i386.
34500
34501 2007-04-01  Simon Josefsson  <simon@josefsson.org>
34502
34503         * modules/crypto/arcfour: Moved from ../.
34504         * modules/crypto/arcfour-tests: Moved from ../.
34505         * modules/crypto/arctwo: Moved from ../.
34506         * modules/crypto/arctwo-tests: Moved from ../.
34507         * modules/crypto/des: Moved from ../.
34508         * modules/crypto/des-tests: Moved from ../.
34509         * modules/crypto/gc-arcfour: Moved from ../.
34510         * modules/crypto/gc-arcfour-tests: Moved from ../.
34511         * modules/crypto/gc-arctwo: Moved from ../.
34512         * modules/crypto/gc-arctwo-tests: Moved from ../.
34513         * modules/crypto/gc-des: Moved from ../.
34514         * modules/crypto/gc-des-tests: Moved from ../.
34515         * modules/crypto/gc-hmac-md5: Moved from ../.
34516         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34517         * modules/crypto/gc-hmac-sha1: Moved from ../.
34518         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34519         * modules/crypto/gc-md2: Moved from ../.
34520         * modules/crypto/gc-md2-tests: Moved from ../.
34521         * modules/crypto/gc-md4: Moved from ../.
34522         * modules/crypto/gc-md4-tests: Moved from ../.
34523         * modules/crypto/gc-md5: Moved from ../.
34524         * modules/crypto/gc-md5-tests: Moved from ../.
34525         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34526         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34527         * modules/crypto/gc-random: Moved from ../.
34528         * modules/crypto/gc-rijndael: Moved from ../.
34529         * modules/crypto/gc-rijndael-tests: Moved from ../.
34530         * modules/crypto/gc-sha1: Moved from ../.
34531         * modules/crypto/gc-sha1-tests: Moved from ../.
34532         * modules/crypto/gc-tests: Moved from ../.
34533         * modules/crypto/hmac-md5: Moved from ../.
34534         * modules/crypto/hmac-md5-tests: Moved from ../.
34535         * modules/crypto/hmac-sha1: Moved from ../.
34536         * modules/crypto/hmac-sha1-tests: Moved from ../.
34537         * modules/crypto/md2: Moved from ../.
34538         * modules/crypto/md2-tests: Moved from ../.
34539         * modules/crypto/md4: Moved from ../.
34540         * modules/crypto/md4-tests: Moved from ../.
34541         * modules/crypto/md5: Moved from ../.
34542         * modules/crypto/md5-tests: Moved from ../.
34543         * modules/crypto/memxor: Moved from ../.
34544         * modules/crypto/rijndael: Moved from ../.
34545         * modules/crypto/rijndael-tests: Moved from ../.
34546         * modules/crypto/sha1: Moved from ../.
34547
34548 2007-03-30  James Youngman  <jay@gnu.org>
34549
34550         * tests/test-stat-time.c (prepare_test): use chmod() rather than
34551         rename() to change the ctime of a file (because ctime is unaffected
34552         by rename on jfs2 on AIX 5.1).
34553         (main): Start by doing cleanup, in case a previous run failed leaving
34554         test files behind.
34555
34556 2007-03-31  Bruno Haible  <bruno@clisp.org>
34557
34558         Support old proprietary implementations of iconv.
34559         * modules/iconv_open: New file.
34560         * lib/iconv_.h: New file.
34561         * m4/iconv_h.m4: New file.
34562         * lib/iconv_open.c: New file.
34563         * lib/iconv_open-aix.gperf: New file.
34564         * lib/iconv_open-hpux.gperf: New file.
34565         * lib/iconv_open-irix.gperf: New file.
34566         * lib/iconv_open-osf.gperf: New file.
34567         * m4/iconv_open.m4: New file.
34568         * modules/linebreak (Depends-on): Add iconv_open.
34569         * modules/striconv (Depends-on): Likewise.
34570         * modules/striconveh (Depends-on): Likewise.
34571         * modules/unicodeio (Depends-on): Likewise.
34572         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34573         (iconv_t)(-1).
34574         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34575         conversion if cd is (iconv_t)(-1).
34576         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34577         is not possible.
34578
34579 2007-03-31  Bruno Haible  <bruno@clisp.org>
34580
34581         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34582         work on Solaris either. Protect also second use of "autodetect_jp".
34583
34584 2007-03-31  Bruno Haible  <bruno@clisp.org>
34585
34586         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34587         the function is not present.
34588
34589 2007-03-31  Bruno Haible  <bruno@clisp.org>
34590
34591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34592         the function is not present.
34593
34594 2007-03-31  Bruno Haible  <bruno@clisp.org>
34595
34596         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34597         a bug in HP-UX iconv_open().
34598
34599 2007-03-31  Bruno Haible  <bruno@clisp.org>
34600
34601         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34602         (Mathematics <math.h>): New section, add fpieee.
34603         (Input/output <stdio.h>): Add fseterr.
34604         (Mathematics <math.h>): New section, add printf-frexp.
34605         (Container data structures): Add sublist.
34606         (Core language properties): Add fpucw, inline.
34607         (Functions for greatest-width integer types <inttypes.h>): Add
34608         imaxabs, imaxdiv, inttypes.
34609         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34610         isnanl-nolibm, ldexp.
34611         (Mathematics <math.h>): New section, add printf-frexpl.
34612         (Support for systems lacking POSIX:2001): Add fprintf-posix,
34613         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34614         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34615         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34616         (Unicode string functions): Add unistr/u*-mbtoucr.
34617         (Java): Add javacomp-script, javaexec-script.
34618         (C#): Add csharpcomp-script, csharpexec-script.
34619         (Support for building libraries and executables): Add havelib,
34620         relocatable-*.
34621         (Support for maintaining and releasing projects): Renamed from
34622         'Support for maintaining and release projects'. Add announce-gen.
34623
34624 2007-03-31  Bruno Haible  <bruno@clisp.org>
34625
34626         * README: Talk primarily about git.
34627         (git and CVS): Renamed from CVS.
34628         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34629         gnulib is available through git.
34630         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34631
34632 2007-03-30  Bruno Haible  <bruno@clisp.org>
34633
34634         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34635         * lib/poll_.h: Likewise.
34636         * lib/stat_.h: Likewise.
34637         * lib/sys_time_.h: Likewise.
34638         * lib/sysexit_.h: Likewise.
34639         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34640         * lib/stdbool_.h: Likewise.
34641         * lib/byteswap_.h: Add double-inclusion guard.
34642
34643 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
34644
34645         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34646
34647 2007-03-30  Karl Berry  <karl@gnu.org>
34648
34649         * config/srclist-update: double space after USA in the license
34650         substitution, since that's how it's usually (?) written.
34651
34652 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34653
34654         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34655         reported by Bruno Haible.
34656
34657 2007-03-29  Bruno Haible  <bruno@clisp.org>
34658
34659         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34660         a bug in AIX iconv().
34661
34662 2007-03-29  Bruno Haible  <bruno@clisp.org>
34663
34664         * modules/ldexpl-tests: New file.
34665         * tests/test-ldexpl.c: New file.
34666
34667 2007-03-29  Bruno Haible  <bruno@clisp.org>
34668
34669         * lib/ldexpl.c: Include fpucw.h.
34670         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34671         multiplication.
34672         * modules/ldexpl (Depends-on): Add fpucw.
34673
34674 2007-03-29  Bruno Haible  <bruno@clisp.org>
34675
34676         * modules/ldexpl: New file.
34677         * m4/ldexpl.m4: New file.
34678         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34679         set.
34680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34681         REPLACE_LDEXPL.
34682         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34683         REPLACE_LDEXPL.
34684         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34685         gl_FUNC_LDEXPL_WORKS.
34686         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34687         * modules/mathl (Files): Remove lib/ldexpl.c.
34688         (Depends-on): Add ldexpl.
34689
34690 2007-03-29  Bruno Haible  <bruno@clisp.org>
34691
34692         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34693
34694 2007-03-29  Bruno Haible  <bruno@clisp.org>
34695
34696         * tests/test-striconveh.c (main): Don't assume that a direct conversion
34697         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34698         and possibly also HP-UX.
34699         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34700         work on AIX, IRIX, HP-UX, OSF/1.
34701         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34702         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34703         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34704         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34705         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34706         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34707
34708 2007-03-29  Bruno Haible  <bruno@clisp.org>
34709
34710         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34711
34712 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34713
34714         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34715         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34716
34717 2007-03-29  Eric Blake  <ebb9@byu.net>
34718
34719         * lib/acl-internal.h: Remove redundant include.
34720         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34721         Cygwin when a file is locked.
34722
34723 2007-03-29  Bruno Haible  <bruno@clisp.org>
34724
34725         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34726         file.
34727         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34728
34729 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34730
34731         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34732         try to remove a parent directory if the child couldn't be removed
34733         (except for the first rmdir, which could fail because the child
34734         doesn't exist).  Problem reported by Jeff Blaine in
34735         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34736
34737 2007-03-28  Bruno Haible  <bruno@clisp.org>
34738
34739         * lib/striconveh.c (utf8conv_carefully): New function.
34740         (mem_cd_iconveh_internal): Invoke it.
34741
34742 2007-03-28  Bruno Haible  <bruno@clisp.org>
34743
34744         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34745         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34746         input.
34747         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34748         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34749         unistr/u8-uctomb.
34750
34751 2007-03-28  Bruno Haible  <bruno@clisp.org>
34752
34753         * modules/unistr/u8-mbtoucr: New file.
34754         * lib/unistr/u8-mbtoucr.c: New file.
34755         * modules/unistr/u16-mbtoucr: New file.
34756         * lib/unistr/u16-mbtoucr.c: New file.
34757         * modules/unistr/u16-mbtoucr: New file.
34758         * lib/unistr/u16-mbtoucr.c: New file.
34759         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34760
34761 2007-03-27  Simon Josefsson  <simon@josefsson.org>
34762             Bruno Haible  <bruno@clisp.org>
34763
34764         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34765         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
34766         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34767
34768         * m4/stdio_h.m4: Add stubs for vasprintf too.
34769
34770         * modules/stdio: Support vasprintf in sed command.
34771
34772         * modules/vasprintf: Depend on stdio for prototypes.  Remove
34773         vasprintf.h.  Add stdio module indicator.
34774
34775         * lib/stdio_.h: Declare asprintf and vasprintf, based on
34776         vasprintf.h.
34777
34778         * lib/vasprintf.h: File removed.
34779
34780         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34781         * lib/vasprintf.c: Ditto.
34782         * lib/xvasprintf.c: Ditto.
34783         * tests/test-vasprintf-posix.c: Ditto.
34784         * tests/test-vasprintf.c: Ditto.
34785
34786 2007-03-27  Bruno Haible  <bruno@clisp.org>
34787
34788         Make vasnprintf multithread-safe.
34789         * lib/vasnprintf.c (decimal_point_char): New function.
34790         (VASNPRINTF): Use it.
34791         Suggested by Simon Josefsson.
34792
34793 2007-03-27  Eric Blake  <ebb9@byu.net>
34794
34795         Support sub-second birthtime on cygwin.
34796         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34797         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34798         (get_stat_birthtime): Also work with st_birthtim.
34799
34800 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
34801
34802         * lib/stat-time.h (USE_BIRTHTIME): Remove.
34803         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34804         (get_stat_birthtime_ns): Do not try to use "spare" fields.
34805         (get_stat_birthtime_ns): Simplify compile-time tests.
34806         (get_stat_birthtime): Change the API to look like
34807         get_stat_mtime etc., except return a negative tv_nsec on error.
34808         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34809         Don't check for "spare" fields.
34810         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34811         or for struct stat.st_birthtime, as these tests aren't used.
34812         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34813
34814 2007-03-27  Bruno Haible  <bruno@clisp.org>
34815
34816         * lib/stat-time.h: Include <sys/stat.h>.
34817
34818 2007-03-27  James Youngman  <jay@gnu.org>
34819
34820         * lib/stat-time.h (get_stat_birthtime): New function for
34821           retrieving st_birthtime as provided by UFS2 (hence *BSD).
34822         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34823           and its variants.
34824         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34825         * modules/stat-time-test: New file.
34826         * tests/test-stat-time.c: New test, devised by Bruno Haible.
34827
34828 2007-03-26  Bruno Haible  <bruno@clisp.org>
34829
34830         Better support of signalling NaNs.
34831         * lib/atanl.c: Include isnanl.h.
34832         (atanl): Perform test for NaN at the beginning of the function and
34833         through a call to isnanl.
34834         * lib/cosl.c: Include isnanl.h.
34835         (cosl): Perform test for NaN at the beginning of the function and
34836         through a call to isnanl.
34837         * lib/ldexpl.c: Include isnanl.h.
34838         (ldexpl): Perform test for NaN through a call to isnanl.
34839         * lib/logl.c: Include isnanl.h.
34840         (logl): Perform test for NaN at the beginning of the function and
34841         through a call to isnanl.
34842         * lib/sinl.c: Include isnanl.h.
34843         (sinl): Perform test for NaN at the beginning of the function and
34844         through a call to isnanl.
34845         * lib/sqrtl.c: Include isnanl.h.
34846         (sqrtl): Perform test for NaN at the beginning of the function and
34847         through a call to isnanl.
34848         * lib/tanl.c: Include isnanl.h.
34849         (tanl): Perform test for NaN at the beginning of the function and
34850         through a call to isnanl.
34851         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34852         * modules/mathl (Depends-on): Add isnanl.
34853
34854 2007-03-26  Eric Blake  <ebb9@byu.net>
34855
34856         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34857         regression in logic sense of previous patch.
34858
34859 2007-03-26  Bruno Haible  <bruno@clisp.org>
34860
34861         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34862         unportable shell command "if ! ...".
34863         Reported by Ralf Wildenhues.
34864
34865 2007-03-25  Bruno Haible  <bruno@clisp.org>
34866
34867         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34868         <sysexits.h> file, and only add EX_CONFIG.
34869         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34870         absolute file name and whether it is sufficient. Substitute also
34871         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34872         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34873         ABSOLUTE_SYSEXITS_H into sysexits.h.
34874
34875 2007-03-25  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34878         hints is NULL.
34879
34880 2007-03-25  Bruno Haible  <bruno@clisp.org>
34881
34882         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34883         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34884
34885 2007-03-25  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/vasnprintf.c: Include langinfo.h.
34888         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34889         multithread-safe.
34890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34891         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34892         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34893         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34895         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34896         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34898         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34899         Reported by Simon Josefsson.
34900
34901 2007-03-25  Bruno Haible  <bruno@clisp.org>
34902
34903         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34904         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34905         * modules/vasnprintf (Depends-on): Add stdint.
34906
34907 2007-03-25  Bruno Haible  <bruno@clisp.org>
34908
34909         * modules/fpieee: New file.
34910         * m4/fpieee.m4: New file.
34911         * modules/isnan-nolibm (Depends-on): Add fpieee.
34912         * modules/isnanl-nolibm (Depends-on): Add fpieee.
34913         * modules/isnanl (Depends-on): Add fpieee.
34914
34915 2007-03-25  Bruno Haible  <bruno@clisp.org>
34916
34917         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34918
34919 2007-03-25  Bruno Haible  <bruno@clisp.org>
34920
34921         Avoid test failures on IRIX 6.5.
34922         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34923         (main): Use it.
34924         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34925         macros.
34926         (main): Use them.
34927
34928 2007-03-25  Bruno Haible  <bruno@clisp.org>
34929
34930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34931         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34932         exists but doesn't work.
34933         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34934         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34935         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34936         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34937
34938 2007-03-25  Bruno Haible  <bruno@clisp.org>
34939
34940         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34941         returns inf. Needed on IRIX 6.5.
34942
34943 2007-03-25  Bruno Haible  <bruno@clisp.org>
34944
34945         * tests/test-frexpl.c: Include isnanl-nolibm.h.
34946         (main): Use isnanl instead of x != x idiom.
34947         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34948
34949         * tests/test-frexp.c: Include isnan.h.
34950         (main): Use isnan instead of x != x idiom.
34951         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34952
34953 2007-03-25  Bruno Haible  <bruno@clisp.org>
34954
34955         * tests/test-frexp.c (NaN): New function/macro.
34956         (main): Use it instead of 0.0 / 0.0.
34957         * tests/test-isnan.c (NaN): New function/macro.
34958         (main): Use it instead of 0.0 / 0.0.
34959         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34960         (test_function): Use it instead of 0.0 / 0.0.
34961         * tests/test-vasprintf-posix.c (NaN): New function/macro.
34962         (test_function): Use it instead of 0.0 / 0.0.
34963         * tests/test-snprintf-posix.h (NaN): New function/macro.
34964         (test_function): Use it instead of 0.0 / 0.0.
34965         * tests/test-sprintf-posix.h (NaN): New function/macro.
34966         (test_function): Use it instead of 0.0 / 0.0.
34967         * tests/test-fprintf-posix.h (NaN): New function/macro.
34968         (test_function): Use it instead of 0.0 / 0.0.
34969         * tests/test-printf-posix.h (NaN): New function/macro.
34970         (test_function): Use it instead of 0.0 / 0.0.
34971
34972         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34973
34974 2007-03-25  Bruno Haible  <bruno@clisp.org>
34975
34976         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34977
34978 2007-03-25  Bruno Haible  <bruno@clisp.org>
34979
34980         * lib/regexec.c (merge_state_with_log): Make static.
34981
34982 2007-03-25  Bruno Haible  <bruno@clisp.org>
34983
34984         * lib/trigl.c (kernel_rem_pio2): Make static.
34985
34986 2007-03-25  Bruno Haible  <bruno@clisp.org>
34987
34988         * lib/sincosl.c (sincosl_table): Make static.
34989
34990 2007-03-25  Bruno Haible  <bruno@clisp.org>
34991
34992         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34993         if the compiler does not support C99.
34994
34995 2007-03-25  Bruno Haible  <bruno@clisp.org>
34996
34997         * modules/time (Makefile.am): Ensure all rule action lines start with a
34998         tab.
34999
35000 2007-03-24  Bruno Haible  <bruno@clisp.org>
35001
35002         * modules/tsearch-tests: New file.
35003         * tests/test-tsearch.sh: New file.
35004         * tests/test-tsearch.c: New file, mostly copied from glibc.
35005
35006         * modules/search-tests: New file.
35007         * tests/test-search.c: New file.
35008
35009         * modules/search: New file.
35010         * lib/search_.h: New file, incorporating lib/tsearch.h.
35011         * m4/search_h.m4: New file.
35012         * lib/tsearch.h: Remove file.
35013         * lib/tsearch.c: Include search.h instead of tsearch.h.
35014         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
35015         HAVE_TSEARCH.
35016         * modules/tsearch (Files): Remove lib/tsearch.h.
35017         (Depends-on): Add search.
35018         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
35019         (Include): Change tsearch.h into search.h.
35020
35021 2007-03-24  Bruno Haible  <bruno@clisp.org>
35022
35023         * modules/fpucw: New file.
35024         * lib/fpucw.h: New file.
35025         * lib/frexp.c: Include fpucw.h.
35026         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35027         (FUNC): Use them.
35028         * lib/printf-frexp.c: Include fpucw.h.
35029         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
35030         (FUNC): Use them.
35031         * lib/vasnprintf.c: Include fpucw.h.
35032         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
35033         'long double' calculations.
35034         * tests/test-frexpl.c: Include fpucw.h.
35035         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35036         * tests/test-printf-frexpl.c: Include fpucw.h.
35037         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
35038         * modules/frexpl (Depends-on): Add fpucw.
35039         * modules/printf-frexpl (Depends-on): Likewise.
35040         * modules/fprintf-posix (Depends-on): Likewise.
35041         * modules/snprintf-posix (Depends-on): Likewise.
35042         * modules/sprintf-posix (Depends-on): Likewise.
35043         * modules/vasnprintf-posix (Depends-on): Likewise.
35044         * modules/vasprintf-posix (Depends-on): Likewise.
35045         * modules/vfprintf-posix (Depends-on): Likewise.
35046         * modules/vsnprintf-posix (Depends-on): Likewise.
35047         * modules/vsprintf-posix (Depends-on): Likewise.
35048         * modules/frexpl-tests (Depends-on): Likewise.
35049         * modules/printf-frexpl-tests (Depends-on): Likewise.
35050
35051 2007-03-24  Bruno Haible  <bruno@clisp.org>
35052
35053         * lib/float+.h: New file.
35054         * lib/isnan.c: Include float+.h.
35055         (SIZE): New macro.
35056         (FUNC): Compare only SIZE bytes of the value.
35057         * lib/vasnprintf.c: Include float+.h.
35058         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
35059         SIZEOF_LDBL or SIZEOF_DBL bytes.
35060         * modules/isnan-nolibm (Files): Add lib/float+.h.
35061         * modules/isnanl-nolibm (Files): Add lib/float+.h.
35062         * modules/isnanl (Files): Add lib/float+.h.
35063         * modules/vasnprintf (Files): Add lib/float+.h.
35064
35065 2007-03-24  Bruno Haible  <bruno@clisp.org>
35066
35067         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
35068         include isnanl-nolibm.h.
35069
35070 2007-03-24  Bruno Haible  <bruno@clisp.org>
35071
35072         * tests/test-read-file.c (main): Don't produce spurious output for
35073         expected situations. Make the test fail if it encountered unexpected
35074         results.
35075
35076 2007-03-24  Bruno Haible  <bruno@clisp.org>
35077
35078         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
35079         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
35080
35081 2007-03-24  Bruno Haible  <bruno@clisp.org>
35082
35083         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
35084
35085 2007-03-24  Bruno Haible  <bruno@clisp.org>
35086
35087         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
35088         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
35089
35090         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
35091         * modules/utf8-ucs4: Turn into a symbolic link to module
35092         unistr/u8-mbtouc.
35093
35094         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
35095         utf8-ucs4-unsafe.
35096         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
35097         unistr/u8-mbtouc-unsafe.
35098
35099         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
35100         * modules/utf16-ucs4: Turn into a symbolic link to module
35101         unistr/u16-mbtouc.
35102
35103         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
35104         utf16-ucs4-unsafe.
35105         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
35106         unistr/u16-mbtouc-unsafe.
35107
35108         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
35109         * modules/ucs4-utf8: Turn into a symbolic link to module
35110         unistr/u8-ubtomb.
35111
35112         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
35113         * modules/ucs4-utf16: Turn into a symbolic link to module
35114         unistr/u16-ubtomb.
35115
35116 2007-03-24  Bruno Haible  <bruno@clisp.org>
35117
35118         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
35119         Enable the function only if HAVE_INLINE.
35120         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
35121         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35122         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
35123         Enable the function only if HAVE_INLINE.
35124         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
35125         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
35126         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
35127         Enable the function only if HAVE_INLINE.
35128         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
35129         Enable the function only if HAVE_INLINE.
35130         * modules/utf8-ucs4: Update.
35131         * modules/utf8-ucs4-unsafe: Update.
35132         * modules/utf16-ucs4: Update.
35133         * modules/utf16-ucs4-unsafe: Update.
35134         * modules/ucs4-utf8: Update.
35135         * modules/ucs4-utf16: Update.
35136
35137 2007-03-24  Bruno Haible  <bruno@clisp.org>
35138
35139         * lib/utf8-ucs4.h: Remove file.
35140         * lib/utf8-ucs4-unsafe.h: Remove file.
35141         * lib/utf16-ucs4.h: Remove file.
35142         * lib/utf16-ucs4-unsafe.h: Remove file.
35143         * lib/ucs4-utf8.h: Remove file.
35144         * lib/ucs4-utf16.h: Remove file.
35145         * lib/unistr.h: Include their previous contents.
35146         * m4/utf-ucs4.m4: Remove file.
35147         * m4/ucs4-utf.m4: Remove file.
35148         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
35149         (Depends-on): Add unistr/base.
35150         (configure.ac): Remove gl_UTF_UCS4.
35151         (Makefile.am): Update.
35152         (Include): Change to unistr.h.
35153         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
35154         (Depends-on): Add unistr/base.
35155         (configure.ac): Remove gl_UTF_UCS4.
35156         (Makefile.am): Update.
35157         (Include): Change to unistr.h.
35158         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
35159         (Depends-on): Add unistr/base.
35160         (configure.ac): Remove gl_UTF_UCS4.
35161         (Makefile.am): Update.
35162         (Include): Change to unistr.h.
35163         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
35164         (Depends-on): Add unistr/base.
35165         (configure.ac): Remove gl_UTF_UCS4.
35166         (Makefile.am): Update.
35167         (Include): Change to unistr.h.
35168         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
35169         (Depends-on): Add unistr/base.
35170         (configure.ac): Remove gl_UCS4_UTF.
35171         (Makefile.am): Update.
35172         (Include): Change to unistr.h.
35173         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
35174         (Depends-on): Add unistr/base.
35175         (configure.ac): Remove gl_UCS4_UTF.
35176         (Makefile.am): Update.
35177         (Include): Change to unistr.h.
35178         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
35179         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
35180         utf8-ucs4-unsafe.h.
35181         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
35182         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
35183         utf16-ucs4-unsafe.h.
35184         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
35185         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
35186         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
35187         * lib/unistr/u8-strchr.c: Likewise.
35188         * lib/unistr/u8-strrchr.c: Likewise.
35189         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
35190         * lib/unistr/u16-strchr.c: Likewise.
35191         * lib/unistr/u16-strrchr.c: Likewise.
35192         * lib/striconveh.c: Update.
35193         * lib/linebreak.c: Update.
35194
35195 2007-03-24  Bruno Haible  <bruno@clisp.org>
35196
35197         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
35198         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
35199
35200 2007-03-22  Bruno Haible  <bruno@clisp.org>
35201
35202         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
35203
35204 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
35205
35206         * MODULES.html.sh (File system functions): New module write-any-file.
35207         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
35208         * m4/write-any-file.m4: New files.
35209
35210 2007-03-23  Eric Blake  <ebb9@byu.net>
35211
35212         * gnulib-tool: Rearrange space-tab sequences, since some editors
35213         like to eat them.
35214
35215 2007-03-23  Eric Blake  <ebb9@byu.net>
35216
35217         * lib/version-etc.c (version_etc_va): Update license wording to
35218         be more concise.  Recommended by Richard Stallman.
35219
35220 2007-03-22  Bruno Haible  <bruno@clisp.org>
35221
35222         * lib/poll.c (MSG_PEEK): New fallback definition.
35223
35224 2007-03-22  Bruno Haible  <bruno@clisp.org>
35225
35226         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
35227         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
35228         (main): Update.
35229         Fixes a compilation error on BeOS.
35230
35231 2007-03-22  Bruno Haible  <bruno@clisp.org>
35232
35233         * modules/frexpl-tests: New file.
35234         * tests/test-frexpl.c: New file.
35235
35236         * modules/frexpl: New file.
35237         * m4/frexpl.m4: New file.
35238         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
35239         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
35240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
35241         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
35242         (Depends-on): Add frexpl. Remove isnanl-nolibm.
35243         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
35244
35245 2007-03-22  Bruno Haible  <bruno@clisp.org>
35246
35247         * lib/frexpl.c: Share code with lib/frexp.c.
35248         * modules/mathl (Files): Add lib/frexp.c.
35249         (Depends-on): Add isnanl-nolibm.
35250
35251 2007-03-22  Bruno Haible  <bruno@clisp.org>
35252
35253         * modules/printf-frexp (Files): Add m4/frexp.m4.
35254         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
35255         only if the found frexp function actually works.
35256
35257 2007-03-22  Bruno Haible  <bruno@clisp.org>
35258
35259         * lib/frexp.c: Remove older implementation that uses divisions.
35260
35261 2007-03-21  Bruno Haible  <bruno@clisp.org>
35262
35263         * modules/frexp-tests: New file.
35264         * tests/test-frexp.c: New file.
35265
35266         * modules/frexp: New file.
35267         * lib/frexp.c: New file.
35268         * m4/frexp.m4: New file.
35269         * lib/math_.h (frexp): New declaration.
35270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
35271         REPLACE_FREXP.
35272         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
35273
35274 2007-03-21  Bruno Haible  <bruno@clisp.org>
35275
35276         * modules/isnanl-tests: New file.
35277         * tests/test-isnanl.c: New file.
35278
35279         * modules/isnanl: New file.
35280         * lib/isnanl.h: New file.
35281         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
35282         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
35283         gl_FUNC_ISNANL_WORKS.
35284         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
35285         New macros.
35286
35287 2007-03-21  Bruno Haible  <bruno@clisp.org>
35288
35289         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
35290         lib/isnanl.h.
35291         (Include): Update.
35292         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
35293         * lib/vasnprintf.c: Update.
35294         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
35295         tests/test-isnanl.h, remove tests/test-isnanl.c.
35296         (Makefile.am): Update.
35297         * tests/test-isnanl-nolibm.c: New file.
35298         * tests/test-isnanl.h: New file.
35299         * tests/test-isnanl.c: Remove file.
35300
35301 2007-03-21  Jim Meyering  <jim@meyering.net>
35302
35303         When trying to open ".", treat ESTALE like EACCES.
35304         * lib/savewd.c (savewd_save): Resort to forking not just upon
35305         failure with EACCES, but also when errno is ESTALE.
35306
35307 2007-03-20  Bruno Haible  <bruno@clisp.org>
35308
35309         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
35310         Needed on AIX 5.1. Reported by Matthew Woehlke.
35311
35312 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35313
35314         Suggestions by Bruno Haible:
35315         * lib/acl-internal.h: Include "gettext.h" rather than rolling
35316         our own.
35317         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
35318         * modules/acl (Depends-on): Add gettext.
35319
35320 2007-03-19  Bruno Haible  <bruno@clisp.org>
35321
35322         * modules/iconvme: Remove file.
35323         * lib/iconvme.h: Remove file.
35324         * lib/iconvme.c: Remove file.
35325         * m4/iconvme.m4: Remove file.
35326
35327 2007-03-19  Bruno Haible  <bruno@clisp.org>
35328
35329         * doc/relocatable-maint.texi: Break long shell script line.
35330         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35331
35332 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35333
35334         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
35335         handle file_has_acl.
35336         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
35337         * lib/acl.c: Move header inclusions and related macro defns into
35338         lib/acl-internal.h.
35339         (S_ISLNK): Remove defn, since that's now done for us.
35340         (file_has_acl): Move to lib/file-has-acl.c.
35341         Call acl_trivial if available.  This is the crucial part of the fix.
35342         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
35343         shared within the library.  Rewrite a bit, partly to make it compatible
35344         with the GNU coding style.
35345         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
35346         Remove unnecessary double-quotes.
35347         Don't test for acl_to_text; the build will catch that.
35348         Replace acl_entries if it doesn't exist and it is needed.
35349         Check for -lsec and acl_trivial (as used on Solaris 10).
35350         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
35351         lib/file-has-acl.c.
35352         (Depends-on): Add sys_stat, for S_ISLNK.
35353
35354 2007-03-19  Ben Pfaff  <blp@gnu.org>
35355
35356         * doc/gnulib.texi: Fix typos.
35357         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
35358
35359 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35360
35361         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
35362         If size is zero here, buf must be zero.
35363
35364 2007-03-19  Simon Josefsson  <simon@josefsson.org>
35365
35366         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
35367         <bruno@clisp.org>.
35368
35369 2007-03-18  Bruno Haible  <bruno@clisp.org>
35370
35371         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
35372         Suggested by Eric Blake.
35373
35374 2007-03-18  Ben Pfaff  <blp@gnu.org>
35375
35376         * doc/relocatable.texi: Recommend using as prefix a directory
35377         that does not exist and will never be created.  Based on
35378         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
35379         and others.
35380
35381 2007-03-17  Bruno Haible  <bruno@clisp.org>
35382
35383         * lib/fchownat.c: Include lchown.h.
35384
35385 2007-03-17  Bruno Haible  <bruno@clisp.org>
35386
35387         Fix endless loop when the given allocated size was > INT_MAX.
35388         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
35389         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
35390         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
35391         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
35392         * lib/sprintf.c (sprintf): Likewise.
35393
35394 2007-03-17  Bruno Haible  <bruno@clisp.org>
35395
35396         * tests/test-argp-2.sh (func_compare): Output a context diff.
35397
35398 2007-03-17  Bruno Haible  <bruno@clisp.org>
35399
35400         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
35401         locale's decimal-point character.
35402
35403 2007-03-17  Bruno Haible  <bruno@clisp.org>
35404
35405         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
35406         before comparing it. Needed because on some platforms (e.g. x86) a
35407         'long double' occupies less bytes than sizeof (long double).
35408
35409 2007-03-17  Bruno Haible  <bruno@clisp.org>
35410
35411         * tests/test-crc.c (main): Make printf statements 64-bit clean.
35412         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
35413         * tests/test-getaddrinfo.c (simple): Likewise.
35414         * tests/test-read-file.c (main): Likewise.
35415
35416 2007-03-17  Bruno Haible  <bruno@clisp.org>
35417
35418         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
35419
35420 2007-03-17  Bruno Haible  <bruno@clisp.org>
35421
35422         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
35423         unused variable.
35424
35425 2007-03-17  Bruno Haible  <bruno@clisp.org>
35426
35427         * tests/test-c-strcasecmp.c: Include c-strcase.h.
35428         * tests/test-c-strncasecmp.c: Likewise.
35429
35430 2007-03-17  Bruno Haible  <bruno@clisp.org>
35431
35432         * modules/stdlib (Depends-on): Add unistd.
35433         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
35434         Needed for MacOS X 10.3.
35435
35436 2007-03-17  Bruno Haible  <bruno@clisp.org>
35437
35438         * lib/unistr/u-strdup.h: Include <stdlib.h>.
35439
35440 2007-03-17  Bruno Haible  <bruno@clisp.org>
35441
35442         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
35443
35444 2007-03-17  Bruno Haible  <bruno@clisp.org>
35445
35446         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
35447         to reflect files copied from gnulib (with or without modifications).
35448         Suggested by Jim Meyering.
35449
35450 2007-03-17  Eric Blake  <ebb9@byu.net>
35451
35452         * NEWS: Document stdlib change from 2007-02-18.
35453
35454 2007-03-17  Jim Meyering  <jim@meyering.net>
35455
35456         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35457         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35458         someone uses a name containing shell meta-characters.
35459         Reported by Alfred M. Szmidt.
35460
35461         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
35462
35463 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35464
35465         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
35466         and copy gettext configuration files only if configure.ac contains
35467         a use of AM_GNU_GETTEXT_VERSION.
35468
35469 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
35470
35471         * build-aux/bootstrap (gnulib_name): New variable.
35472         (gnulib_tool_options): Use it.
35473
35474 2007-03-13  Simon Josefsson  <simon@josefsson.org>
35475
35476         * tests/test-des.c: Use new namespace.
35477
35478 2007-03-15  Bruno Haible  <bruno@clisp.org>
35479
35480         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35481         Reported by James Youngman <jay@gnu.org>.
35482
35483 2007-03-15  Bruno Haible  <bruno@clisp.org>
35484
35485         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35486         declared prototype. Needed with cc on OSF/1 5.1.
35487
35488 2007-03-15  Bruno Haible  <bruno@clisp.org>
35489
35490         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35491         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35492         (struct gl_list_implementation): Add dispose_fn argument to the
35493         'create_empty', 'create' methods.
35494         (struct gl_list_impl_base): Add field 'dispose_fn'.
35495         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35496         argument.
35497         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35498         dispose_fn argument.
35499         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35500         dispose_fn on the dropped values.
35501         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35502         dispose_fn argument.
35503         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35504         dropped values.
35505         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35506         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35507         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35508         (gl_tree_remove_node): Call dispose_fn on the dropped value.
35509         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35510         argument.
35511         (gl_tree_list_free): Call dispose_fn on the dropped values.
35512         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35513         the dropped values.
35514         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35515         Add dispose_fn argument.
35516         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35517         Call dispose_fn on the dropped values.
35518         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35519         Add dispose_fn argument.
35520         (gl_sublist_create): Initialize the 'dispose_fn' field.
35521         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35522         * tests/test-array_list.c (main): Update.
35523         * tests/test-carray_list.c (main): Update.
35524         * tests/test-avltree_list.c (main): Update.
35525         * tests/test-rbtree_list.c (main): Update.
35526         * tests/test-avltreehash_list.c (main): Update.
35527         * tests/test-rbtreehash_list.c (main): Update.
35528         * tests/test-linked_list.c (main): Update.
35529         * tests/test-linkedhash_list.c (main): Update.
35530         * tests/test-array_oset.c (main): Update.
35531
35532 2007-03-15  Bruno Haible  <bruno@clisp.org>
35533
35534         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35535         (gl_oset_create_empty): Add dispose_fn argument.
35536         (struct gl_oset_implementation): Add dispose_fn argument to
35537         'create_empty' method.
35538         (struct gl_oset_impl_base): Add dispose_fn field.
35539         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35540         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35541         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35542         values.
35543         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35544         (gl_tree_oset_free): Call dispose_fn on the dropped values.
35545         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35546         dropped value.
35547         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35548         dropped value.
35549         * tests/test-array_oset.c (main): Update.
35550         * tests/test-avltree_oset.c (main): Update.
35551         * tests/test-rbtree_oset.c (main): Update.
35552         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35553
35554 2007-03-13  Bruno Haible  <bruno@clisp.org>
35555
35556         * tests/test-stdbool.c (i): Update after last patch.
35557
35558 2007-03-12  Bruno Haible  <bruno@clisp.org>
35559
35560         * lib/quotearg.c: Include <wctype.h> early, before the definition of
35561         the iswprint macro. Needed on Solaris 2.5.1.
35562
35563 2007-03-12  Bruno Haible  <bruno@clisp.org>
35564
35565         * tests/test-printf-frexp.c (main): Declare x as volatile.
35566
35567 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35568
35569         * doc/gnulib.texi (Build robot for gnulib): New section.
35570
35571 2007-03-12  Jim Meyering  <jim@meyering.net>
35572
35573         * build-aux/bootstrap: New file.
35574         * build-aux/bootstrap.conf: New file, from coreutils.
35575
35576 2007-03-11  Bruno Haible  <bruno@clisp.org>
35577
35578         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35579
35580 2007-03-12  Simon Josefsson  <simon@josefsson.org>
35581
35582         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35583         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
35584         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
35585
35586 2007-03-11  Bruno Haible  <bruno@clisp.org>
35587
35588         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35589         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35590
35591 2007-03-11  Bruno Haible  <bruno@clisp.org>
35592
35593         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35594         formula. Needed for SunPRO C 5.0.
35595
35596 2007-03-11  Bruno Haible  <bruno@clisp.org>
35597
35598         * modules/long-options (Depends-on): Add getopt.
35599
35600 2007-03-11  Bruno Haible  <bruno@clisp.org>
35601
35602         * modules/modechange (Depends-on): Add stdbool.
35603
35604 2007-03-11  Bruno Haible  <bruno@clisp.org>
35605
35606         * modules/i-ring (Depends-on): Add stdbool.
35607
35608 2007-03-11  Bruno Haible  <bruno@clisp.org>
35609
35610         * modules/gc-des (Depends-on): Add stdbool.
35611
35612 2007-03-11  Bruno Haible  <bruno@clisp.org>
35613
35614         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35615
35616 2007-03-11  Bruno Haible  <bruno@clisp.org>
35617
35618         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35619
35620 2007-03-11  Bruno Haible  <bruno@clisp.org>
35621
35622         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35623
35624 2007-03-11  Bruno Haible  <bruno@clisp.org>
35625
35626         * lib/vasnprintf.c (sprintf): Undefine.
35627
35628 2007-03-11  Bruno Haible  <bruno@clisp.org>
35629
35630         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35631         initializers in SunPRO C and Compaq C compilers.
35632
35633 2007-03-11  Bruno Haible  <bruno@clisp.org>
35634
35635         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35636         decrementing code ANSI C compliant.
35637
35638 2007-03-11  Bruno Haible  <bruno@clisp.org>
35639
35640         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35641         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35642
35643 2007-03-11  Bruno Haible  <bruno@clisp.org>
35644
35645         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35646         <stdbool.h> substitute doesn't pass.
35647
35648 2007-03-11  Bruno Haible  <bruno@clisp.org>
35649
35650         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35651
35652 2007-03-11  Bruno Haible  <bruno@clisp.org>
35653
35654         * gnulib-tool (func_create_megatestdir): Create also an autobuild
35655         script, for submission to autobuild.josefsson.org.
35656
35657 2007-03-10  Bruno Haible  <bruno@clisp.org>
35658
35659         * modules/canonicalize-lgpl-tests: New file.
35660         * tests/test-canonicalize-lgpl.sh: New file.
35661         * tests/test-canonicalize-lgpl.c: New file.
35662
35663         * modules/c-strcase-tests: New file.
35664         * tests/test-c-strcase.sh: New file.
35665         * tests/test-c-strcasecmp.c: New file.
35666         * tests/test-c-strncasecmp.c: New file.
35667
35668         * modules/atexit-tests: New file.
35669         * tests/test-atexit.sh: New file.
35670         * tests/test-atexit.c: New file.
35671
35672 2007-03-10  Bruno Haible  <bruno@clisp.org>
35673
35674         * tests/test-binary-io.sh: Use temporary filenames that are not so
35675         likely to clash with those of other tests (in a parallel make).
35676         * tests/test-binary-io.c: Likewise.
35677
35678 2007-03-10  Bruno Haible  <bruno@clisp.org>
35679
35680         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35681         fallback; use #error instead.
35682         Suggested by Simon Josefsson.
35683
35684 2007-03-10  Bruno Haible  <bruno@clisp.org>
35685
35686         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35687         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35688         first and the last.
35689
35690 2007-03-10  Bruno Haible  <bruno@clisp.org>
35691
35692         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35693
35694 2007-03-10  Bruno Haible  <bruno@clisp.org>
35695
35696         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35697         "make distcheck".
35698         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35699         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35700         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35701
35702 2007-03-10  Bruno Haible  <bruno@clisp.org>
35703
35704         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35705         variable.
35706         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35707         variable.
35708
35709 2007-03-09  Eric Blake  <ebb9@byu.net>
35710         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
35711
35712         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35713         types are not being provided by gnulib.
35714         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35715         types are supported.
35716
35717 2007-03-10  Bruno Haible  <bruno@clisp.org>
35718
35719         * lib/stdio_.h (__attribute__): New macro.
35720         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35721         vsprintf): Specify __attribute__ __format__ for GCC.
35722         Suggested by Eric Blake.
35723
35724 2007-03-09  Bruno Haible  <bruno@clisp.org>
35725
35726         * modules/printf-posix-tests: New file.
35727         * tests/test-printf-posix.sh: New file.
35728         * tests/test-printf-posix.c: New file.
35729
35730         * modules/printf-posix: New file.
35731         * lib/printf.c: New file.
35732         * m4/printf-posix-rpl.m4: New file.
35733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35734         REPLACE_PRINTF.
35735         * lib/stdio_.h (printf): New declaration.
35736         (format, __format__, ____printf____, ____scanf____, ____strftime____,
35737         ____strfmon____): New macros.
35738         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35739         REPLACE_PRINTF.
35740
35741 2007-03-09  Bruno Haible  <bruno@clisp.org>
35742
35743         * tests/test-vasnprintf-posix2.sh: New file.
35744         * tests/test-vasnprintf-posix2.c: New file.
35745         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35746         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35747         (Makefile.am): Activate test-vasnprintf-posix2.sh.
35748
35749         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35750         a locale dependent decimal point, rather than always '.'.
35751
35752 2007-03-09  Eric Blake  <ebb9@byu.net>
35753
35754         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35755         spite of platforms like Tandem/NSK that define it to -1.
35756
35757 2007-03-08  Bruno Haible  <bruno@clisp.org>
35758
35759         * modules/vprintf-posix-tests: New file.
35760         * tests/test-vprintf-posix.sh: New file.
35761         * tests/test-vprintf-posix.c: New file.
35762         * tests/test-printf-posix.h: New file.
35763
35764         * modules/vprintf-posix: New file.
35765         * lib/vprintf.c: New file.
35766         * m4/vprintf-posix.m4: New file.
35767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35768         REPLACE_VPRINTF.
35769         * lib/stdio_.h (vprintf): New declaration.
35770         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35771         REPLACE_VPRINTF.
35772
35773 2007-03-08  Bruno Haible  <bruno@clisp.org>
35774
35775         * modules/fprintf-posix-tests: New file.
35776         * tests/test-fprintf-posix.sh: New file.
35777         * tests/test-fprintf-posix.c: New file.
35778
35779         * modules/fprintf-posix: New file.
35780         * lib/fprintf.c: New file.
35781         * m4/fprintf-posix.m4: New file.
35782         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35783         REPLACE_FPRINTF.
35784         * lib/stdio_.h (fprintf): New declaration.
35785         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35786         REPLACE_FPRINTF.
35787
35788 2007-03-08  Bruno Haible  <bruno@clisp.org>
35789
35790         * modules/vfprintf-posix-tests: New file.
35791         * tests/test-vfprintf-posix.sh: New file.
35792         * tests/test-vfprintf-posix.c: New file.
35793         * tests/test-fprintf-posix.h: New file.
35794         * tests/test-fprintf-posix.out: New file.
35795
35796         * modules/vfprintf-posix: New file.
35797         * lib/vfprintf.c: New file.
35798         * m4/vfprintf-posix.m4: New file.
35799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35800         REPLACE_VFPRINTF.
35801         * lib/stdio_.h (vfprintf): New declaration.
35802         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35803         REPLACE_VFPRINTF.
35804
35805 2007-03-08  Bruno Haible  <bruno@clisp.org>
35806
35807         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35808
35809 2007-03-08  Bruno Haible  <bruno@clisp.org>
35810
35811         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35812         instead of 'expr' invocations.
35813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35816         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35817         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35818         Suggested by Paul Eggert.
35819
35820 2007-03-08  Bruno Haible  <bruno@clisp.org>
35821
35822         * modules/fseterr-tests: New file.
35823         * tests/test-fseterr.c: New file.
35824
35825         * modules/fseterr: New file.
35826         * lib/fseterr.h: New file.
35827         * lib/fseterr.c: New file.
35828
35829 2007-03-08  Bruno Haible  <bruno@clisp.org>
35830
35831         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35832         * lib/getopt_.h: Likewise.
35833         * lib/mbswidth.h: Likewise.
35834         * lib/setenv.h: Likewise.
35835         * lib/vasnprintf.h: Likewise.
35836         * lib/vasprintf.h: Likewise.
35837         * lib/verror.h: Likewise.
35838         * lib/xsetenv.h: Likewise.
35839         * lib/xvasprintf.h: Likewise.
35840
35841 2007-03-08  Jim Meyering  <jim@meyering.net>
35842
35843         * users.txt: Add parted.
35844
35845         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35846
35847 2007-03-07  Bruno Haible  <bruno@clisp.org>
35848
35849         * m4/printf.m4: Make the shell script snippets copy&pastable.
35850
35851 2007-03-02  Bruno Haible  <bruno@clisp.org>
35852
35853         * lib/netinet_in_.h: New file.
35854         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35855         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35856         * modules/netinet_in (Files): Add lib/netinet_in_.h.
35857         (Depends-on): Add absolute-header.
35858         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35859         into netinet/in.h.
35860
35861 2007-03-03  Bruno Haible  <bruno@clisp.org>
35862
35863         * lib/sys_select_.h: New file.
35864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35865         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35866         * modules/sys_select (Files): Add lib/sys_select_.h.
35867         (Depends-on): Add absolute-header.
35868         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35869         into sys/select.h.
35870
35871 2007-03-02  Bruno Haible  <bruno@clisp.org>
35872
35873         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35874         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35875         values.
35876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35877         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35878         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35879         * modules/sys_socket (Depends-on): Add absolute-header.
35880         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35881         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35882         (Include): Remove requirement of inclusion of <sys/types.h>.
35883
35884 2007-03-02  Bruno Haible  <bruno@clisp.org>
35885
35886         * lib/byteswap_.h (bswap_32): Fix formula.
35887
35888 2007-03-06  Bruno Haible  <bruno@clisp.org>
35889
35890         * modules/sprintf-posix-tests: New file.
35891         * tests/test-sprintf-posix.c: New file.
35892
35893         * modules/sprintf-posix: New file.
35894         * lib/sprintf.c: New file.
35895         * m4/sprintf-posix.m4: New file.
35896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35897         REPLACE_SPRINTF.
35898         * lib/stdio_.h (sprintf): New declaration.
35899         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35900         REPLACE_SPRINTF.
35901
35902 2007-03-06  Bruno Haible  <bruno@clisp.org>
35903
35904         * modules/vsprintf-posix-tests: New file.
35905         * tests/test-vsprintf-posix.c: New file.
35906         * tests/test-sprintf-posix.h: New file.
35907
35908         * modules/vsprintf-posix: New file.
35909         * lib/vsprintf.c: New file.
35910         * m4/vsprintf-posix.m4: New file.
35911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35912         REPLACE_VSPRINTF.
35913         * lib/stdio_.h (vsprintf): New declaration.
35914         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35915         REPLACE_VSPRINTF.
35916
35917 2007-03-06  Bruno Haible  <bruno@clisp.org>
35918
35919         * modules/vsnprintf (Depend-on): Remove minmax.
35920
35921 2007-03-06  Bruno Haible  <bruno@clisp.org>
35922
35923         * modules/snprintf-posix-tests: New file.
35924         * tests/test-snprintf-posix.c: New file.
35925
35926         * modules/snprintf-posix: New file.
35927         * m4/snprintf-posix.m4: New file.
35928         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35929         gl_FUNC_SNPRINTF.
35930         (gl_FUNC_SNPRINTF): Invoke it.
35931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35932         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35933         is set.
35934         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35935
35936 2007-03-06  Bruno Haible  <bruno@clisp.org>
35937
35938         * modules/vsnprintf-posix-tests: New file.
35939         * tests/test-vsnprintf-posix.c: New file.
35940         * tests/test-snprintf-posix.h: New file.
35941
35942         * modules/vsnprintf-posix: New file.
35943         * m4/vsnprintf-posix.m4: New file.
35944         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35945         gl_FUNC_VSNPRINTF.
35946         (gl_FUNC_VSNPRINTF): Invoke it.
35947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35948         * lib/stdio_.h (vsnprintf): Define as a replacement if
35949         REPLACE_VSNPRINTF is set.
35950         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35951
35952 2007-03-06  Bruno Haible  <bruno@clisp.org>
35953
35954         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35956
35957 2007-03-06  Bruno Haible  <bruno@clisp.org>
35958
35959         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35960         (asinl): Declare also if HAVE_DECL_ASINL is set.
35961         (atanl): Declare also if HAVE_DECL_ATANL is set.
35962         (ceill): Declare also if HAVE_DECL_CEILL is set.
35963         (cosl): Declare also if HAVE_DECL_COSL is set.
35964         (expl): Declare also if HAVE_DECL_EXPL is set.
35965         (floorl): Declare also if HAVE_DECL_FLOORL is set.
35966         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35967         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35968         (logl): Declare also if HAVE_DECL_LOGL is set.
35969         (sinl): Declare also if HAVE_DECL_SINL is set.
35970         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35971         (tanl): Declare also if HAVE_DECL_TANL is set.
35972         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35974         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35975         declaration of frexpl, ldexpl.
35976         * modules/printf-frexpl (Depends-on): Add math.
35977         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35978
35979 2007-03-05  Bruno Haible  <bruno@clisp.org>
35980
35981         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35982         frexpl and ldexpl are declared.
35983         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35984
35985 2007-03-05  Bruno Haible  <bruno@clisp.org>
35986
35987         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35988         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35989
35990 2007-03-05  Bruno Haible  <bruno@clisp.org>
35991
35992         * lib/stdio_.h: Include <stddef.h>.
35993
35994 2007-03-05  Bruno Haible  <bruno@clisp.org>
35995
35996         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35997
35998 2007-03-05  Bruno Haible  <bruno@clisp.org>
35999
36000         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
36001         NetBSD 4, from Ralf Wildenhues.
36002
36003 2007-03-04  Bruno Haible  <bruno@clisp.org>
36004
36005         * lib/vasprintf.h: Update #if logic for the case when the functions
36006         exist but are overridden.
36007
36008 2007-03-04  Bruno Haible  <bruno@clisp.org>
36009
36010         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
36011         implementations: glibc-2.4 and MacOS X 10.3.
36012         * tests/test-vasnprintf-posix.c (test_function): Test also the case
36013         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
36014         * tests/test-vasprintf-posix.c (test_function): Likewise.
36015
36016 2007-03-04  Bruno Haible  <bruno@clisp.org>
36017
36018         * modules/vasprintf-posix-tests: New file.
36019         * tests/test-vasprintf-posix.c: New file.
36020
36021         * modules/vasprintf-posix: New file.
36022         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
36023         defined.
36024         * m4/vasprintf-posix.m4: New file.
36025         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
36026         gl_FUNC_VASPRINTF.
36027         (gl_FUNC_VASPRINTF): Invoke it.
36028         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
36029         here.
36030         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
36031
36032 2007-03-04  Bruno Haible  <bruno@clisp.org>
36033
36034         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
36035         REPLACE_GETTIMEOFDAY.
36036         * modules/sys_time (Makefile.am): Likewise.
36037         * m4/sys_time_h.m4: Likewise.
36038         * m4/gettimeofday.m4: Likewise.
36039
36040 2007-03-04  Bruno Haible  <bruno@clisp.org>
36041
36042         * modules/vasnprintf-posix-tests: New file.
36043         * tests/test-vasnprintf-posix.c: New file.
36044
36045         * modules/vasnprintf-posix: New file.
36046         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
36047         printf-frexpl.h.
36048         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
36049         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
36050         REPLACE_VASNPRINTF is defined.
36051         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
36052         gl_FUNC_VASNPRINTF.
36053         (gl_FUNC_VASNPRINTF): Invoke it.
36054         * m4/vasnprintf-posix.m4: New file.
36055         * m4/printf.m4: New file.
36056
36057 2007-03-04  Bruno Haible  <bruno@clisp.org>
36058
36059         Compile progreloc.c only if --enable-relocatable is specified.
36060         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
36061         if --enable-relocatable was specified.
36062         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
36063         lib_SOURCES.
36064
36065 2007-03-04  Jim Meyering  <jim@meyering.net>
36066
36067         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
36068         Use it consistently, rather than enumerating errno constants.
36069
36070 2007-03-04  Bruno Haible  <bruno@clisp.org>
36071
36072         * modules/xvasprintf-tests: New file.
36073         * tests/test-xvasprintf.c: New file.
36074
36075         * modules/vasprintf-tests: New file.
36076         * tests/test-vasprintf.c: New file.
36077
36078         * modules/vasnprintf-tests: New file.
36079         * tests/test-vasnprintf.c: New file.
36080
36081         * modules/vsnprintf-tests: New file.
36082         * tests/test-vsnprintf.c: New file.
36083
36084         * modules/snprintf-tests: New file.
36085         * tests/test-snprintf.c: New file.
36086
36087 2007-03-04  Bruno Haible  <bruno@clisp.org>
36088
36089         Compile relocatable.c only if --enable-relocatable is specified.
36090         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
36091         gl_RELOCATABLE_LIBRARY.
36092         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
36093         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
36094         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
36095         gl_RELOCATABLE_LIBRARY.
36096         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
36097         (Makefile.am): Remove lib_SOURCES.
36098         * modules/relocatable-lib-lgpl (configure.ac): Invoke
36099         gl_RELOCATABLE_LIBRARY.
36100         (Makefile.am): Remove lib_SOURCES.
36101         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
36102         always.
36103         * modules/relocatable-prog-wrapper (configure.ac): Invoke
36104         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
36105
36106 2007-03-04  Bruno Haible  <bruno@clisp.org>
36107
36108         * modules/argmatch-tests: New file.
36109         * tests/test-argmatch.c: New file.
36110
36111         * tests/test-allocsa.c (main): Halve the number of loop runs.
36112
36113         * modules/alloca-opt-tests: New file.
36114         * tests/test-alloca-opt.c: New file.
36115
36116 2007-03-04  Jim Meyering  <jim@meyering.net>
36117
36118         Work around difference between Linux ACLs and Solaris 10 ZFS.
36119         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
36120         for EINVAL.
36121
36122 2007-03-03  Bruno Haible  <bruno@clisp.org>
36123
36124         * modules/relocatable-prog (Depends-on): Add back progreloc's
36125         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
36126
36127 2007-03-03  Bruno Haible  <bruno@clisp.org>
36128
36129         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
36130         * modules/relocatable-lib: New file.
36131
36132 2007-03-03  Bruno Haible  <bruno@clisp.org>
36133
36134         * modules/relocatable-prog: Renamed from modules/relocatable.
36135         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
36136
36137 2007-03-03  Bruno Haible  <bruno@clisp.org>
36138
36139         * modules/relocatable-script (Files): Add doc/relocatable.texi,
36140         m4/relocatable-lib.m4.
36141         (Depends-on): Remove 'relocatable'.
36142         (configure.ac): Add gl_RELOCATABLE_NOP.
36143
36144 2007-03-03  Bruno Haible  <bruno@clisp.org>
36145
36146         * modules/relocatable-prog-wrapper: New file.
36147         * modules/relocatable (Depends-on): Add it. Remove all other
36148         dependencies except progname.
36149         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
36150
36151         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
36152         (gl_FUNC_STRERROR): Nop.
36153         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
36154
36155         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
36156         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
36157
36158         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
36159         (gl_FUNC_READLINK): Update.
36160
36161         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
36162
36163 2007-03-03  Bruno Haible  <bruno@clisp.org>
36164
36165         * lib/xreadlink.c: Include <unistd.h> unconditionally.
36166         * modules/xreadlink (Depends-on): Add unistd.
36167         * modules/xreadlink-with-size (Depends-on): Likewise.
36168
36169 2007-03-03  Bruno Haible  <bruno@clisp.org>
36170
36171         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
36172         extracted from gt_FUNC_SETENV.
36173         (gt_FUNC_SETENV): Remove macro.
36174         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
36175         remove gt_FUNC_SETENV.
36176
36177 2007-03-03  Bruno Haible  <bruno@clisp.org>
36178
36179         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
36180         ENABLE_RELOCATABLE here.
36181         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
36182
36183 2007-03-03  Bruno Haible  <bruno@clisp.org>
36184
36185         * modules/rbtreehash-list-tests (Depends-on): Add progname.
36186         * tests/test-rbtreehash_list.c: Include progname.h.
36187         (main): Call set_program_name.
36188
36189         * modules/rbtree-oset-tests (Depends-on): Add progname.
36190         * tests/test-rbtree_oset.c: Include progname.h.
36191         (main): Call set_program_name.
36192
36193         * modules/rbtree-list-tests (Depends-on): Add progname.
36194         * tests/test-rbtree_list.c: Include progname.h.
36195         (main): Call set_program_name.
36196
36197         * modules/linked-list-tests (Depends-on): Add progname.
36198         * tests/test-linked_list.c: Include progname.h.
36199         (main): Call set_program_name.
36200
36201 2007-03-03  Bruno Haible  <bruno@clisp.org>
36202
36203         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
36204         All uses of __restrict changed to _Restrict_.
36205         * lib/glob_.h (__restrict): Remove macro.
36206
36207 2007-03-02  Bruno Haible  <bruno@clisp.org>
36208
36209         * modules/gettext (configure.ac): Require gettext infrastructure
36210         from version 0.16.1.
36211
36212 2007-03-02  Bruno Haible  <bruno@clisp.org>
36213
36214         * modules/linkedhash-list-tests (Depends-on): Add progname.
36215         * tests/test-linkedhash_list.c: Include progname.h.
36216         (main): Call set_program_name.
36217
36218         * modules/carray-list-tests (Depends-on): Add progname.
36219         * tests/test-carray_list.c: Include progname.h.
36220         (main): Call set_program_name.
36221
36222         * modules/avltreehash-list-tests (Depends-on): Add progname.
36223         * tests/test-avltreehash_list.c: Include progname.h.
36224         (main): Call set_program_name.
36225
36226         * modules/avltree-oset-tests (Depends-on): Add progname.
36227         * tests/test-avltree_oset.c: Include progname.h.
36228         (main): Call set_program_name.
36229
36230         * modules/avltree-list-tests (Depends-on): Add progname.
36231         * tests/test-avltree_list.c: Include progname.h.
36232         (main): Call set_program_name.
36233
36234         * modules/array-oset-tests (Depends-on): Add progname.
36235         * tests/test-array_oset.c: Include progname.h.
36236         (main): Call set_program_name.
36237
36238         * modules/array-list-tests (Depends-on): Add progname.
36239         * tests/test-array_list.c: Include progname.h.
36240         (main): Call set_program_name.
36241
36242         * modules/argp-tests (Depends-on): Add progname.
36243         * tests/test-argp.c: Include argp.h first. Include progname.h.
36244         (main): Call set_program_name.
36245
36246 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
36247
36248         * doc/gnulib-tool.texi (Initial import): Reword description of
36249         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
36250         limited effect even if defined after the first system include.
36251
36252 2007-03-01  Bruno Haible  <bruno@clisp.org>
36253
36254         * build-aux/config.libpath: Update to libtool-1.5.22.
36255         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36256
36257 2007-03-01  Bruno Haible  <bruno@clisp.org>
36258
36259         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
36260         foo_CFLAGS.
36261         Reported by Ralf Wildenhues.
36262
36263 2007-03-01  Bruno Haible  <bruno@clisp.org>
36264
36265         * build-aux/install-reloc: Remove object files left over by some
36266         compilers.
36267         Reported by Ralf Wildenhues.
36268
36269 2007-03-01  Bruno Haible  <bruno@clisp.org>
36270
36271         * build-aux/install-reloc: Break long lines.
36272
36273 2007-03-01  Bruno Haible  <bruno@clisp.org>
36274
36275         * doc/relocatable.texi: Document that it may not work on OpenBSD.
36276         Reported by Ralf Wildenhues.
36277
36278 2007-03-01  Bruno Haible  <bruno@clisp.org>
36279
36280         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
36281         include ordering constraints.
36282
36283 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36284
36285         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
36286         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
36287         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
36288         as another example.
36289         * lib/time_.h: Fix misspelling.
36290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36291         Require gl_HEADER_TIME_H_DEFAULTS.
36292         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
36293         * m4/time_r.m4 (gl_TIME_R): Likewise.
36294         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
36295
36296 2007-03-01  Bruno Haible  <bruno@clisp.org>
36297
36298         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
36299         * m4/utimens.m4 (gl_UTIMENS): Likewise.
36300
36301 2007-03-01  Jim Meyering  <jim@meyering.net>
36302
36303         * modules/xreadlink (Maintainer): Add my name.
36304         * modules/xreadlink-with-size (Depends-on): Alphabetize.
36305
36306 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
36307             Bruno Haible  <bruno@clisp.org>
36308
36309         * build-aux/install-reloc: Compile also c-ctype.c.
36310         * build-aux/relocatable.sh.in: New file.
36311         * doc/relocatable.texi: New file.
36312         * doc/relocatable-maint.texi: New file.
36313         * doc/gnulib.texi: Include relocatable-maint.texi.
36314         * lib/progreloc.c: Include unistd.h unconditionally.
36315         * lib/relocwrapper.c: Include unistd.h unconditionally.
36316         Include c-ctype.h.
36317         (add_dotbin): Use c_tolower.
36318         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
36319         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
36320         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
36321         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
36322         to m4/relocatable-lib.m4.
36323         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
36324         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
36325         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
36326         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
36327         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
36328         * modules/relocatable: New file.
36329         * modules/relocatable-lib: New file.
36330         * modules/relocatable-script: New file.
36331
36332 2007-02-28  Bruno Haible  <bruno@clisp.org>
36333
36334         Import --enable-relocatable infrastructure.
36335         * build-aux/config.libpath: New file, from GNU gettext.
36336         * build-aux/install-reloc: New file, from GNU gettext.
36337         * build-aux/reloc-ldflags: New file, from GNU gettext.
36338         * lib/relocatable.h: New file, from GNU gettext.
36339         * lib/relocatable.c: New file, from GNU gettext.
36340         * lib/relocwrapper.c: New file, from GNU gettext.
36341         * m4/relocatable.m4: New file, from GNU gettext.
36342
36343 2007-02-28  Bruno Haible  <bruno@clisp.org>
36344
36345         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
36346
36347         * modules/xreadlink: New file, from GNU gettext with modifications.
36348         * lib/xreadlink.c: New file, from GNU gettext.
36349         * lib/xreadlink.h: Add comments.
36350         (xreadlink): New declaration.
36351
36352         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
36353         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
36354         lib/xreadlink-with-size.c.
36355         (configure.ac): Remove gl_XREADLINK invocation.
36356         (Makefile.am): Augment lib_SOURCES.
36357         * m4/xreadlink.m4: Remove file.
36358         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
36359         (xreadlink_with_size): Renamed from xreadink.
36360         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
36361         * modules/canonicalize (Depends-on): Replace xreadlink with
36362         xreadlink-with-size.
36363         * lib/canonicalize.c (canonicalize_filename_mode): Update.
36364
36365 2007-02-25  Jim Meyering  <jim@meyering.net>
36366
36367         * build-aux/announce-gen: When complaining about excess arguments,
36368         list them.
36369
36370 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
36371
36372         * README: Document signed integer overflow situation more
36373         accurately.
36374
36375 2007-02-25  Bruno Haible  <bruno@clisp.org>
36376
36377         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
36378         'a' or 'A' conversion.
36379
36380 2007-02-25  Bruno Haible  <bruno@clisp.org>
36381
36382         * modules/filename: Renamed from modules/pathname.
36383         (Files): Replace lib/pathname.h with lib/filename.h. Replace
36384         lib/concatpath.c with lib/concat-filename.c.
36385         (Makefile.am): Update.
36386         (Include): Replace pathname.h with filename.h.
36387         * lib/filename.h: Renamed from lib/pathname.h.
36388         (concatenated_filename): Renamed from concatenated_pathname.
36389         * lib/concat-filename.c: Renamed from lib/concatpath.c.
36390         (concatenated_filename): Renamed from concatenated_pathname.
36391         * lib/findprog.c: Include filename.h instead of pathname.h.
36392         (find_in_path): Update.
36393         * lib/javacomp.c: Include filename.h instead of pathname.h.
36394         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
36395         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
36396         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
36397         is_oldgcj_14_13_usable, is_javac_usable): Update.
36398         * lib/javaexec.c: Include filename.h instead of pathname.h.
36399         (execute_java_class): Update.
36400         * modules/findprog: Update.
36401         * modules/javacomp: Update.
36402         * modules/javaexec: Update.
36403         * MODULES.html.sh (File system functions): Add 'filename', remove
36404         'pathname'.
36405
36406 2007-02-25  Bruno Haible  <bruno@clisp.org>
36407
36408         * modules/printf-frexpl-tests: New file.
36409         * tests/test-printf-frexpl.c: New file.
36410
36411         * modules/printf-frexpl: New file.
36412         * lib/printf-frexpl.h: New file.
36413         * lib/printf-frexpl.c: New file.
36414         * m4/printf-frexpl.m4: New file.
36415
36416 2007-02-25  Bruno Haible  <bruno@clisp.org>
36417
36418         * modules/printf-frexp-tests: New file.
36419         * tests/test-printf-frexp.c: New file.
36420
36421         * modules/printf-frexp: New file.
36422         * lib/printf-frexp.h: New file.
36423         * lib/printf-frexp.c: New file.
36424         * m4/printf-frexp.m4: New file.
36425
36426 2007-02-25  Bruno Haible  <bruno@clisp.org>
36427
36428         Assume automake >= 1.10 for the tests.
36429         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
36430         * modules/arctwo-tests: Likewise.
36431         * modules/argp-tests: Likewise.
36432         * modules/avltree-list-tests: Likewise.
36433         * modules/avltree-oset-tests: Likewise.
36434         * modules/avltreehash-list-tests: Likewise.
36435         * modules/carray-list-tests: Likewise.
36436         * modules/crc-tests: Likewise.
36437         * modules/des-tests: Likewise.
36438         * modules/gc-arcfour-tests: Likewise.
36439         * modules/gc-arctwo-tests: Likewise.
36440         * modules/gc-des-tests: Likewise.
36441         * modules/gc-hmac-md5-tests: Likewise.
36442         * modules/gc-hmac-sha1-tests: Likewise.
36443         * modules/gc-md2-tests: Likewise.
36444         * modules/gc-md4-tests: Likewise.
36445         * modules/gc-md5-tests: Likewise.
36446         * modules/gc-pbkdf2-sha1-tests: Likewise.
36447         * modules/gc-rijndael-tests: Likewise.
36448         * modules/gc-sha1-tests: Likewise.
36449         * modules/gc-tests: Likewise.
36450         * modules/getaddrinfo-tests: Likewise.
36451         * modules/hmac-md5-tests: Likewise.
36452         * modules/hmac-sha1-tests: Likewise.
36453         * modules/linked-list-tests: Likewise.
36454         * modules/linkedhash-list-tests: Likewise.
36455         * modules/lock-tests: Likewise.
36456         * modules/md2-tests: Likewise.
36457         * modules/md4-tests: Likewise.
36458         * modules/md5-tests: Likewise.
36459         * modules/rbtree-list-tests: Likewise.
36460         * modules/rbtree-oset-tests: Likewise.
36461         * modules/rbtreehash-list-tests: Likewise.
36462         * modules/read-file-tests: Likewise.
36463         * modules/rijndael-tests: Likewise.
36464         * modules/stdint-tests: Likewise.
36465         * modules/tls-tests: Likewise.
36466
36467 2007-02-24  Bruno Haible  <bruno@clisp.org>
36468
36469         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36470         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36471         function; instead check whether isnan with a double argument links.
36472         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36473         function; instead check whether isnan with a 'long double' argument
36474         links.
36475         Reported by Eric Blake <ebb9@byu.net>.
36476
36477 2007-02-24  Bruno Haible  <bruno@clisp.org>
36478
36479         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36480         defined.
36481         * lib/isnanl.c: Remove all code. Just include isnan.c.
36482         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36483
36484 2007-02-25  Jim Meyering  <jim@meyering.net>
36485
36486         Avoid conflicting types for 'unsetenv' on FreeBSD.
36487         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36488         conflicting with FreeBSD's (5.0 and 6.1) function declaration
36489         in stdlib.h.
36490
36491 2007-02-24  Bruno Haible  <bruno@clisp.org>
36492
36493         * modules/isnanl-nolibm-tests: New file.
36494         * tests/test-isnanl.c: New file.
36495
36496         * modules/isnanl-nolibm: New file.
36497         * lib/isnanl.h: New file.
36498         * lib/isnanl.c: New file.
36499         * m4/isnanl.m4: New file.
36500
36501 2007-02-24  Bruno Haible  <bruno@clisp.org>
36502
36503         * modules/isnan-nolibm-tests: New file.
36504         * tests/test-isnan.c: New file.
36505
36506         * modules/isnan-nolibm: New file.
36507         * lib/isnan.h: New file.
36508         * lib/isnan.c: New file.
36509         * m4/isnan.m4: New file.
36510
36511 2007-02-24  Bruno Haible  <bruno@clisp.org>
36512
36513         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36514         assume that an exponent fits in 20 bits.
36515
36516 2007-02-24  Jim Meyering  <jim@meyering.net>
36517
36518         * m4/regex.m4: Update the description of the configure-time option,
36519         --without-included-regex, to state accurately what the defaults are,
36520         and perhaps to give people an idea why using this option is risky.
36521
36522 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36523
36524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36525         loops on small arguments.  This attempts to avoid the problem
36526         Bruno Haible reported for AIX 4.3.2 in
36527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36528
36529 2007-02-23  Bruno Haible  <bruno@clisp.org>
36530
36531         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36532         Needed for help2man.
36533
36534 2007-02-23  Karl Berry  <karl@gnu.org>
36535
36536         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36537         exists, foo.h should be cvs-ignored, not committed.
36538
36539 2007-02-23  Eric Blake  <ebb9@byu.net>
36540
36541         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
36542         * lib/stat-time.h (includes): Likewise.
36543         * lib/utimecmp.c (includes): Likewise.
36544         * lib/utimens.h (includes): Likewise.
36545         * lib/getdate.y (includes): Also include "timespec.h" for use
36546         internal to the module.
36547         * modules/utimens (Depends-on): Revert yesterday's patch.
36548         * modules/nanosleep (Depends-on): Add missing dependency.
36549
36550 2007-02-22  Bruno Haible  <bruno@clisp.org>
36551
36552         * lib/glob.c: Don't include getlogin_r.h.
36553
36554 2007-02-22  Jim Meyering  <jim@meyering.net>
36555
36556         * modules/utimens (Depends-on): Add timespec, required for
36557         utimens.h's inclusion of timespec.h.
36558
36559 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
36560
36561         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36562         long unreadable paths in GNU/Linux.  Problem reported by Andreas
36563         Schwab in
36564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36565         I'll try to think of a better way to fix the Solaris problem.
36566
36567         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36568         like glibc; on Solaris 10, it fails with errno == EINVAL.
36569         POSIX says the behavior is unspecified if the first argument is NULL,
36570         so play it safe and never pass NULL to the system getcwd.
36571
36572 2007-02-21  Jim Meyering  <jim@meyering.net>
36573
36574         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36575         of gettimeofday.  It would conflict with the one now always
36576         provided via sys_time_.h.  Reported by Matthew Woehlke, as
36577         an IRIX 6.5 build failure.
36578
36579 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36580
36581         Minor fixups to port to Solaris 10 with Sun C 5.8.
36582         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36583         * modules/getcwd (Depends-on): Add dirfd.
36584         * lib/putenv.c (putenv): #undef it.
36585         (rpl_putenv): New decl.
36586         (malloc, free): Include <stdlib.h> rather than prototyping separately.
36587
36588 2007-02-20  Bruno Haible  <bruno@clisp.org>
36589
36590         * modules/stdio-tests: New file.
36591         * tests/test-stdio.c: New file.
36592
36593         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36594         (Depends-on): Add stdio.
36595         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36596         (Include): Use <stdio.h> instead of vsnprintf.h.
36597         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36598         HAVE_DECL_VSNPRINTF.
36599         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36600
36601         * modules/snprintf (Files): Remove lib/snprintf.h.
36602         (Depends-on): Add stdio.
36603         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36604         (Include): Use <stdio.h> instead of snprintf.h.
36605         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36606         HAVE_DECL_SNPRINTF.
36607         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36608         * lib/getaddrinfo.c: Likewise.
36609
36610         * modules/stdio: New file.
36611         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36612         * lib/snprintf.h: Remove file.
36613         * lib/vsnprintf.h: Remove file.
36614         * lib/.cppi-disable: Remove snprintf.h.
36615         * m4/stdio_h.m4: New file.
36616         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36617
36618 2007-02-20  Jim Meyering  <jim@meyering.net>
36619
36620         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36621         used by e.g., mingw.  From Bruno Haible.
36622
36623 2007-02-19  Bruno Haible  <bruno@clisp.org>
36624
36625         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36626         warnings.
36627         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36628
36629 2007-02-19  Bruno Haible  <bruno@clisp.org>
36630
36631         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36632         from mingw users.
36633
36634 2007-02-19  Bruno Haible  <bruno@clisp.org>
36635
36636         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36637         warnings.
36638         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36639
36640 2007-02-19  Jim Meyering  <jim@meyering.net>
36641
36642         Don't use FD after a successful "fdopendir (fd)".
36643         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36644         Reset it by calling dirfd on the just-obtained DIR*.
36645
36646         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36647         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36648
36649 2007-02-18  Bruno Haible  <bruno@clisp.org>
36650
36651         * lib/readlink.c: Include <unistd.h>.
36652         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36653         HAVE_READLINK.
36654         * modules/readlink (Depends-on): Add unistd.
36655         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36656         (Include): Add <unistd.h>.
36657
36658         * lib/getlogin_r.h: Remove file.
36659         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36660         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36661         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36662         HAVE_DECL_GETLOGIN_R.
36663         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36664         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36665         (Include): Use <unistd.h> instead of getlogin_r.h.
36666
36667         * lib/getcwd.h: Remove file.
36668         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36669         * lib/xgetcwd.c: Likewise.
36670         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36671         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36672         * modules/getcwd (Files): Remove lib/getcwd.h.
36673         (Depends-on): Add unistd.
36674         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36675         (Include): Use <unistd.h> instad of getcwd.h.
36676
36677         * lib/ftruncate.c: Include <unistd.h> first.
36678         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36679         Set HAVE_FTRUNCATE.
36680         * modules/ftruncate (Depends-on): Add unistd.
36681         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36682
36683         * lib/fchdir.c: Include <unistd.h> first.
36684         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36685         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36686         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36687         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36688         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36689
36690         * lib/dup2.c: Include <unistd.h> first.
36691         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36692         HAVE_DUP2.
36693         * modules/dup2 (Depends-on): Add unistd.
36694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36695
36696         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36697         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36698         REPLACE_CHOWN. Don't define chown as a macro here.
36699         * modules/chown (Depends-on): Add unistd.
36700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36701
36702         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36703         Add definition for GL_LINK_WARNING.
36704         (chown, dup2): New declarations.
36705         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36706         link warning.
36707         (ftruncate): New declaration.
36708         (getcwd): New declaration, taken from old getcwd.h.
36709         (getlogin_r): New declaration, taken from old getlogin_r.h.
36710         (readlink): New declaration.
36711         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36712         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36713         (gl_PREREQ_UNISTD): Remove macro.
36714         (gl_UNISTD_MODULE_INDICATOR): New macro.
36715         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36716         many new variables. Don't set UNISTD_H.
36717         * modules/unistd (Description): Change.
36718         (Depends-on): Add link-warning.
36719         (configure.ac): Update.
36720         (Makefile.am): Create unistd.h always. Substitute many new variables
36721         into it.
36722
36723 2007-02-18  Bruno Haible  <bruno@clisp.org>
36724
36725         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36726         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36727         HAVE_GETSUBOPT.
36728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36729         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36730         * lib/getsubopt.h: Remove file.
36731         * modules/getsubopt (Files): Remove lib/getsubopt.h.
36732         (Depends-on): Add stdlib.
36733         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36734         (Includes): Use <stdlib.h> instead of getsubopt.h.
36735         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36736         Set HAVE_GETSUBOPT.
36737         * lib/getsubopt.c: Don't include getsubopt.h.
36738
36739 2007-02-18  Bruno Haible  <bruno@clisp.org>
36740
36741         * modules/fchdir (Depends-on): Add dup2.
36742
36743 2007-02-18  Bruno Haible  <bruno@clisp.org>
36744
36745         * lib/stdlib_.h: Handle glibc's special invocation convention
36746         specially.
36747
36748 2007-02-18  Bruno Haible  <bruno@clisp.org>
36749
36750         * modules/stdlib-tests: New file.
36751         * tests/test-stdlib.c: New file.
36752
36753         * modules/mkstemp (Files): Remove lib/mkstemp.h.
36754         (Depends-on): Add stdlib.
36755         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36756         (Includes): Use <stdlib.h> instead of mkstemp.h.
36757         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36758         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36759         * lib/mkstemp.c: Don't include mkstemp.h.
36760         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36761         * lib/stdlib--.h: Don't include mkstemp.h.
36762
36763         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36764         (Depends-on): Add stdlib.
36765         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36766         (Includes): Use <stdlib.h> instead of mkdtemp.h.
36767         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36768         HAVE_MKDTEMP.
36769         * lib/mkdtemp.c: Don't include mkdtemp.h.
36770         * lib/clean-temp.c: Don't include mkdtemp.h.
36771
36772         * modules/exit (Files): Remove lib/exit.h.
36773         (Depends-on): Add stdlib.
36774         (Makefile.am): Remove lib_SOURCES.
36775         (Include): Use <stdlib.h> instead of exit.h.
36776         * lib/argmatch.c: Don't include exit.h.
36777         * lib/execute.c: Likewise.
36778         * lib/pagealign_alloc.c: Likewise.
36779         * lib/pipe.c: Likewise.
36780         * lib/wait-process.c: Likewise.
36781         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36782         * lib/exitfail.c: Likewise.
36783         * lib/savewd.c: Likewise.
36784         * lib/xsetenv.c: Likewise.
36785
36786         * modules/stdlib: New file.
36787         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36788         and extra comments about mkstemp().
36789         * lib/exit.h: Remove file.
36790         * lib/mkdtemp.h: Remove file.
36791         * lib/mkstemp.h: Remove file.
36792         * m4/stdlib_h.m4: New file.
36793         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36794
36795 2007-02-18  Bruno Haible  <bruno@clisp.org>
36796
36797         * modules/math-tests: New file.
36798         * tests/test-math.c: New file.
36799
36800         * modules/math: New file.
36801         * modules/mathl (Files): Remove lib/mathl.h.
36802         (Depends-on): Add math.
36803         (Makefile.am): Don't mention mathl.h.
36804         (Include): Use <math.h> instead of mathl.h.
36805         * lib/math_.h: New file.
36806         * lib/mathl.h: Remove file.
36807         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36808         mathl.h.
36809         * lib/asinl.c: Likewise.
36810         * lib/atanl.c: Likewise.
36811         * lib/ceill.c: Likewise.
36812         * lib/cosl.c: Likewise.
36813         * lib/expl.c: Likewise.
36814         * lib/floorl.c: Likewise.
36815         * lib/frexpl.c: Likewise.
36816         * lib/ldexpl.c: Likewise.
36817         * lib/logl.c: Likewise.
36818         * lib/sincosl.c: Likewise.
36819         * lib/sinl.c: Likewise.
36820         * lib/sqrtl.c: Likewise.
36821         * lib/tanl.c: Likewise.
36822         * lib/trigl.c: Likewise.
36823         * m4/math_h.m4: New file.
36824         * MODULES.html.sh (Mathematics): Add math.
36825
36826 2007-02-17  Bruno Haible  <bruno@clisp.org>
36827
36828         * modules/wctype-tests: New file.
36829         * tests/test-wctype.c: New file.
36830
36831         * modules/wchar-tests: New file.
36832         * tests/test-wchar.c: New file.
36833
36834         * modules/unistd-tests: New file.
36835         * tests/test-unistd.c: New file.
36836
36837         * modules/time-tests: New file.
36838         * tests/test-time.c: New file.
36839
36840         * modules/sysexits-tests: New file.
36841         * tests/test-sysexits.c: New file.
36842
36843         * modules/sys_time-tests: New file.
36844         * tests/test-sys_time.c: New file.
36845
36846         * modules/sys_stat-tests: New file.
36847         * tests/test-sys_stat.c: New file.
36848
36849         * modules/sys_socket-tests: New file.
36850         * tests/test-sys_socket.c: New file.
36851
36852         * modules/sys_select-tests: New file.
36853         * tests/test-sys_select.c: New file.
36854
36855         * modules/string-tests: New file.
36856         * tests/test-string.c: New file.
36857
36858         * modules/stdbool-tests: New file.
36859         * tests/test-stdbool.c: New file.
36860
36861         * modules/netinet_in-tests: New file.
36862         * tests/test-netinet_in.c: New file.
36863
36864         * modules/inttypes-tests: New file.
36865         * tests/test-inttypes.c: New file.
36866
36867         * modules/fcntl-tests: New file.
36868         * tests/test-fcntl.c: New file.
36869
36870         * modules/byteswap-tests: New file.
36871         * tests/test-byteswap.c: New file.
36872
36873         * modules/arpa_inet-tests: New file.
36874         * tests/test-arpa_inet.c: New file.
36875
36876 2007-02-17  Bruno Haible  <bruno@clisp.org>
36877
36878         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36879         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36880         if the corresponding module is not enabled. Emit link warnings if
36881         the function is used nevertheless.
36882         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36883         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36884         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36885         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36886         * modules/inttypes (Depends-on): Add link-warning.
36887         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36888         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36889         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36890         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36891         * modules/imaxdiv (configure.ac): Likewise.
36892         * modules/strtoimax (configure.ac): Likewise.
36893         * modules/strtoumax (configure.ac): Likewise.
36894
36895 2007-02-17  Bruno Haible  <bruno@clisp.org>
36896
36897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36898         gl_STRING_MODULE_INDICATOR_DEFAULTS.
36899         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36900         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36901
36902 2007-02-17  Bruno Haible  <bruno@clisp.org>
36903
36904         * modules/link-warning: New file.
36905         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36906         * lib/string_.h (GL_LINK_WARNING): Remove definition.
36907         * modules/string (Depends-on): Add link-warning.
36908         (Makefile.am): Copy the contents of build-aux/link-warning.h into
36909         string.h.
36910         * MODULES.html.sh (Support for building libraries and executables): Add
36911         link-warning.
36912
36913 2007-02-17  Bruno Haible  <bruno@clisp.org>
36914
36915         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36916         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36917         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36918         long lines.
36919
36920 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
36921             Bruno Haible  <bruno@clisp.org>
36922
36923         * modules/tmpfile: New file.
36924         * lib/tmpfile.c: New file.
36925         * m4/tmpfile.m4: New file.
36926         * MODULES.html.sh (func_all_modules): New section "Input/output".
36927
36928 2007-02-15  Bruno Haible  <bruno@clisp.org>
36929
36930         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36931         (supports_delete_on_close): New function.
36932         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36933
36934 2007-02-14  Bruno Haible  <bruno@clisp.org>
36935
36936         * modules/mbspcasecmp-tests: New file.
36937         * tests/test-mbspcasecmp.sh: New file.
36938         * tests/test-mbspcasecmp.c: New file.
36939
36940         New module mbspcasecmp.
36941         * modules/mbspcasecmp: New file.
36942         * lib/mbspcasecmp.c: New file.
36943         * lib/string_.h (strncasecmp): Change warning message.
36944         (mbspcasecmp): New declaration.
36945         * m4/mbspcasecmp.m4: New file.
36946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36947         GNULIB_MBSPCASECMP.
36948         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36949         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36950
36951 2007-02-14  Bruno Haible  <bruno@clisp.org>
36952
36953         * modules/mbsncasecmp-tests: New file.
36954         * tests/test-mbsncasecmp.sh: New file.
36955         * tests/test-mbsncasecmp.c: New file.
36956
36957         New module mbsncasecmp.
36958         * modules/mbsncasecmp: New file.
36959         * lib/mbsncasecmp.c: New file.
36960         * lib/string_.h (mbsncasecmp): New declaration.
36961         * m4/mbsncasecmp.m4: New file.
36962         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36963         GNULIB_MBSNCASECMP.
36964         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36965         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36966
36967 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36968
36969         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36970         Verify that it doesn't overlap with our flags.
36971         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36972         do not have the desired effect in multibyte locales; instead, use
36973         mbscasecmp.
36974         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36975         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
36976         we don't require GNU fnmatch ourselves (if our users require it, they
36977         should do so explicitly).
36978
36979         Fix regex code so it doesn't rely on strcasecmp.
36980         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36981         Otherwise, include gnulib's langinfo.h.
36982         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36983         undesirable behavior in non-C locales.  Instead, rely on localecharset.
36984         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36985         * modules/regex (FILES): Remove m4/codeset.m4.
36986         (Depends-on): Add localcharset.  Remove strcase.
36987
36988 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36989
36990         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36991         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36992
36993 2007-02-13  Bruno Haible  <bruno@clisp.org>
36994
36995         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36996         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36997
36998 2007-02-12  Bruno Haible  <bruno@clisp.org>
36999
37000         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37001         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
37002         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
37003         time warning rather than a link error.
37004
37005 2007-02-12  Bruno Haible  <bruno@clisp.org>
37006
37007         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
37008         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37009         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37010
37011 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37012
37013         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
37014         args, not 2.
37015
37016 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
37017
37018         New module 'time', so that apps can include <time.h> as per
37019         POSIX and GNU instead of separate include files like time_r.h
37020         and timegm.h.  This implementation tries out a simpler approach
37021         for replacing decls in standard include files (as compared to
37022         the string module), somewhat as an experiment.
37023
37024         * config/srclist.txt: Comment out mktime.c for now.
37025         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
37026         since it doesn't apply any more.  Use generic wording instead.
37027         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
37028         'time'.
37029         * lib/time_.h, m4/time_h.m4, modules/time: New files.
37030         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
37031         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
37032         Don't include <sys/types.h>; no longer needed since we assume C89.
37033         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
37034         * lib/strftime.c: Likewise.
37035         * lib/time_r.c: Likewise.
37036         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
37037         * lib/nanosleep.c: Include <time.h> first, to check interface.
37038         * lib/strptime.c: Likewise.
37039         * lib/time_r.c: Likewise.
37040         * lib/timegm.c: Likewise.
37041         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
37042         needed.
37043         * lib/timegm.c: Don't include timegm.h; no longer needed.
37044         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
37045         time.h now handles any problems in that area.
37046         (struct timespec, nanosleep): Remove; time.h now arranges for these.
37047         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
37048         that time.h defines struct timespec.
37049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
37050         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
37051         handles that.
37052         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
37053         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
37054         needed.  Set REPLACE_LOCALTIME.
37055         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
37056         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
37057         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
37058         nanosleep; time_h.m4 now does that.  Don't require
37059         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
37060         module handles this now.
37061         * modules/getdate (Depends-on): Remove timespec.  Add time.
37062         * modules/nanosleep (Depends-on): Likewise.
37063         * modules/stat-time (Depends-on): Likewise.
37064         * modules/nanosleep (Include): Include time.h, not timespec.h.
37065         * modules/strptime (Files): Remove lib/strptime.h.
37066         (Depends-on): Add extensions, time.
37067         (Include): Include time.h, not strptime.h.
37068         * modules/time_r (Files): Remove lib/time_r.h.
37069         (Depends-on): Add time.
37070         (Include): Include time.h, not time_r.h.
37071         * modules/timegm: Likewise.
37072         * modules/timespec (Description): Now does timespec-related decls
37073         of our own, instead of struct timespec itself.
37074         (Depends-on): Add time; remove extensions.
37075         (Maintainer): Add self.
37076         * modules/utimecmp (Depends-on): Add time; remove timespec.
37077         * modules/utimens (Depends-on): Likewise.
37078         * modules/xnanosleep (Depends-on): Likewise.
37079
37080 2007-02-11  Bruno Haible  <bruno@clisp.org>
37081
37082         * lib/c-strstr.c: Include allocsa.h.
37083         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37084         * lib/c-strcasestr.c: Include allocsa.h.
37085         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37086         * lib/strcasestr.c: Include allocsa.h.
37087         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
37088         * lib/mbsstr.c: Include allocsa.h.
37089         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37090         allocsa/freesa instead of malloc/free.
37091         * lib/mbscasestr.c: Include allocsa.h.
37092         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
37093         allocsa/freesa instead of malloc/free.
37094         * modules/c-strstr (Depends-on): Add allocsa.
37095         * modules/c-strcasestr (Depends-on): Likewise.
37096         * modules/strcasestr (Depends-on): Likewise.
37097         * modules/mbsstr (Depends-on): Likewise.
37098         * modules/mbscasestr (Depends-on): Likewise.
37099
37100 2007-02-11  Bruno Haible  <bruno@clisp.org>
37101
37102         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
37103
37104         * modules/mbsspn-tests: New file.
37105         * tests/test-mbsspn.sh: New file.
37106         * tests/test-mbsspn.c: New file.
37107
37108 2007-02-11  Bruno Haible  <bruno@clisp.org>
37109
37110         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
37111
37112         * modules/mbspbrk-tests: New file.
37113         * tests/test-mbspbrk.sh: New file.
37114         * tests/test-mbspbrk.c: New file.
37115
37116 2007-02-11  Bruno Haible  <bruno@clisp.org>
37117
37118         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
37119         unneeded cast.
37120
37121         * modules/mbscspn-tests: New file.
37122         * tests/test-mbscspn.sh: New file.
37123         * tests/test-mbscspn.c: New file.
37124
37125 2007-02-11  Bruno Haible  <bruno@clisp.org>
37126
37127         * modules/mbscasecmp-tests: New file.
37128         * tests/test-mbscasecmp.sh: New file.
37129         * tests/test-mbscasecmp.c: New file.
37130
37131 2007-02-11  Bruno Haible  <bruno@clisp.org>
37132
37133         Ensure O(n) worst-case complexity of mbscasestr.
37134         * lib/mbscasestr.c: Include stdbool.h.
37135         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37136         functions.
37137         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
37138         the bookkeeping indicates that it's worth it.
37139         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
37140
37141         * modules/mbscasestr-tests: New file.
37142         * tests/test-mbscasestr1.c: New file.
37143         * tests/test-mbscasestr2.sh: New file.
37144         * tests/test-mbscasestr2.c: New file.
37145         * tests/test-mbscasestr3.sh: New file.
37146         * tests/test-mbscasestr3.c: New file.
37147         * tests/test-mbscasestr4.sh: New file.
37148         * tests/test-mbscasestr4.c: New file.
37149         * m4/locale-tr.m4: New file.
37150
37151 2007-02-11  Bruno Haible  <bruno@clisp.org>
37152
37153         Ensure O(n) worst-case complexity of mbsstr.
37154         * lib/mbsstr.c: Include stdbool.h.
37155         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
37156         functions.
37157         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
37158         bookkeeping indicates that it's worth it.
37159         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
37160
37161         * modules/mbsstr-tests: New file.
37162         * tests/test-mbsstr1.c: New file.
37163         * tests/test-mbsstr2.sh: New file.
37164         * tests/test-mbsstr2.c: New file.
37165         * tests/test-mbsstr3.sh: New file.
37166         * tests/test-mbsstr3.c: New file.
37167         * m4/locale-fr.m4: New file.
37168
37169 2007-02-11  Bruno Haible  <bruno@clisp.org>
37170
37171         * lib/mbsrchr.c (mbsrchr): Fix bug.
37172
37173         * modules/mbsrchr-tests: New file.
37174         * tests/test-mbsrchr.sh: New file.
37175         * tests/test-mbsrchr.c: New file.
37176
37177 2007-02-11  Bruno Haible  <bruno@clisp.org>
37178
37179         * lib/mbschr.c (mbschr): Fix bug.
37180
37181         * modules/mbschr-tests: New file.
37182         * tests/test-mbschr.sh: New file.
37183         * tests/test-mbschr.c: New file.
37184         * m4/locale-zh.m4: New file.
37185
37186 2007-02-11  Bruno Haible  <bruno@clisp.org>
37187
37188         Support for copying multibyte string iterators.
37189         * lib/mbiter.h: Include <string.h>.
37190         (mbiter_multi_copy): New function.
37191         (mbi_copy): New macro.
37192         * lib/mbuiter.h: Include <string.h>.
37193         (mbuiter_multi_copy): New function.
37194         (mbui_copy): New macro.
37195
37196 2007-02-11  Bruno Haible  <bruno@clisp.org>
37197
37198         New module mbslen.
37199         * modules/mbslen: New file.
37200         * lib/mbslen.c: New file.
37201         * lib/string_.h (mbslen): New declaration.
37202         * m4/mbslen.m4: New file.
37203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37204         GNULIB_MBSLEN.
37205         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
37206         * MODULES.html.sh (Internationalization functions): Add mbslen.
37207
37208 2007-02-11  Bruno Haible  <bruno@clisp.org>
37209
37210         Ensure O(n) worst-case complexity of strcasestr substitute.
37211         * lib/strcasestr.c: Include stdbool.h.
37212         (knuth_morris_pratt): New function.
37213         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37214         bookkeeping indicates that it's worth it.
37215         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
37216
37217         * modules/strcasestr-tests: New file.
37218         * tests/test-strcasestr.c: New file.
37219
37220 2007-02-11  Bruno Haible  <bruno@clisp.org>
37221
37222         Ensure O(n) worst-case complexity of c_strcasestr.
37223         * lib/c-strcasestr.c: Include stdbool.h, string.h.
37224         (knuth_morris_pratt): New function.
37225         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
37226         the bookkeeping indicates that it's worth it.
37227         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
37228
37229         * modules/c-strcasestr-tests: New file.
37230         * tests/test-c-strcasestr.c: New file.
37231
37232 2007-02-11  Bruno Haible  <bruno@clisp.org>
37233
37234         Ensure O(n) worst-case complexity of c_strstr.
37235         * lib/c-strstr.c: Include stdbool.h, string.h.
37236         (knuth_morris_pratt): New function.
37237         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
37238         bookkeeping indicates that it's worth it.
37239         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
37240
37241         * lib/c-strstr.c: Complete rewrite for maintainability.
37242
37243         * modules/c-strstr-tests: New file.
37244         * tests/test-c-strstr.c: New file.
37245
37246 2007-02-11  Bruno Haible  <bruno@clisp.org>
37247
37248         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
37249         5.2.1 and earlier, whereby \055 was treated just like the range
37250         delimiter '-'.
37251         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
37252
37253 2007-02-08  Bruno Haible  <bruno@clisp.org>
37254
37255         * modules/regex (Depends-on): Add stdbool.
37256         Reported by Dalibor Topic <robilad@kaffe.org>.
37257
37258 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
37259
37260         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
37261         Prefer returning from main to exiting from it.
37262         Remove unnecessary parens after sizeof.
37263
37264 2007-02-05  Bruno Haible  <bruno@clisp.org>
37265
37266         New module mbssep.
37267         * modules/mbssep: New file.
37268         * lib/mbssep.c: New file.
37269         * lib/string_.h (strsep): Add a conditional link warning.
37270         (mbssep): New declaration.
37271         * m4/mbssep.m4: New file.
37272         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37273         GNULIB_MBSSEP.
37274         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
37275         * MODULES.html.sh (Internationalization functions): Add mbssep.
37276
37277 2007-02-05  Bruno Haible  <bruno@clisp.org>
37278
37279         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
37280         Optimize search in case of 1 delimiter.
37281
37282 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37283
37284         * lib/acl.h: Include sys/types.h before sys/acl.h.
37285
37286 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
37287
37288         Merge upstream fix for glibc bugzilla #3957:
37289
37290         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
37291
37292         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
37293         bit for RE_HAT_LISTS_NOT_NEWLINE.
37294         (build_charclass_op): Remove bogus comment.
37295
37296 2007-02-05  Simon Josefsson  <simon@josefsson.org>
37297
37298         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
37299
37300 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37301
37302         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
37303         * lib/memmem.c [!defined _LIBC]: Include config.h.
37304
37305 2007-02-04  Bruno Haible  <bruno@clisp.org>
37306
37307         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
37308         warning message.
37309
37310 2007-02-04  Bruno Haible  <bruno@clisp.org>
37311
37312         New module mbstok_r.
37313         * modules/mbstok_r: New file.
37314         * lib/mbstok_r.c: New file.
37315         * lib/string_.h (strtok_r): Change argument names to match the
37316         comments. Add a conditional link warning.
37317         (mbstok_r): New declaration.
37318         * m4/mbstok_r.m4: New file.
37319         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37320         GNULIB_MBSTOK_R.
37321         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
37322         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
37323
37324 2007-02-04  Bruno Haible  <bruno@clisp.org>
37325
37326         New module mbsspn.
37327         * modules/mbsspn: New file.
37328         * lib/mbsspn.c: New file.
37329         * lib/string_.h (strspn): Add a conditional link warning.
37330         (mbsspn): New declaration.
37331         * m4/mbsspn.m4: New file.
37332         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37333         GNULIB_MBSSPN.
37334         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
37335         * MODULES.html.sh (Internationalization functions): Add mbsspn.
37336
37337 2007-02-04  Bruno Haible  <bruno@clisp.org>
37338
37339         New module mbspbrk.
37340         * modules/mbspbrk: New file.
37341         * lib/mbspbrk.c: New file.
37342         * lib/string_.h (strpbrk): Add a conditional link warning.
37343         (mbspbrk): New declaration.
37344         * m4/mbspbrk.m4: New file.
37345         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37346         GNULIB_MBSPBRK.
37347         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
37348         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
37349
37350 2007-02-04  Bruno Haible  <bruno@clisp.org>
37351
37352         New module mbscspn.
37353         * modules/mbscspn: New file.
37354         * lib/mbscspn.c: New file.
37355         * lib/string_.h (strcspn): Add a conditional link warning.
37356         (mbscspn): New declaration.
37357         * m4/mbscspn.m4: New file.
37358         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37359         GNULIB_MBSCSPN.
37360         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
37361         * MODULES.html.sh (Internationalization functions): Add mbscspn.
37362
37363 2007-02-04  Bruno Haible  <bruno@clisp.org>
37364
37365         New module mbscasestr, reduced goal of strcasestr.
37366         * modules/mbscasestr: New file.
37367         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
37368         (mbscasestr): Renamed from strcasestr.
37369         * lib/strcasestr.c: Don't include mbuiter.h.
37370         (strcasestr): Remove support for multibyte locales.
37371         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
37372         Change the conditional link warning.
37373         (mbscasestr): New declaration.
37374         * m4/mbscasestr.m4: New file.
37375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
37376         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
37377         REPLACE_STRCASESTR.
37378         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
37379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37380         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37381         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
37382         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
37383         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
37384         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
37385         (Depends-on): Remove mbuiter.
37386         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
37387
37388 2007-02-04  Bruno Haible  <bruno@clisp.org>
37389
37390         Simplify handling of strncasecmp.
37391         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
37392         the conditional link warning.
37393         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37394         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
37395         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
37396         * modules/strcase (configure.ac): Don't invoke
37397         gl_STRING_MODULE_INDICATOR.
37398         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
37399
37400 2007-02-04  Bruno Haible  <bruno@clisp.org>
37401
37402         New module mbscasecmp, reduced goal of strcasecmp.
37403         * modules/mbscasecmp: New file.
37404         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
37405         (mbscasecmp): Renamed from strcasecmp.
37406         * lib/strcasecmp.c: Don't include mbuiter.h.
37407         (strcasecmp): Remove support for multibyte locales.
37408         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
37409         Change the conditional link warning.
37410         (mbscasecmp): New declaration.
37411         * m4/mbscasecmp.m4: New file.
37412         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
37413         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
37414         REPLACE_STRCASECMP.
37415         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
37416         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37417         GNULIB_MBSCASECMP.
37418         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
37419         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
37420         * modules/strcase (Files): Remove m4/mbrtowc.m4.
37421         (Depends-on): Remove mbuiter.
37422         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
37423
37424 2007-02-04  Bruno Haible  <bruno@clisp.org>
37425
37426         New module mbsstr. Remove module strstr.
37427         * modules/mbsstr: New file.
37428         * modules/strstr: Remove file.
37429         * lib/mbsstr.c: Renamed from lib/strstr.c.
37430         (mbsstr): Renamed from strstr.
37431         * lib/string_.h (strstr): Remove declaration. Change the conditional
37432         link warning.
37433         (mbsstr): New declaration.
37434         * m4/mbsstr.m4: New file.
37435         * m4/strstr.m4: Remove file.
37436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
37437         REPLACE_STRSTR.
37438         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
37439         Don't initialize GNULIB_STRSTR.
37440         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
37441         substitute GNULIB_STRSTR and REPLACE_STRSTR.
37442         * MODULES.html.sh (Internationalization functions): Add mbsstr.
37443         (Support for systems lacking ANSI C 89): Remove strstr.
37444
37445 2007-02-04  Bruno Haible  <bruno@clisp.org>
37446
37447         New module mbsrchr.
37448         * modules/mbsrchr: New file.
37449         * lib/mbsrchr.c: New file.
37450         * lib/string_.h (strrchr): Add a conditional link warning.
37451         (mbsrchr): New declaration.
37452         * m4/mbsrchr.m4: New file.
37453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37454         GNULIB_MBSRCHR.
37455         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37456         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37457
37458 2007-02-04  Bruno Haible  <bruno@clisp.org>
37459
37460         New module mbschr.
37461         * modules/mbschr: New file.
37462         * lib/mbschr.c: New file.
37463         * lib/string_.h (strchr): Add a conditional link warning.
37464         (mbschr): New declaration.
37465         * m4/mbschr.m4: New file.
37466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37467         GNULIB_MBSCHR.
37468         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37469         * MODULES.html.sh (Internationalization functions): Add mbschr.
37470
37471 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
37472
37473         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37474
37475         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37476
37477 2007-02-04  Bruno Haible  <bruno@clisp.org>
37478
37479         New module description section 'configure.ac-early'.
37480         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37481         (func_get_autoconf_early_snippet): New function.
37482         (func_import, func_create_testdir): Use it. Remove special cases for
37483         modules 'extensions' and 'lock'.
37484         * modules/extensions (configure.ac-early): Require
37485         gl_USE_SYSTEM_EXTENSIONS.
37486         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37487
37488 2007-02-04  Bruno Haible  <bruno@clisp.org>
37489
37490         Make use of gcj-4.3's -fsource and -ftarget option.
37491         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37492         and if so try the options -fsource and -ftarget.
37493         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37494         source_version, ftarget_option, target_version arguments.
37495         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37496         (is_envjavac_oldgcj_14_14_usable): Renamed from
37497         is_envjavac_gcj_14_14_usable.
37498         (is_envjavac_oldgcj_14_13_usable): Renamed from
37499         is_envjavac_gcj_14_13_usable.
37500         (is_gcj_present): Update.
37501         (is_gcj_43, is_gcj43_usable): New functions.
37502         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37503         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37504         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37505         try the options -fsource and -ftarget.
37506
37507 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
37508
37509         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37510         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
37511         larger value.
37512
37513 2007-02-03  Jim Meyering  <jim@meyering.net>
37514
37515         Give tools a better chance to allocate space for very large buffers.
37516         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37517
37518         Make pwd and readlink work also when run with an unreadable parent dir
37519         on systems with openat support.
37520         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37521         provided getcwd function, even when we have openat support.
37522         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37523
37524 2007-02-02  Bruno Haible  <bruno@clisp.org>
37525
37526         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37527         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37528         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37529         portability problems if one of these functions is only used on specific
37530         platforms.
37531         Reported by Paul Eggert.
37532
37533 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
37534
37535         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37536         is causing more trouble than it's curing.
37537         * lib/regex_internal.h (__mempcpy): Remove.
37538         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37539         (and make the code a tad smaller to boot).
37540         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37541
37542 2007-02-02  Jim Meyering  <jim@meyering.net>
37543
37544         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37545         section, not in the Makefile.am: one.
37546
37547 2007-02-02  Eric Blake  <ebb9@byu.net>
37548
37549         * lib/strchrnul.c: Always include config.h first.
37550
37551         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37552         gnulib strstr is not necessary here.
37553
37554 2007-02-02  Simon Josefsson  <simon@josefsson.org>
37555
37556         * m4/socklen.m4: Fix typo.
37557
37558 2007-02-02  Eric Blake  <ebb9@byu.net>
37559
37560         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37561         * modules/netinet_in (Makefile.am): Likewise.
37562
37563 2007-02-01  Bruno Haible  <bruno@clisp.org>
37564
37565         * lib/string_.h (GL_LINK_WARNING): New macro.
37566         (strcasecmp, strstr, strcasestr): If provided by the system,
37567         conditionally define as a macro that leads to a warning instead of to
37568         an error.
37569         (strncasecmp): Conditionally define as a macro that leads to a warning.
37570
37571 2007-02-01  Karl Berry  <karl@gnu.org>
37572
37573         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37574
37575 2007-02-01  Bruno Haible  <bruno@clisp.org>
37576
37577         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37578         renamings.
37579
37580 2007-02-01  Eric Blake  <ebb9@byu.net>
37581
37582         * modules/regex (Depends-on): Revert dependence on mempcpy.
37583         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37584         module's definition of mempcpy.
37585         Reported by Paul Eggert.
37586
37587 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
37588
37589         * lib/string_.h: If the gnulib module XYZ is not present, undefine
37590         the symbol XYZ before redefining it.  This fixes a problem with
37591         programs that don't use XYZ, when compiled on systems that define
37592         XYZ to something else.
37593
37594 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
37595
37596         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37597         occurs when "mkdir -m foo" creates a setgid directory that is (1)
37598         writeable to group or other and (2) is intended to have a special
37599         mode bit that is set or cleared.  In such a case, the directory
37600         should be neither group- nor other-writeable until the special
37601         mode bits are right.
37602
37603 2007-01-31  Eric Blake  <ebb9@byu.net>
37604
37605         * modules/mountlist (Depends-on): Add strstr.
37606
37607         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37608         bug.
37609         * modules/string (Makefile.am): Remove redundant replacement.
37610         * modules/regex (Depends-on): Add mempcpy.
37611
37612 2007-01-31  Bruno Haible  <bruno@clisp.org>
37613
37614         New module description field 'Link'.
37615         * gnulib-tool (func_usage): Document --extract-link-directive.
37616         (sed_extract_prog): Recognize 'Link' directive.
37617         (func_get_link_directive): New function.
37618         (func_import): Show summary of link directives.
37619         Handle --extract-link-directive option.
37620         * modules/acl (Link): New section.
37621         * modules/clock-time (Link): New section.
37622         * modules/euidaccess (Link): New section.
37623         * modules/gettext (Link): New section.
37624         * modules/iconv (Link): New section.
37625         * modules/lock (Link): New section.
37626         * modules/nanosleep (Link): New section.
37627         * modules/readline (Link): New section.
37628
37629 2007-01-27  Bruno Haible  <bruno@clisp.org>
37630
37631         Enforce the use of gnulib modules for unportable <string.h> functions.
37632         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37633         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37634         (gl_HEADER_STRING_H_BODY): Require it.
37635         * lib/string_.h: If the gnulib module XYZ is not present, redefine
37636         the symbol XYZ to one that gives a link error.
37637         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37638         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37639         * modules/mempcpy (configure.ac): Likewise.
37640         * modules/memrchr (configure.ac): Likewise.
37641         * modules/stpcpy (configure.ac): Likewise.
37642         * modules/stpncpy (configure.ac): Likewise.
37643         * modules/strcase (configure.ac): Likewise.
37644         * modules/strcasestr (configure.ac): Likewise.
37645         * modules/strchrnul (configure.ac): Likewise.
37646         * modules/strdup (configure.ac): Likewise.
37647         * modules/strndup (configure.ac): Likewise.
37648         * modules/strnlen (configure.ac): Likewise.
37649         * modules/strpbrk (configure.ac): Likewise.
37650         * modules/strsep (configure.ac): Likewise.
37651         * modules/strstr (configure.ac): Likewise.
37652         * modules/strtok_r (configure.ac): Likewise.
37653
37654 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
37655
37656         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37657
37658 2007-01-30  Jim Meyering  <jim@meyering.net>
37659
37660         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37661
37662 2007-01-29  Bruno Haible  <bruno@clisp.org>
37663
37664         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37665         * lib/execute.c: Likewise.
37666         * lib/pipe.c: Likewise.
37667         * lib/printf-args.h: Likewise.
37668         * lib/printf-args.c: Likewise.
37669         * lib/printf-parse.c: Likewise.
37670         * lib/vasnprintf.c: Likewise.
37671
37672 2007-01-29  Eric Blake  <ebb9@byu.net>
37673
37674         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37675         declaration.
37676
37677 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
37678
37679         * lib/strptime.h (strptime): Use 'restrict' for args where
37680         POSIX requires this.
37681         * lib/strptime.c (strptime): Likewise.
37682         Change license notice from LGPL to GPL, since gnulib-tool will
37683         change this as needed.
37684         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37685         defined.
37686         Include "strptime.h" first, to check interface.
37687         Do not #undef _LIBC and _NL_CURRENT.
37688         Do not include <stdlib.h>; no longer needed.
37689         Include "time_r.h" and declare ptime_locale_status
37690         only if _LIBC is not defined.
37691         (__P): Remove unused macro.
37692         (match_string): Bring back glibc version, but use it only if _LIBC
37693         is defined.
37694         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37695         Remove unnecessary assertion and abort() call.
37696         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37697         * m4/strptime.m4: Fix serial number comment.
37698         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37699         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37700         (Depends-on): Add time_r.
37701
37702 2007-01-29  Bruno Haible  <bruno@clisp.org>
37703
37704         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37705         strptime.
37706         * modules/strptime (Depends-on): Add stdbool.
37707         * lib/strptime.h: Include <time.h> always. Add comments.
37708
37709 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
37710
37711         * modules/strptime: New file.
37712         * lib/strptime.h: New file.
37713         * lib/strptime.c: New file.
37714         * m4/strptime.m4: New file.
37715
37716 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
37717
37718         * MODULES.html.sh: New module mpsort.
37719         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37720
37721         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37722         a circularity problem with HP-UX ia64 reported by Bob Proulx in
37723         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37724         All uses changed.
37725         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37726         All uses changed.
37727         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37728         to _Restrict_.
37729         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37730         the parameter matches the prototype.
37731
37732 2007-01-28  Jim Meyering  <jim@meyering.net>
37733
37734         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37735         sys/time.h here, reverting that part of the previous patch:
37736         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37737
37738 2007-01-28  Bruno Haible  <bruno@clisp.org>
37739
37740         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37741         value of $(SYS_TIME_H).
37742         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37743         remove it conditionally, too. [added by Jim Meyering]
37744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37746         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37747         GETTIMEOFDAY_REPLACEMENT to 1.
37748
37749 2007-01-28  Bruno Haible  <bruno@clisp.org>
37750
37751         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37752         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37754         Set UNISTD_H instead of UNISTD_H2.
37755         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37756
37757 2007-01-28  Bruno Haible  <bruno@clisp.org>
37758
37759         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37760         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37761
37762 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37763
37764         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37765         (func_create_testdir): Ensure C locale for `grep' and `tr'
37766         character ranges.
37767         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
37768         ACLOCAL_AMFLAGS parsing state machine.
37769
37770 2007-01-27  Bruno Haible  <bruno@clisp.org>
37771
37772         * modules/unistr/base: Update.
37773
37774 2007-01-27  Bruno Haible  <bruno@clisp.org>
37775
37776         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37777         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37778         * modules/unistr/u32-mbtouc-unsafe: Renamed from
37779         modules/unistr/u32-mbtouc.
37780         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37781         * lib/unistr.h: Update.
37782         * lib/linebreak.c: Update.
37783         * modules/unistr/u32-mbtouc: Renamed from
37784         modules/unistr/u32-mbtouc-safe.
37785         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37786         * lib/unistr.h: Update.
37787         * lib/unistr/u32-to-u8.c: Update.
37788         * lib/unistr/u32-to-u16.c: Update.
37789
37790 2007-01-27  Bruno Haible  <bruno@clisp.org>
37791
37792         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37793         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37794         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37795         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37796         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37797         * modules/unistr/u16-mbtouc-unsafe: Renamed from
37798         modules/unistr/u16-mbtouc.
37799         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37800         * lib/unistr.h: Update.
37801         * lib/linebreak.c: Update.
37802         * modules/linebreak: Update.
37803         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37804         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37805         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37806         * modules/unistr/u16-mbtouc: Renamed from
37807         modules/unistr/u16-mbtouc-safe.
37808         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37809         * lib/unistr.h: Update.
37810         * lib/unistr/u16-to-u8.c: Update.
37811         * modules/unistr/u16-to-u8: Update.
37812         * lib/unistr/u16-to-u32.c: Update.
37813         * modules/unistr/u16-to-u32: Update.
37814
37815 2007-01-27  Bruno Haible  <bruno@clisp.org>
37816
37817         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37818         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37819         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37820         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37821         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37822         * modules/unistr/u8-mbtouc-unsafe: Renamed from
37823         modules/unistr/u8-mbtouc.
37824         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37825         * lib/unistr.h: Update.
37826         * lib/striconveh.c: Update.
37827         * modules/striconveh: Update.
37828         * lib/linebreak.c: Update.
37829         * modules/linebreak: Update.
37830         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37831         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37832         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37833         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37834         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37835         * lib/unistr.h: Update.
37836         * lib/striconveh.c: Update.
37837         * modules/striconveh: Update.
37838         * lib/unistr/u8-to-u16.c: Update.
37839         * modules/unistr/u8-to-u16: Update.
37840         * lib/unistr/u8-to-u32.c: Update.
37841         * modules/unistr/u8-to-u32: Update.
37842
37843 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37844
37845         Sync from Libtool.
37846         * lib/argz.c: Do not include strings.h nor memory.h, include
37847         string.h unconditionally.  Patch by Simon Josefsson.
37848
37849 2007-01-27  Bruno Haible  <bruno@clisp.org>
37850
37851         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37852         from gl_HEADER_STRING_H_BODY.
37853         (gl_HEADER_STRING_H_BODY): Require it.
37854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37855         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37856         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37857         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37858         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37859         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37861         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37862         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37863         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37864         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37865         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37866         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37867         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37868         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37869
37870 2007-01-27  Bruno Haible  <bruno@clisp.org>
37871
37872         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37873         check_PROGRAMS into noinst_PROGRAMS.
37874         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37875         check_PROGRAMS in this case.
37876         (func_import): Set for_test to false.
37877         (func_create_testdir): Set for_test to true.
37878
37879 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37880             Bruno Haible  <bruno@clisp.org>
37881
37882         * modules/strcasestr (Files): Remove lib/strcasestr.h.
37883         (Depends-on): Add string.
37884         (Includes): Use <string.h> instead of strcasestr.h.
37885         * modules/string (Makefile.am): Also substitute the value of
37886         REPLACE_STRCASESTR.
37887         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37888         assume strcasestr is declared in <string.h> not <strings.h>. Also
37889         set REPLACE_STRCASESTR.
37890         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37891         REPLACE_STRCASESTR.
37892         * lib/strcasestr.h: Remove file.
37893         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37894         * lib/string_.h (strcasestr): New declaration.
37895
37896 2007-01-27  Bruno Haible  <bruno@clisp.org>
37897
37898         * lib/string_.h: Use 'extern'.
37899
37900 2007-01-27  Jim Meyering  <jim@meyering.net>
37901
37902         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37903         of set-but-not-used local, "q".
37904
37905         * lib/mempcpy.c: Include <config.h> before <string.h>.
37906         This fixes a compilation error on HP-UX, due to the system's
37907         "restrict"-using mempcpy prototype.
37908
37909 2007-01-26  Bruno Haible  <bruno@clisp.org>
37910
37911         Small optimization.
37912         * lib/javacomp.c: Include c-strstr.h.
37913          (is_envjavac_gcj): Use c_strstr instead of strstr.
37914         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37915
37916 2007-01-26  Bruno Haible  <bruno@clisp.org>
37917
37918         * MODULES.html.sh (Unicode string functions): Add the new modules.
37919
37920         * modules/uniconv/u32-strconv-to-locale: New file.
37921         * lib/uniconv/u32-strconv-to-locale.c: New file.
37922
37923         * modules/uniconv/u16-strconv-to-locale: New file.
37924         * lib/uniconv/u16-strconv-to-locale.c: New file.
37925
37926         * modules/uniconv/u8-strconv-to-locale: New file.
37927         * lib/uniconv/u8-strconv-to-locale.c: New file.
37928
37929         * modules/uniconv/u32-strconv-from-locale: New file.
37930         * lib/uniconv/u32-strconv-from-locale.c: New file.
37931
37932         * modules/uniconv/u16-strconv-from-locale: New file.
37933         * lib/uniconv/u16-strconv-from-locale.c: New file.
37934
37935         * modules/uniconv/u8-strconv-from-locale: New file.
37936         * lib/uniconv/u8-strconv-from-locale.c: New file.
37937
37938         * modules/uniconv/u32-strconv-to-enc: New file.
37939         * lib/uniconv/u32-strconv-to-enc.c: New file.
37940         * modules/uniconv/u32-strconv-to-enc-tests: New file.
37941         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37942
37943         * modules/uniconv/u16-strconv-to-enc: New file.
37944         * lib/uniconv/u16-strconv-to-enc.c: New file.
37945         * lib/uniconv/u-strconv-to-enc.h: New file.
37946         * modules/uniconv/u16-strconv-to-enc-tests: New file.
37947         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37948
37949         * modules/uniconv/u8-strconv-to-enc: New file.
37950         * lib/uniconv/u8-strconv-to-enc.c: New file.
37951         * modules/uniconv/u8-strconv-to-enc-tests: New file.
37952         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37953
37954         * modules/uniconv/u32-strconv-from-enc: New file.
37955         * lib/uniconv/u32-strconv-from-enc.c: New file.
37956         * modules/uniconv/u32-strconv-from-enc-tests: New file.
37957         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37958
37959         * modules/uniconv/u16-strconv-from-enc: New file.
37960         * lib/uniconv/u16-strconv-from-enc.c: New file.
37961         * modules/uniconv/u16-strconv-from-enc-tests: New file.
37962         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37963
37964         * modules/uniconv/u8-strconv-from-enc: New file.
37965         * lib/uniconv/u8-strconv-from-enc.c: New file.
37966         * lib/uniconv/u-strconv-from-enc.h: New file.
37967         * modules/uniconv/u8-strconv-from-enc-tests: New file.
37968         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37969
37970         * modules/uniconv/u32-conv-from-enc: New file.
37971         * lib/uniconv/u32-conv-from-enc.c: New file.
37972         * modules/uniconv/u32-conv-from-enc-tests: New file.
37973         * tests/uniconv/test-u32-conv-from-enc.c: New file.
37974
37975         * modules/uniconv/u16-conv-from-enc: New file.
37976         * lib/uniconv/u16-conv-from-enc.c: New file.
37977         * lib/uniconv/u-conv-from-enc.h: New file.
37978         * modules/uniconv/u16-conv-from-enc-tests: New file.
37979         * tests/uniconv/test-u16-conv-from-enc.c: New file.
37980
37981         * modules/uniconv/u8-conv-from-enc: New file.
37982         * lib/uniconv/u8-conv-from-enc.c: New file.
37983         * modules/uniconv/u8-conv-from-enc-tests: New file.
37984         * tests/uniconv/test-u8-conv-from-enc.c: New file.
37985
37986         * modules/uniconv/base: New file.
37987         * lib/uniconv.h: New file.
37988
37989 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
37990
37991         * doc/gnulib-tool.texi (Initial import): Update to match current
37992         behavior with strdup module.
37993         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37994         * lib/memmem.h: Remove; all uses removed.  This is now done
37995         by <string.h>.
37996         * lib/mempcpy.h: Likewise.
37997         * lib/memrchr.h: Likewise.
37998         * lib/stpcpy.h: Likewise.
37999         * lib/stpncpy.h: Likewise.
38000         * lib/strcase.h: Likewise.
38001         * lib/strchrnul.h: Likewise.
38002         * lib/strdup.h: Likewise.
38003         * lib/strndup.h: Likewise.
38004         * lib/strnlen.h: Likewise.
38005         * lib/strpbrk.h: Likewise.
38006         * lib/strsep.h: Likewise.
38007         * lib/strstr.h: Likewise.
38008         * lib/strtok_r.h: Likewise.
38009         * lib/string_.h: New file.
38010         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
38011         Rely on <string.h> instead.
38012         * lib/canon-host.c: Likewise.
38013         * lib/chdir-long.c: Likewise.
38014         * lib/concatpath.c: Likewise.
38015         * lib/exclude.c: Likewise.
38016         * lib/fchdir.c: Likewise.
38017         * lib/getaddrinfo.c: Likewise.
38018         * lib/getcwd.c: Likewise.
38019         * lib/getsubopt.c: Likewise.
38020         * lib/glob.c: Likewise.
38021         * lib/hard-locale.c: Likewise.
38022         * lib/iconvme.c: Likewise.
38023         * lib/javacomp.c: Likewise.
38024         * lib/mempcpy.c: Likewise.
38025         * lib/memrchr.c: Likewise.
38026         * lib/regex_internal.h: Likewise.
38027         * lib/stpncpy.c: Likewise.
38028         * lib/strcasecmp.c: Likewise.
38029         * lib/strchrnul.c: Likewise.
38030         * lib/strdup.c: Likewise.
38031         * lib/striconv.c: Likewise.
38032         * lib/striconveh.c: Likewise.
38033         * lib/striconveha.c: Likewise.
38034         * lib/strncasecmp.c: Likewise.
38035         * lib/strndup.c: Likewise.
38036         * lib/strnlen.c: Likewise.
38037         * lib/strsep.c: Likewise.
38038         * lib/strstr.c: Likewise.
38039         * lib/strtok_r.c: Likewise.
38040         * lib/userspec.c: Likewise.
38041         * lib/w32spawn.h: Likewise.
38042         * lib/xstrndup.c: Likewise.
38043         * lib/mountlist.c (strstr): Remove decl.
38044         * m4/string_h.m4: New file.
38045         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
38046         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
38047         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
38048         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
38049         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
38050         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
38051         Set REPLACE_STRCASECMP if necessary.
38052         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
38053         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
38054         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
38055         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
38056         HAVE_DECL_STRDUP if necessary.
38057         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
38058         since gl_FUNC_STRNDUP does that now.
38059         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
38060         Check for decl here...
38061         (gl_PREREQ_STRNLEN): ... not here.
38062         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
38063         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
38064         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
38065         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
38066         necessary.
38067         * modules/string: New file.
38068         * modules/memmem (Files): Remove special-purpose include file.
38069         (Depends-on): Add string.
38070         (Include): Include <string.h>, not the removed file.
38071         * modules/mempcpy: Likewise.
38072         * modules/memrchr: Likewise.
38073         * modules/stpcpy: Likewise.
38074         * modules/stpncpy: Likewise.
38075         * modules/strcase: Likewise.
38076         * modules/strchrnul: Likewise.
38077         * modules/strdup: Likewise.
38078         * modules/strndup: Likewise.
38079         * modules/strnlen: Likewise.
38080         * modules/strpbrk: Likewise.
38081         * modules/strsep: Likewise.
38082         * modules/strstr: Likewise.
38083         * modules/strtok_r: Likewise.
38084         * tests/test-dirname.c: Don't include "strdup.h", since
38085         <string.h> now suffices.
38086         * tests/test-memmem.c: Don't include "memmem.h", since
38087         <string.h> now suffices.
38088
38089 2007-01-25  Bruno Haible  <bruno@clisp.org>
38090
38091         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
38092         *resultp is 0.
38093
38094         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
38095         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
38096         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
38097         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
38098
38099         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
38100         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
38101         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
38102         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
38103         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
38104         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
38105
38106 2007-01-24  Bruno Haible  <bruno@clisp.org>
38107
38108         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
38109         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
38110         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
38111         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
38112         gl_FUNC_FTS_CORE.
38113         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
38114         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
38115         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38116         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
38117         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
38118         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
38119         gl_FUNC_FCHOWNAT.
38120         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
38121         gl_FUNC_STRFTIME.
38122         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
38123         Reported by Ralf Wildenhues.
38124
38125 2007-01-24  Bruno Haible  <bruno@clisp.org>
38126
38127         Drop AC_REQUIRE calls that are redundant with the module dependencies.
38128         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
38129         gl_GETADDRINFO.
38130         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
38131         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
38132         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
38133
38134 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
38135
38136         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
38137         Don't use 'exit'; just return from 'main'.
38138         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
38139
38140         * lib/fnmatch_.h: Readjust white space and comments to match
38141         glibc, to avoid spurious diffs.
38142
38143 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38144
38145         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
38146         2004-12-01 change by Jakub Jelinek, since this code won't compile
38147         if !LIBC.  Problem reported by Bob Proulx.
38148
38149 2007-01-23  Bruno Haible  <bruno@clisp.org>
38150
38151         * lib/striconveh.c: Include c-strcaseeq.h.
38152         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
38153         * modules/striconveh (Depends-on): Add c-strcaseeq.
38154
38155 2007-01-23  Bruno Haible  <bruno@clisp.org>
38156
38157         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
38158
38159         * modules/c-strcaseeq: New file.
38160         * lib/c-strcaseeq.h: New file.
38161
38162         * modules/streq: New file.
38163         * lib/streq.h: New file.
38164
38165 2007-01-23  Bruno Haible  <bruno@clisp.org>
38166
38167         * modules/striconveha-tests: New file.
38168         * tests/test-striconveha.c: New file.
38169
38170         * lib/striconveha.h: Include <stdbool.h>.
38171         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
38172         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
38173         (mem_iconveha_notranslit): Renamed from mem_iconveha.
38174         (mem_iconveha): New function.
38175         (str_iconveha_notranslit): Renamed from str_iconveha.
38176         (str_iconveha): New function.
38177         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
38178         c-strcase.
38179
38180 2007-01-23  Bruno Haible  <bruno@clisp.org>
38181
38182         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
38183         encodings without forgiving before trying any encoding with handler.
38184         (str_iconveha): Try all encodings without forgiving before trying any
38185         encoding with handler.
38186
38187 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
38188
38189         Import the following changes from libc.
38190
38191         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38192
38193         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
38194
38195         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
38196
38197         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
38198         normal_bracket label.
38199
38200         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
38201
38202         [BZ #361]
38203         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
38204         to normal_bracket after fetching the next character.
38205
38206 2007-01-22  Bruno Haible  <bruno@clisp.org>
38207
38208         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
38209         argument.
38210         * lib/striconveh.c (iconv_carefully_1): New function.
38211         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
38212         argument.
38213         (str_cd_iconveh): Update.
38214         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
38215         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
38216         * tests/test-striconveh.c (MAGIC): New macro.
38217         (new_offsets): New function.
38218         (main): Test call with and without offsets.
38219
38220 2007-01-22  Bruno Haible  <bruno@clisp.org>
38221
38222         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
38223         * modules/sys_select (Makefile.am): Likewise.
38224         * modules/sys_socket (Makefile.am): Likewise.
38225         * modules/sys_time (Makefile.am): Likewise.
38226
38227 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
38228
38229         * modules/gettimeofday (License): Change from GPL to LGPL, since
38230         gettimeofday is a library function.
38231
38232 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38233
38234         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
38235
38236 2007-01-21  Bruno Haible  <bruno@clisp.org>
38237
38238         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
38239
38240 2007-01-21  Bruno Haible  <bruno@clisp.org>
38241
38242         * modules/striconveha: New file.
38243         * lib/striconveha.h: New file.
38244         * lib/striconveha.c: New file.
38245         * MODULES.html.sh (Internationalization functions): Add striconveha.
38246         * lib/striconv.c (str_iconv): Optimize the case of an empty input
38247         string.
38248         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
38249
38250 2007-01-21  Bruno Haible  <bruno@clisp.org>
38251
38252         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
38253         * lib/striconveh.c (str_iconveh): Likewise.
38254
38255 2007-01-21  Bruno Haible  <bruno@clisp.org>
38256
38257         * lib/striconveh.h (mem_iconveh): New declaration.
38258         * lib/striconveh.c (mem_iconveh): New function.
38259         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
38260
38261 2007-01-21  Bruno Haible  <bruno@clisp.org>
38262
38263         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
38264
38265         * lib/striconveh.h (mem_cd_iconveh): Change specification.
38266         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
38267         original result buffer.
38268         (str_cd_iconveh): Update.
38269         * tests/test-striconveh.c (main): Update.
38270
38271         * lib/striconv.h (mem_cd_iconv): Change specification.
38272         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
38273         result buffer.
38274         (str_cd_iconv): Update.
38275         * tests/test-striconv.c (main): Update.
38276
38277 2007-01-21  Bruno Haible  <bruno@clisp.org>
38278
38279         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
38280
38281 2007-01-20  Jim Meyering  <jim@meyering.net>
38282
38283         * lib/userspec.c (parse_with_separator): If a user or group string
38284         starts with "+", skip the corresponding name-to-ID look-up, since
38285         such a look-up must fail: user and group names may not include "+".
38286
38287 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
38288
38289         * lib/poll.c: Include sys/time.h and time.h unconditionally,
38290         since we now assume the sys_time module.
38291         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
38292         check for sys/time.h; no longer needed.
38293         * modules/poll (Depends-on): Depend on sys_time.
38294
38295 2007-01-18  Bruno Haible  <bruno@clisp.org>
38296
38297         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
38298         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38299
38300         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
38301         gettimeofday.
38302
38303         * tests/test-gettimeofday.c: Include <time.h>.
38304         (dummy): Remove variable.
38305
38306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
38307         gl_HEADER_SYS_TIME_H.
38308         (gl_HEADER_SYS_TIME_H): New macro.
38309
38310         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
38311         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38313         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
38314         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38315         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
38316         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
38317         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38318         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
38319         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
38320         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38321
38322         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
38323         last change; it caused a compilation error when cross-compiling to
38324         Cygwin.
38325
38326 2007-01-18  Jim Meyering  <jim@meyering.net>
38327
38328         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
38329         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
38330         than the race-prone "test -d sys || mkdir sys".
38331         (configure.ac): Use AC_PROG_MKDIR_P.
38332         * modules/sys_select: Likewise.
38333         * modules/sys_socket: Likewise.
38334         * modules/sys_time: Likewise.
38335
38336 2007-01-18  Eric Blake  <ebb9@byu.net>
38337
38338         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
38339         replace gettimeofday.
38340         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
38341         name, to avoid infinite recursion.
38342
38343 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
38344
38345         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
38346         module sys_time.
38347         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
38348         assume timespec.h defines struct timeval.
38349         * lib/settime.c: Likewise.
38350         * lib/utimens.c: Likewise.
38351         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
38352         since we now assume the gettimeofday module.
38353         * lib/tempname.c (__gen_tempname): Likewise.
38354         * lib/gettimeofday.h: Remove.
38355         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
38356         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
38357         Include <time.h>, for 'time()'.
38358         (localtime_buffer_addr): Also use this workaround if
38359         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
38360         to simplify the uses.  All uses changed.
38361         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
38362         that #undef is inside {}, and 'const' follows type name consistently.
38363         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
38364         (gettimeofday): Do not use the maximum possible value for
38365         tv->tv_usec, since that might break usages other than ls.c.
38366         Instead, we'll leave ls.c alone.  This undoes today's patch
38367         by Bruno.  Add a compile-time warning for 1s-clock resolution;
38368         we've never observed the problem but might as well keep the
38369         canary.
38370         * lib/nanosleep.c: Include timespec.h first, for interface check.
38371         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
38372         now assume the sys_time module.
38373         * lib/tempname.c: Likewise.
38374         * lib/timespec.h: Likewise.
38375         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
38376         needed.
38377         * lib/strftime.c: Likewise.
38378         * lib/timespec.h: Likewise.
38379         * lib/posixtm.c: Include posixtm.h first, for interface check.
38380         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
38381         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
38382         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
38383         * lib/sys_time_.h: New file.
38384         * lib/timespec.h (struct timespec): Use long int, not long.
38385         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
38386         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
38387         Remove obsolescent call to AC_HEADER_TIME.
38388         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
38389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38390         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
38391         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
38392         Likewise.
38393         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
38394         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
38395         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
38396         into the sys_time module.  Check for gettimeofday just once.
38397         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
38398         for gettimeofday signature to just check the signature.  Merely
38399         compile it, since linking doesn't test signature.  Improve test for
38400         whether gettimeofday.o is actually needed.
38401         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
38402         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
38403         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
38404         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38405         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
38406         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
38407         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
38408         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
38409         than worrying about sys/time.h.
38410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38411         Don't bother worrying about TIME_WITH_SYS_TIME.
38412         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38413         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
38414         * m4/sys_time_h.m4: New file.
38415         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
38416         Don't include sys/time.h.  Return from main rather than exiting.
38417         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
38418         all uses changed.
38419         * modules/gethrxtime (Depends-on): Add sys_time.
38420         * modules/gettime (Depends-on): Likewise.
38421         * modules/gettimeofday (Depends-on): Likewise.
38422         * modules/nanosleep (Depends-on): Likewise.
38423         * modules/settime (Depends-on): Likewise.
38424         * modules/tempname (Depends-on): Likewise.
38425         * modules/utimens (Depends-on): Likewise.
38426         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
38427         (Include:) Change back to <sys/time.h>.
38428         (Maintainer:) Add self.
38429         * modules/sys_time: New file.
38430         * modules/tempname (Depends-on): Add gettimeofday.
38431         * tests/test-gettimeofday.c: Include <sys/time.h>
38432         rather than gettimeofday.h.
38433
38434 2007-01-17  Bruno Haible  <bruno@clisp.org>
38435
38436         * gnulib-tool (func_get_license): Revert last patch. Instead, let
38437         the license default to GPL.
38438         (func_create_testdir): Don't complain if a module is LGPL and its
38439         tests module depends on GPLed modules.
38440
38441 2007-01-17  Bruno Haible  <bruno@clisp.org>
38442
38443         * lib/gettimeofday.c (gettimeofday): Add code for the case
38444         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
38445         maximum possible value for tv->tv_usec, rather than the minimum one.
38446
38447 2005-10-08  Martin Lambers  <marlam@marlam.de>
38448 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38449 2007-01-16  Bruno Haible  <bruno@clisp.org>
38450
38451         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38452         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38453         gl_FUNC_GETTIMEOFDAY.
38454         (Include): Add gettimeofday.h.
38455         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38456         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38457         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38458         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38459         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38460         * lib/gettimeofday.h: New file.
38461         * lib/gettimeofday.c: Include <sys/timeb.h>.
38462         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38463         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38464         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38465         fall back on time().
38466
38467         * tests/test-gettimeofday.c: New file.
38468         * modules/gettimeofday-tests: New file.
38469
38470 2007-01-16  Eric Blake  <ebb9@byu.net>
38471
38472         * modules/fnmatch (Depends-on): Depend on wchar.
38473         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38474         * m4/fnmatch.m4: Likewise.
38475         * modules/mbchar (Makefile.am): Assume <wchar.h>.
38476         * m4/mbchar.m4: Likewise.
38477         * modules/mbswidth (Depends-on): Depend on wchar.
38478         * lib/mbswidth.c: Assume <wchar.h>.
38479         * m4/mbswidth.m4: Likewise.
38480         * modules/quotearg (Depends-on): Depend on wchar.
38481         * lib/quotearg.c: Assume <wchar.h>.
38482         * m4/quotearg.m4: Likewise.
38483         * modules/regex (Depends-on): Depend on wchar.
38484         * lib/regex_internal.h: Assume <wchar.h>.
38485         * m4/regex.m4: Likewise.
38486         * modules/stdint (Depends-on): Depend on wchar.
38487         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38488         * m4/stdint.m4: Likewise.
38489         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38490         * modules/strftime (Depends-on): Depend on wchar.
38491         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38492         * modules/strtol (Depends-on): Depend on wchar.
38493         * lib/strtol.c: Assume <wchar.h>.
38494         * modules/wcwidth (Depends-on): Depend on wchar.
38495         * lib/wcwidth.h: Assume <wchar.h>.
38496         * m4/wcwidth.m4: Likewise.
38497
38498 2007-01-16  Bruno Haible  <bruno@clisp.org>
38499
38500         * modules/csharpexec-script: New, created from...
38501         * modules/csharpexec: ... this.
38502
38503 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
38504
38505         * modules/javaexec-script: New, created from...
38506         * modules/javaexec: ... this.
38507
38508 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38509
38510         * modules/poll (Dependencies): Add sys_select.
38511
38512 2007-01-15  Jim Meyering  <jim@meyering.net>
38513
38514         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38515         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38516         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
38517         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38518
38519 2007-01-15  Bruno Haible  <bruno@clisp.org>
38520
38521         * modules/striconveh: New file.
38522         * lib/striconveh.h: New file.
38523         * lib/striconveh.c: New file.
38524         * MODULES.html.sh (Internationalization functions): Add striconveh.
38525
38526         * modules/striconveh-tests: New file.
38527         * tests/test-striconveh.c: New file.
38528
38529 2007-01-15  Bruno Haible  <bruno@clisp.org>
38530
38531         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38532         not from GNU libiconv or GNU libc.
38533
38534 2007-01-15  Bruno Haible  <bruno@clisp.org>
38535
38536         * doc/gnulib-intro.texi (Copyright): Explain the different license
38537         terms for module descriptions, autoconf macros, tests, documentation.
38538
38539 2007-01-14  Bruno Haible  <bruno@clisp.org>
38540
38541         * modules/striconv-tests: New file.
38542         * tests/test-striconv.c: New file.
38543
38544 2007-01-14  Bruno Haible  <bruno@clisp.org>
38545
38546         * modules/iconv-tests: New file.
38547         * tests/test-iconv.c: New file.
38548
38549 2007-01-14  Bruno Haible  <bruno@clisp.org>
38550
38551         * gnulib-tool (func_get_license): For test modules, use the license of
38552         the main module.
38553
38554 2007-01-14  Bruno Haible  <bruno@clisp.org>
38555
38556         * modules/iconv (Include): Clarify that <iconv.h> can only be included
38557         if iconv is found to exist.
38558
38559 2007-01-14  Bruno Haible  <bruno@clisp.org>
38560
38561         * modules/c-ctype-tests: New file.
38562         * tests/test-c-ctype.c: New file.
38563
38564 2007-01-14  Bruno Haible  <bruno@clisp.org>
38565
38566         * modules/binary-io-tests: New file.
38567         * tests/test-binary-io.sh: New file.
38568         * tests/test-binary-io.c: New file.
38569
38570 2007-01-14  Bruno Haible  <bruno@clisp.org>
38571
38572         * modules/array-oset-tests: New file.
38573         * tests/test-array_oset.c: New file.
38574
38575 2007-01-14  Bruno Haible  <bruno@clisp.org>
38576
38577         * modules/array-list-tests: New file.
38578         * tests/test-array_list.c: New file.
38579
38580 2007-01-14  Bruno Haible  <bruno@clisp.org>
38581
38582         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38583         and make.
38584         Reported by Simon Josefsson in
38585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38586
38587 2007-01-14  Bruno Haible  <bruno@clisp.org>
38588
38589         * modules/allocsa-tests: New file.
38590         * tests/test-allocsa.c: New file.
38591
38592 2007-01-14  Bruno Haible  <bruno@clisp.org>
38593
38594         * modules/fchdir (Depends-on): Add absolute-header.
38595         * modules/unistd (Depends-on): Likewise.
38596
38597 2006-12-30  Bruno Haible  <bruno@clisp.org>
38598
38599         * modules/fchdir: New file.
38600         * modules/unistd (Files): Add lib/unistd_.h.
38601         (Makefile.am): Generate unistd.h from unistd_.h.
38602         * lib/fchdir.c: New file.
38603         * lib/dirent_.h: New file.
38604         * lib/unistd_.h: New file.
38605         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38606         * m4/fchdir.m4: New file.
38607         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38608         (gl_HEADER_UNISTD): Invoke it.
38609         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38610         function.
38611         * lib/backupfile.c (opendir, closedir): Undefine.
38612         * lib/chown.c (open, close): Undefine.
38613         * lib/clean-temp.c (open, close): Undefine.
38614         * lib/copy-file.c (open, close): Undefine.
38615         * lib/execute.c (open, close): Undefine.
38616         * lib/fsusage.c (open, close): Undefine.
38617         * lib/gc-gnulib.c (open, close): Undefine.
38618         * lib/getcwd.c (opendir, closedir): Undefine.
38619         * lib/glob.c (opendir, closedir): Undefine.
38620         * lib/javacomp.c (open, close): Undefine.
38621         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38622         * lib/openat-proc.c (open, close): Undefine.
38623         * lib/pagealign_alloc.c (open, close): Undefine.
38624         * lib/pipe.c (open, close): Undefine.
38625         * lib/progreloc.c (open, close): Undefine.
38626         * lib/savedir.c (opendir, closedir): Undefine.
38627         * lib/utime.c (open, close): Undefine.
38628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38629
38630 2007-01-10  Bruno Haible  <bruno@clisp.org>
38631
38632         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38633
38634 2007-01-12  Eric Blake  <ebb9@byu.net>
38635
38636         Provide a robust <wchar.h>.  Further simplifications are now
38637         possible in other modules, but not included here.
38638         * modules/wchar: New module.
38639         * m4/wchar.m4: New file.
38640         * lib/wchar_.h: Likewise.
38641         * modules/mbchar (Depends-on): Depend on wchar, as the first use
38642         of the new module.
38643         * MODULES.html.sh (Extended multibyte and wide character utilities):
38644         New section.
38645
38646 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
38647
38648         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38649         to a reasonable default for memory allocation.
38650         (xreadlink): Don't allocate a huge buffer, to work around a buggy
38651         file system that reports garbage st_size values for symlinks.
38652         Problem reported by Liyang Hu.
38653
38654 2007-01-11  Simon Josefsson  <simon@josefsson.org>
38655
38656         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38657         Emacs .#* auto-save files).
38658
38659 2007-01-11  Bruno Haible  <bruno@clisp.org>
38660
38661         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38662         directory.
38663
38664 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
38665
38666         Use @...@ consistently in lib/wctype_.h.
38667         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38668         on it being set to 1 or 0.
38669         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38670         go back to AC_SUBSTing it.
38671         * modules/wctype (Makefile.am): Undo previous change.
38672
38673 2007-01-10  Eric Blake  <ebb9@byu.net>
38674
38675         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38676         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38677         * modules/wctype (Makefile.am): Likewise.
38678         Reported by Chris McGuire.
38679
38680 2007-01-10  Jim Meyering  <jim@meyering.net>
38681
38682         fts.c: a small readability/maintainability improvement
38683         * lib/fts.c (fts_read): Make this code slightly more readable and
38684         maintainable by hoisting the "sp->fts_cur = p" assignments to
38685         immediately follow the statements that set P.  Derived from
38686         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38687
38688 2007-01-10  Eric Blake  <ebb9@byu.net>
38689
38690         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38691         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38692         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38693         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38694         Reported by Chris McGuire.
38695
38696 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38697
38698         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38699         in sed script.
38700
38701 2007-01-09  Bruno Haible  <bruno@clisp.org>
38702
38703         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38704         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38705         variables.
38706         (func_module): Use them.
38707
38708 2007-01-09  Bruno Haible  <bruno@clisp.org>
38709
38710         * modules/unistr/base: New file.
38711         * lib/unistr.h: New file.
38712
38713         * modules/unistr/u8-to-u16: New file.
38714         * lib/unistr/u8-to-u16.c: New file.
38715
38716         * modules/unistr/u8-to-u32: New file.
38717         * lib/unistr/u8-to-u32.c: New file.
38718
38719         * modules/unistr/u16-to-u8: New file.
38720         * lib/unistr/u16-to-u8.c: New file.
38721
38722         * modules/unistr/u16-to-u32: New file.
38723         * lib/unistr/u16-to-u32.c: New file.
38724
38725         * modules/unistr/u32-to-u8: New file.
38726         * lib/unistr/u32-to-u8.c: New file.
38727
38728         * modules/unistr/u32-to-u16: New file.
38729         * lib/unistr/u32-to-u16.c: New file.
38730
38731         * modules/unistr/u8-check: New file.
38732         * modules/unistr/u16-check: New file.
38733         * modules/unistr/u32-check: New file.
38734         * lib/unistr/u8-check.c: New file.
38735         * lib/unistr/u16-check.c: New file.
38736         * lib/unistr/u32-check.c: New file.
38737
38738         * modules/unistr/u8-chr: New file.
38739         * modules/unistr/u16-chr: New file.
38740         * modules/unistr/u32-chr: New file.
38741         * lib/unistr/u8-chr.c: New file.
38742         * lib/unistr/u16-chr.c: New file.
38743         * lib/unistr/u32-chr.c: New file.
38744
38745         * modules/unistr/u8-cmp: New file.
38746         * modules/unistr/u16-cmp: New file.
38747         * modules/unistr/u32-cmp: New file.
38748         * lib/unistr/u8-cmp.c: New file.
38749         * lib/unistr/u16-cmp.c: New file.
38750         * lib/unistr/u32-cmp.c: New file.
38751
38752         * modules/unistr/u8-cpy: New file.
38753         * modules/unistr/u16-cpy: New file.
38754         * modules/unistr/u32-cpy: New file.
38755         * lib/unistr/u8-cpy.c: New file.
38756         * lib/unistr/u16-cpy.c: New file.
38757         * lib/unistr/u32-cpy.c: New file.
38758         * lib/unistr/u-cpy.h: New file.
38759
38760         * modules/unistr/u8-cpy-alloc: New file.
38761         * modules/unistr/u16-cpy-alloc: New file.
38762         * modules/unistr/u32-cpy-alloc: New file.
38763         * lib/unistr/u8-cpy-alloc.c: New file.
38764         * lib/unistr/u16-cpy-alloc.c: New file.
38765         * lib/unistr/u32-cpy-alloc.c: New file.
38766         * lib/unistr/u-cpy-alloc.h: New file.
38767
38768         * modules/unistr/u8-endswith: New file.
38769         * modules/unistr/u16-endswith: New file.
38770         * modules/unistr/u32-endswith: New file.
38771         * lib/unistr/u8-endswith.c: New file.
38772         * lib/unistr/u16-endswith.c: New file.
38773         * lib/unistr/u32-endswith.c: New file.
38774         * lib/unistr/u-endswith.h: New file.
38775
38776         * modules/unistr/u8-mblen: New file.
38777         * modules/unistr/u16-mblen: New file.
38778         * modules/unistr/u32-mblen: New file.
38779         * lib/unistr/u8-mblen.c: New file.
38780         * lib/unistr/u16-mblen.c: New file.
38781         * lib/unistr/u32-mblen.c: New file.
38782
38783         * modules/unistr/u8-mbtouc: New file.
38784         * modules/unistr/u16-mbtouc: New file.
38785         * modules/unistr/u32-mbtouc: New file.
38786         * lib/unistr/u8-mbtouc.c: New file.
38787         * lib/unistr/u16-mbtouc.c: New file.
38788         * lib/unistr/u32-mbtouc.c: New file.
38789
38790         * modules/unistr/u8-mbtouc-safe: New file.
38791         * modules/unistr/u16-mbtouc-safe: New file.
38792         * modules/unistr/u32-mbtouc-safe: New file.
38793         * lib/unistr/u8-mbtouc-safe.c: New file.
38794         * lib/unistr/u16-mbtouc-safe.c: New file.
38795         * lib/unistr/u32-mbtouc-safe.c: New file.
38796
38797         * modules/unistr/u8-move: New file.
38798         * modules/unistr/u16-move: New file.
38799         * modules/unistr/u32-move: New file.
38800         * lib/unistr/u8-move.c: New file.
38801         * lib/unistr/u16-move.c: New file.
38802         * lib/unistr/u32-move.c: New file.
38803         * lib/unistr/u-move.h: New file.
38804
38805         * modules/unistr/u8-next: New file.
38806         * modules/unistr/u16-next: New file.
38807         * modules/unistr/u32-next: New file.
38808         * lib/unistr/u8-next.c: New file.
38809         * lib/unistr/u16-next.c: New file.
38810         * lib/unistr/u32-next.c: New file.
38811
38812         * modules/unistr/u8-prev: New file.
38813         * modules/unistr/u16-prev: New file.
38814         * modules/unistr/u32-prev: New file.
38815         * lib/unistr/u8-prev.c: New file.
38816         * lib/unistr/u16-prev.c: New file.
38817         * lib/unistr/u32-prev.c: New file.
38818
38819         * modules/unistr/u8-set: New file.
38820         * modules/unistr/u16-set: New file.
38821         * modules/unistr/u32-set: New file.
38822         * lib/unistr/u8-set.c: New file.
38823         * lib/unistr/u16-set.c: New file.
38824         * lib/unistr/u32-set.c: New file.
38825         * lib/unistr/u-set.h: New file.
38826
38827         * modules/unistr/u8-startswith: New file.
38828         * modules/unistr/u16-startswith: New file.
38829         * modules/unistr/u32-startswith: New file.
38830         * lib/unistr/u8-startswith.c: New file.
38831         * lib/unistr/u16-startswith.c: New file.
38832         * lib/unistr/u32-startswith.c: New file.
38833         * lib/unistr/u-startswith.h: New file.
38834
38835         * modules/unistr/u8-stpcpy: New file.
38836         * modules/unistr/u16-stpcpy: New file.
38837         * modules/unistr/u32-stpcpy: New file.
38838         * lib/unistr/u8-stpcpy.c: New file.
38839         * lib/unistr/u16-stpcpy.c: New file.
38840         * lib/unistr/u32-stpcpy.c: New file.
38841         * lib/unistr/u-stpcpy.h: New file.
38842
38843         * modules/unistr/u8-stpncpy: New file.
38844         * modules/unistr/u16-stpncpy: New file.
38845         * modules/unistr/u32-stpncpy: New file.
38846         * lib/unistr/u8-stpncpy.c: New file.
38847         * lib/unistr/u16-stpncpy.c: New file.
38848         * lib/unistr/u32-stpncpy.c: New file.
38849         * lib/unistr/u-stpncpy.h: New file.
38850
38851         * modules/unistr/u8-strcat: New file.
38852         * modules/unistr/u16-strcat: New file.
38853         * modules/unistr/u32-strcat: New file.
38854         * lib/unistr/u8-strcat.c: New file.
38855         * lib/unistr/u16-strcat.c: New file.
38856         * lib/unistr/u32-strcat.c: New file.
38857         * lib/unistr/u-strcat.h: New file.
38858
38859         * modules/unistr/u8-strchr: New file.
38860         * modules/unistr/u16-strchr: New file.
38861         * modules/unistr/u32-strchr: New file.
38862         * lib/unistr/u8-strchr.c: New file.
38863         * lib/unistr/u16-strchr.c: New file.
38864         * lib/unistr/u32-strchr.c: New file.
38865
38866         * modules/unistr/u8-strcmp: New file.
38867         * modules/unistr/u16-strcmp: New file.
38868         * modules/unistr/u32-strcmp: New file.
38869         * lib/unistr/u8-strcmp.c: New file.
38870         * lib/unistr/u16-strcmp.c: New file.
38871         * lib/unistr/u32-strcmp.c: New file.
38872
38873         * modules/unistr/u8-strcpy: New file.
38874         * modules/unistr/u16-strcpy: New file.
38875         * modules/unistr/u32-strcpy: New file.
38876         * lib/unistr/u8-strcpy.c: New file.
38877         * lib/unistr/u16-strcpy.c: New file.
38878         * lib/unistr/u32-strcpy.c: New file.
38879         * lib/unistr/u-strcpy.h: New file.
38880
38881         * modules/unistr/u8-strcspn: New file.
38882         * modules/unistr/u16-strcspn: New file.
38883         * modules/unistr/u32-strcspn: New file.
38884         * lib/unistr/u8-strcspn.c: New file.
38885         * lib/unistr/u16-strcspn.c: New file.
38886         * lib/unistr/u32-strcspn.c: New file.
38887         * lib/unistr/u-strcspn.h: New file.
38888
38889         * modules/unistr/u8-strdup: New file.
38890         * modules/unistr/u16-strdup: New file.
38891         * modules/unistr/u32-strdup: New file.
38892         * lib/unistr/u8-strdup.c: New file.
38893         * lib/unistr/u16-strdup.c: New file.
38894         * lib/unistr/u32-strdup.c: New file.
38895         * lib/unistr/u-strdup.h: New file.
38896
38897         * modules/unistr/u8-strlen: New file.
38898         * modules/unistr/u16-strlen: New file.
38899         * modules/unistr/u32-strlen: New file.
38900         * lib/unistr/u8-strlen.c: New file.
38901         * lib/unistr/u16-strlen.c: New file.
38902         * lib/unistr/u32-strlen.c: New file.
38903         * lib/unistr/u-strlen.h: New file.
38904
38905         * modules/unistr/u8-strmblen: New file.
38906         * modules/unistr/u16-strmblen: New file.
38907         * modules/unistr/u32-strmblen: New file.
38908         * lib/unistr/u8-strmblen.c: New file.
38909         * lib/unistr/u16-strmblen.c: New file.
38910         * lib/unistr/u32-strmblen.c: New file.
38911
38912         * modules/unistr/u8-strmbtouc: New file.
38913         * modules/unistr/u16-strmbtouc: New file.
38914         * modules/unistr/u32-strmbtouc: New file.
38915         * lib/unistr/u8-strmbtouc.c: New file.
38916         * lib/unistr/u16-strmbtouc.c: New file.
38917         * lib/unistr/u32-strmbtouc.c: New file.
38918
38919         * modules/unistr/u8-strncat: New file.
38920         * modules/unistr/u16-strncat: New file.
38921         * modules/unistr/u32-strncat: New file.
38922         * lib/unistr/u8-strncat.c: New file.
38923         * lib/unistr/u16-strncat.c: New file.
38924         * lib/unistr/u32-strncat.c: New file.
38925         * lib/unistr/u-strncat.h: New file.
38926
38927         * modules/unistr/u8-strncmp: New file.
38928         * modules/unistr/u16-strncmp: New file.
38929         * modules/unistr/u32-strncmp: New file.
38930         * lib/unistr/u8-strncmp.c: New file.
38931         * lib/unistr/u16-strncmp.c: New file.
38932         * lib/unistr/u32-strncmp.c: New file.
38933
38934         * modules/unistr/u8-strncpy: New file.
38935         * modules/unistr/u16-strncpy: New file.
38936         * modules/unistr/u32-strncpy: New file.
38937         * lib/unistr/u8-strncpy.c: New file.
38938         * lib/unistr/u16-strncpy.c: New file.
38939         * lib/unistr/u32-strncpy.c: New file.
38940         * lib/unistr/u-strncpy.h: New file.
38941
38942         * modules/unistr/u8-strnlen: New file.
38943         * modules/unistr/u16-strnlen: New file.
38944         * modules/unistr/u32-strnlen: New file.
38945         * lib/unistr/u8-strnlen.c: New file.
38946         * lib/unistr/u16-strnlen.c: New file.
38947         * lib/unistr/u32-strnlen.c: New file.
38948         * lib/unistr/u-strnlen.h: New file.
38949
38950         * modules/unistr/u8-strpbrk: New file.
38951         * modules/unistr/u16-strpbrk: New file.
38952         * modules/unistr/u32-strpbrk: New file.
38953         * lib/unistr/u8-strpbrk.c: New file.
38954         * lib/unistr/u16-strpbrk.c: New file.
38955         * lib/unistr/u32-strpbrk.c: New file.
38956         * lib/unistr/u-strpbrk.h: New file.
38957
38958         * modules/unistr/u8-strrchr: New file.
38959         * modules/unistr/u16-strrchr: New file.
38960         * modules/unistr/u32-strrchr: New file.
38961         * lib/unistr/u8-strrchr.c: New file.
38962         * lib/unistr/u16-strrchr.c: New file.
38963         * lib/unistr/u32-strrchr.c: New file.
38964
38965         * modules/unistr/u8-strspn: New file.
38966         * modules/unistr/u16-strspn: New file.
38967         * modules/unistr/u32-strspn: New file.
38968         * lib/unistr/u8-strspn.c: New file.
38969         * lib/unistr/u16-strspn.c: New file.
38970         * lib/unistr/u32-strspn.c: New file.
38971         * lib/unistr/u-strspn.h: New file.
38972
38973         * modules/unistr/u8-strstr: New file.
38974         * modules/unistr/u16-strstr: New file.
38975         * modules/unistr/u32-strstr: New file.
38976         * lib/unistr/u8-strstr.c: New file.
38977         * lib/unistr/u16-strstr.c: New file.
38978         * lib/unistr/u32-strstr.c: New file.
38979         * lib/unistr/u-strstr.h: New file.
38980
38981         * modules/unistr/u8-strtok: New file.
38982         * modules/unistr/u16-strtok: New file.
38983         * modules/unistr/u32-strtok: New file.
38984         * lib/unistr/u8-strtok.c: New file.
38985         * lib/unistr/u16-strtok.c: New file.
38986         * lib/unistr/u32-strtok.c: New file.
38987         * lib/unistr/u-strtok.h: New file.
38988
38989         * modules/unistr/u8-uctomb: New file.
38990         * modules/unistr/u16-uctomb: New file.
38991         * modules/unistr/u32-uctomb: New file.
38992         * lib/unistr/u8-uctomb.c: New file.
38993         * lib/unistr/u16-uctomb.c: New file.
38994         * lib/unistr/u32-uctomb.c: New file.
38995
38996         * MODULES.html.sh (Unicode string functions): Add the new modules.
38997
38998 2007-01-08  Bruno Haible  <bruno@clisp.org>
38999
39000         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
39001         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
39002         subdirectories.
39003
39004 2007-01-08  Karl Berry  <karl@gnu.org>
39005
39006         * doc/error.texi: mention that main() fns must set program_name
39007         when progname is used.
39008
39009 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
39010
39011         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
39012         WCTYPE_H is empty, for the benefit of builds from non-distclean
39013         directories.  Problem reported by Eric Blake in
39014         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
39015
39016 2007-01-08  Bruno Haible  <bruno@clisp.org>
39017
39018         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
39019         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
39020         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
39021         PROVIDE_CANONICALIZE_FILENAME_MODE.
39022         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
39023
39024 2007-01-08  Bruno Haible  <bruno@clisp.org>
39025
39026         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
39027         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
39028         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
39029         * lib/fts.c: Likewise.
39030         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
39031
39032 2006-12-25  Bruno Haible  <bruno@clisp.org>
39033
39034         * modules/utf8-ucs4-safe: New file.
39035         * lib/utf8-ucs4-safe.h: New file.
39036         * lib/unistr/utf8-ucs4-safe.c: New file.
39037
39038         * modules/utf16-ucs4-safe: New file.
39039         * lib/utf16-ucs4-safe.h: New file.
39040         * lib/unistr/utf16-ucs4-safe.c: New file.
39041
39042         * MODULES.html.sh (Unicode string functions): Add the new modules.
39043
39044 2007-01-08  Bruno Haible  <bruno@clisp.org>
39045
39046         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
39047         (Depends-on): Add unitypes.
39048         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39049         (u8_mbtouc_aux): Move out to separate file.
39050         (u8_mbtouc): Use ucs4_t, uint8_t types.
39051         * lib/unistr/utf8-ucs4.c: New file.
39052
39053         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
39054         (Depends-on): Add unitypes.
39055         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
39056         (u16_mbtouc_aux): Move out to separate file.
39057         (u16_mbtouc): Use ucs4_t, uint16_t types.
39058         * lib/unistr/utf16-ucs4.c: New file.
39059
39060         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
39061         (Depends-on): Add unitypes.
39062         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
39063         (u8_uctomb_aux): Move out to separate file.
39064         (u8_uctomb): Use ucs4_t, uint8_t types.
39065         * lib/unistr/ucs4-utf8.c: New file.
39066
39067         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
39068         (Depends-on): Add unitypes.
39069         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
39070         (u16_uctomb_aux): Move out to separate file.
39071         (u16_uctomb): Use ucs4_t, uint16_t types.
39072         * lib/unistr/ucs4-utf16.c: New file.
39073
39074 2006-12-25  Bruno Haible  <bruno@clisp.org>
39075
39076         * modules/unitypes: New file.
39077         * lib/unitypes.h: New file.
39078         * MODULES.html.sh (func_all_modules): New section "Unicode string
39079         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
39080         this section. Add unitypes.
39081
39082 2007-01-08  Bruno Haible  <bruno@clisp.org>
39083
39084         Avoid variable names that conflict with those from libtool.
39085         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
39086         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
39087         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
39088         library_names_spec to acl_library_names_spec, hardcode_* to
39089         acl_hardcode_*.
39090         Reported by Ralf Wildenhues.
39091
39092 2007-01-08  Bruno Haible  <bruno@clisp.org>
39093
39094         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
39095         definition.
39096         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
39097         definition.
39098         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
39099         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
39100         definition.
39101         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
39102         definition.
39103         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
39104         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
39105         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
39106         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
39107         definition.
39108         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
39109         definition.
39110         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
39111         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
39112         GC_USE_<algorithm>.
39113         * lib/gc-libgcrypt.c: Likewise.
39114         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
39115         * modules/gc-arctwo (configure.ac): Likewise.
39116         * modules/gc-des (configure.ac): Likewise.
39117         * modules/gc-hmac-md5 (configure.ac): Likewise.
39118         * modules/gc-hmac-sha1 (configure.ac): Likewise.
39119         * modules/gc-md2 (configure.ac): Likewise.
39120         * modules/gc-md4 (configure.ac): Likewise.
39121         * modules/gc-md5 (configure.ac): Likewise.
39122         * modules/gc-random (configure.ac): Likewise.
39123         * modules/gc-rijndael (configure.ac): Likewise.
39124         * modules/gc-sha1 (configure.ac): Likewise.
39125
39126 2007-01-08  Bruno Haible  <bruno@clisp.org>
39127
39128         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
39129         macro definition.
39130         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
39131         definition.
39132         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
39133         definition.
39134         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
39135         * modules/fcntl-safer (configure.ac): Likewise.
39136         * modules/fopen-safer (configure.ac): Likewise.
39137         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
39138         GNULIB_FWRITEERROR macro definition.
39139
39140 2007-01-08  Bruno Haible  <bruno@clisp.org>
39141
39142         * m4/gnulib-common.m4: New file.
39143         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
39144         (func_get_filelist): Add m4/gnulib-common.m4.
39145
39146 2007-01-08  Bruno Haible  <bruno@clisp.org>
39147
39148         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
39149         command.
39150
39151 2007-01-08  Jim Meyering  <jim@meyering.net>
39152
39153         Use a more robust test for a "can't happen" condition.
39154         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
39155         narrowed the st_size value.  Presuming the "can't happen" condition
39156         is true, that narrowing could conceivably convert an invalid st_size
39157         value into a valid one.  Instead, use a change based on Matthew
39158         Woehlke's original patch.
39159
39160         Slight readability improvement: use an assert-like macro
39161         in place of literal "abort ()" uses.
39162         * lib/fts.c (fts_assert): Define.
39163         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
39164         Use this macro instead of a bare 'abort'.
39165
39166 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
39167
39168         Don't worry about using IRIX 5.3's wctype.h broken definitions;
39169         simply work around them.
39170         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
39171         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
39172         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
39173         declaring.
39174         Don't bother to define as macros, since the standard doesn't require it.
39175         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
39176         longer worry about IRIX 5.3.
39177         (HAVE_WCTYPE_CTMP_BUG): Remove.
39178
39179 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39180
39181         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
39182         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
39183         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39184         Problems reported by Georg Schwarz for IRIX 5.3.
39185
39186         * gnulib-tool (autoconf_minversion): Take the maximum version number
39187         found, not the minimum.  Problem reported by James Youngman.
39188
39189 2007-01-03  Karl Berry  <karl@gnu.org>
39190
39191         * doc/error.texi: new file, explaining interaction with progname.
39192         * doc/gnulib.texi: include it.  Update copyright.
39193
39194 2007-01-03  Simon Josefsson  <simon@josefsson.org>
39195
39196         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
39197         AC_CANONICAL_HOST, to improve autobuild outputs.
39198
39199 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
39200             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39201
39202         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
39203         sockets, server sockets, and other file descriptors.  Count errors
39204         to compute the return value.  Reorder the code a bit to be easier
39205         to follow.  Don't set event bits that were not requested (except
39206         POLLERR and POLLHUP).
39207
39208 2007-01-01  Bruno Haible  <bruno@clisp.org>
39209
39210         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
39211
39212 2007-01-03  Jim Meyering  <jim@meyering.net>
39213
39214         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
39215
39216 2007-01-02  Bruno Haible  <bruno@clisp.org>
39217
39218         * modules/settime (Include): Require timespec.h.
39219         * modules/nanosleep (Include): Likewise.
39220
39221 2007-01-01  Bruno Haible  <bruno@clisp.org>
39222
39223         * gnulib-tool (func_emit_copyright_notice): Bump year.
39224         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
39225
39226 2007-01-01  Bruno Haible  <bruno@clisp.org>
39227
39228         Improve support for OpenBSD.
39229         * build-aux/config.rpath (libname_spec): Export.
39230         (library_names_spec): New variable. Export.
39231         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
39232         library_names_spec from the config.rpath output. Locate shared library
39233         through the name pattern in library_names_spec.
39234
39235 2007-01-01  Eric Blake  <ebb9@byu.net>
39236
39237         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
39238
39239 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
39240
39241         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
39242         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
39243         assume the C locale, and avoid an "eval" that could cause trouble.
39244         Problem with SORT reported by Bob Proulx.
39245
39246         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
39247         Define.  Trivial patch from Henning Nielsen Lund, originally
39248         sent to bug-grep@gnu.org today.
39249
39250 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
39251
39252         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
39253         struct stat.  Problem reported by Henning Nielsen Lund.
39254         * lib/acl.c: Include acl.h first, to check interface.  Don't
39255         bother to include sys/types.h and sys/stat.h again.
39256
39257 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
39258
39259         Import the following change from libc; problem reported by
39260         Sven Verdoolaege.
39261
39262         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
39263
39264         [BZ #1373]
39265         * lib/argp.h: Remove __NTH for __argp_usage inline function.
39266
39267 2006-12-28  Jim Meyering  <jim@meyering.net>
39268
39269         * build-aux/announce-gen: Do not assume that the package
39270         builds any of tar.gz, tar.bz2, and .xdelta files.
39271         Suggestion from Simon Josefsson.
39272
39273 2006-12-28  Simon Josefsson  <simon@josefsson.org>
39274
39275         * modules/announce-gen: New file.
39276
39277 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
39278
39279         * lib/mbchar.h: Just include <wctype.h>; the wctype module
39280         handles its gotchas now.
39281         * lib/mbswidth.c: Likewise.
39282         * lib/wcwidth.h: Likewise.
39283         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
39284         and iswcntrl; the wctype module does this stuff now.
39285         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39286         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39287         * modules/mbchar (Depends-on): Add wctype.
39288         * modules/mbswidth (Depends-on): Likewise.
39289         * modules/wcwidth (Depends-on): Likewise.
39290
39291 2006-12-27  Eric Blake  <ebb9@byu.net>
39292
39293         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
39294         module uses more than what <wctype.h> is required to provide.
39295
39296 2006-12-26  Eric Blake  <ebb9@byu.net>
39297
39298         * gnulib-tool (sed_extract_prog): Avoid space-tab.
39299
39300 2006-12-26  Eric Blake  <ebb9@byu.net>
39301
39302         * modules/absolute-header: New module.
39303         * modules/fcntl (Depends-on): Depend on it.
39304         * modules/inttypes (Depends-on): Likewise.
39305         * modules/stdint (Depends-on): Likewise.
39306         * modules/sys_stat (Depends-on): Likewise.
39307         * modules/wctype (Depends-on): Likewise.
39308         * MODULES.html.sh (Support for building libraries and
39309         executables): Document it.
39310
39311 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
39312
39313         * gnulib-tool (SED): Remove, undoing previous change.
39314         The problem was that it broke coreutils on Solaris, because
39315         "sed --posix" leaked into a makefile.
39316         (sed): New alias, if 'alias' and GNU sed.
39317
39318 2006-12-24  Jim Meyering  <jim@meyering.net>
39319
39320         Work around an fchownat bug in glibc-2.4:
39321         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
39322         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
39323         in spite of the -P option.
39324         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
39325         New macros.
39326         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
39327         * modules/openat (Files): Add lib/fchownat.c.
39328         * lib/openat.c (fchownat): Don't define here.  Move to...
39329         * lib/fchownat.c: ...this new file.
39330
39331 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
39332
39333         Fix bug reported by Bruno Haible in
39334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
39335         where quotearg.c didn't compile on Mac OS X 10.2 because it
39336         lacks <wchar.h> and wint_t.
39337         * lib/wctype_.h (__wctype_wint_t): New type.
39338         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
39339         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
39340         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
39341         Arg is now of type __wctype_wint_t, not wint_t.
39342         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
39343         substitute HAVE_WINT_T.
39344         * modules/wctype (Files): Add m4/wint_t.m4.
39345         (wctype.h): Substitute HAVE_WINT_T.
39346
39347 2006-12-23  Bruno Haible  <bruno@clisp.org>
39348
39349         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
39350
39351 2006-12-23  Bruno Haible  <bruno@clisp.org>
39352
39353         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
39354         S_ISLNK.
39355         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
39356         mingw.
39357
39358 2006-12-22  Bruno Haible  <bruno@clisp.org>
39359
39360         * lib/copy-file.c: Include acl.h.
39361         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
39362         Close the file descriptors only after being done with copy_acl.
39363         * modules/copy-file (Depends-on): Add acl.
39364
39365 2006-12-22  Bruno Haible  <bruno@clisp.org>
39366
39367         * gnulib-tool (SED): New variable.
39368         Use $SED instead of sed everywhere.
39369
39370 2006-12-22  Bruno Haible  <bruno@clisp.org>
39371
39372         * modules/no-c++: New file.
39373         * m4/no-c++.m4: New file.
39374         * MODULES.html.sh (Support for building libraries and executables):
39375         Add no-c++.
39376
39377 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
39378
39379         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39380         Include <limits.h>, and use its INT_MAX to rewrite the
39381         j loop so that it does not overflow 'int'.  Problem reported by
39382         Ralf Wildenhues in
39383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
39384         Play it safe by shifting left by 1 rather than multiplying by 2,
39385         as GCC is less likely to optimize this away when the value
39386         is signed (when it assumes overflow leads to undefined behavior).
39387         Also, don't assume time_t uses two's complement.
39388
39389 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
39390
39391         * MODULES.html.sh: New module wctype.
39392         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
39393         * lib/fnmatch.c: Don't bother to include <wchar.h> before
39394         <wctype.h>, since the new wctype module should fix this.
39395         * lib/quotearg.c: Include <wctype.h> unconditionally, since
39396         the wctype module should arrange for it.
39397         * lib/regex_internal.h: Likewise.
39398         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
39399         since the wctype module should handle this now.
39400         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
39401         * modules/fnmatch (Depends-on): Add wctype.
39402         * modules/quotearg (Depends-on): Likewise.
39403         * modules/regex (Depends-on): Likewise.
39404
39405 2006-12-19  Bruno Haible  <bruno@clisp.org>
39406
39407         * lib/strdup.h [C++]: Wrap definitions in extern "C".
39408         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
39409
39410 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39411
39412         * modules/savewd (Depends-on): Fix dependency on fcntl.
39413
39414 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39415
39416         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
39417         conforms to C99, rather than relying on the user's environment
39418         setting of STDINT_H.
39419
39420 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
39421         and Eric Blake  <ebb9@byu.net>
39422
39423         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
39424         This is more consistent with the other defines here.
39425         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
39426         Port to z/OS.  Problem reported by Paul Gilmartin.
39427         Change local vars to use gl_ prefix rather than ac_.
39428         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
39429         with other defines.
39430         * modules/double-slash-root: New module.
39431         * modules/dirname (Files): Remove m4/double-slash-root.m4.
39432         (Depends-on): Add double-slash-root.
39433         * MODULES.html.sh (File system functions): Mention new module.
39434
39435 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
39436
39437         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
39438         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
39439         This is for the benefit of gzip, which doesn't do i18n.
39440
39441 2006-12-12  Jim Meyering  <jim@meyering.net>
39442
39443         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
39444         Reported by Andreas Schwab <schwab@suse.de>.
39445
39446 2006-12-12  Bruno Haible  <bruno@clisp.org>
39447
39448         Merge these changes.
39449         2006-09-05  Bruno Haible  <bruno@clisp.org>
39450         * lib/iconvme.c (iconv_string): No need to save and restore errno when
39451         iconv_alloc succeeded.
39452         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39453         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39454         test for " && dest " at the end - dest is always != NULL there. Call
39455         iconv with 4xNULL arguments initially, to reset the state. Call iconv
39456         with 2xNULL arguments, also to flush the state storage. Handle the
39457         IRIX iconv behaviour. Realloc the final result, to throw away unused
39458         memory.
39459
39460 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
39461
39462         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39463         and fchmodat unconditionally, since glibc 2.4 has them.
39464         Problem reported by Arkadiusz Miskiewicz.
39465
39466 2006-12-10  Bruno Haible  <bruno@clisp.org>
39467
39468         * gnulib-tool (func_import): Show the include files only for those
39469         modules that are copied and specified.
39470         Reported by Karl Berry.
39471
39472 2006-12-08  Jim Meyering  <jim@meyering.net>
39473
39474         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39475         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
39476
39477         * build-aux/announce-gen: Add two new options, both optional:
39478         --bootstrap-tools=TOOL_LIST
39479               a comma-separated list of tools, e.g.,
39480               autoconf,automake,bison,gnulib
39481         --gnulib-snapshot-date=DATE
39482               if gnulib is in the bootstrap tool list,
39483               then report this as the snapshot date.
39484               If not specified, use the current date/time.
39485               If you specify a date here, be sure it's UTC.
39486
39487 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39488
39489         * tests/test-argp-2.sh: Fix test to match actual output.
39490         (func_compare): Fix sed script to be portable.
39491
39492 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
39493
39494         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39495         workaround for this case.  It is not autoconfigured now; offhand
39496         it's hard to see how to autoconfigure it.
39497
39498 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
39499
39500         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39501         a directory that is about to be chowned.  Such a directory's
39502         initial file permissions should permit the owner only and this
39503         should not be changed until after the chown, since the group and
39504         other bits would be incorrect if they granted permission before
39505         the chown.
39506
39507         Fix porting problem for iswctype reported by Georg Schwarz in:
39508         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39509         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39510         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39511         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39512         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39513
39514 2006-12-03  Jim Meyering  <jim@meyering.net>
39515
39516         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39517         p->fts_statp may not yet be defined.
39518         (fts_read): Instead, set it in the caller, once p->fts_statp is
39519         sure to be defined, and corresponds to a top-level directory.
39520         This bug made du -x fail.  Here's the coreutils test case:
39521         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39522         Reported by Mike Frysinger.
39523
39524 2006-12-01  Jim Meyering  <jim@meyering.net>
39525
39526         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39527         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39528         Reported by Simon Josefsson.
39529
39530 2006-11-30  Jim Meyering  <jim@meyering.net>
39531
39532         * m4/warning.m4: Use the all-permissive copyright notice
39533         recommended by RMS (rather than LGPL).
39534         * m4/vararrays.m4: Likewise.
39535         * m4/flexmember.m4: Likewise.
39536
39537 2006-11-29  Bruno Haible  <bruno@clisp.org>
39538
39539         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39540         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39541         using +=.
39542         Reported by Simon Josefsson <simon@josefsson.org>.
39543
39544 2006-11-28  James Youngman <jay@gnu.org>
39545
39546         * README: Advise users that they might find the bug-gnulib@gnu.org
39547         and autotools-announce@gnu.org mailing lists useful.
39548
39549 2006-11-28  Bruno Haible  <bruno@clisp.org>
39550
39551         * m4/ptrdiff_max.m4: Remove file.
39552
39553 2006-11-21  Bruno Haible  <bruno@clisp.org>
39554
39555         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39556         _AC_COMPUTE_INT.
39557         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39558         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39559         _AC_COMPUTE_INT.
39560         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39561         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39562         _AC_COMPUTE_INT.
39563         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39564
39565 2006-11-28  Jim Meyering  <jim@meyering.net>
39566
39567         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39568         warning from "gcc -Wshadow" about shadowing the builtin.
39569
39570 2006-11-27  Bruno Haible  <bruno@clisp.org>
39571
39572         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39573         _AC_COMPUTE_INT.
39574         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39575
39576 2006-11-27  Bruno Haible  <bruno@clisp.org>
39577             Paul Eggert  <eggert@cs.ucla.edu>
39578
39579         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39580
39581 2006-11-26  Bruno Haible  <bruno@clisp.org>
39582
39583         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39584         noinst_LTLIBRARIES.
39585
39586 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
39587             Bruno Haible  <bruno@clisp.org>
39588
39589         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39590         if compiling with "gcc -ansi".
39591
39592 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
39593
39594         Fix some incompatibilities with gcc -ansi -pedantic.
39595         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39596         if compiling pedantically with GCC, unless it's C99 or later.
39597         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39598         it mishandles gcc -ansi -pedantic as well.
39599         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39600         if gcc -pedantic.
39601         * lib/regexec.c (check_node_accept_bytes): Don't use auto
39602         initializers for struct if -pedantic, unless it's C99 or later.
39603
39604 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
39605
39606         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39607         Don't close an fd more than once. Identical atimes indicate
39608         success, not failure.
39609
39610 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
39611
39612         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39613
39614 2006-11-23  Jim Meyering  <jim@meyering.net>
39615
39616         * build-aux/announce-gen: New file.  From coreutils.
39617
39618 2006-11-22  Jim Meyering  <jim@meyering.net>
39619
39620         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39621         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39622         (fts_read): Use a temporary to narrow the overused st_size member
39623         before using it in a switch statement.  Reported by Matthew Woehlke.
39624
39625         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39626         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39627
39628 2006-11-20  Bruno Haible  <bruno@clisp.org>
39629
39630         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39631         changequote instead of pairs of brackets.
39632         Reported by Andreas Schwab <schwab@suse.de>.
39633
39634 2006-11-21  Jim Meyering  <jim@meyering.net>
39635
39636         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39637         so as to remain compatible with older compilers.
39638         Patch from Michael Deutschmann.
39639
39640 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39641
39642         * MODULES.html.sh (File system functions): Add openat.
39643
39644         * lib/openat.h (rpl_fstatat): New macro, if
39645         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39646         (fstatat): Define to rpl_fstatat under the same conditions,
39647         unless COMPILING_FSTATAT.
39648         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39649         seems to have the bug.
39650         * lib/fstatat.c: New file.
39651         * modules/openat (Files): Add it.
39652
39653 2006-11-20  Bruno Haible  <bruno@clisp.org>
39654
39655         * Makefile: New file.
39656
39657 2006-11-20  Jim Meyering  <jim@meyering.net>
39658
39659         The beginnings of syntax-related checks for gnulib.
39660         * lib/Makefile: New file.
39661         * lib/t-idcache: New script.  Ensure that the two halves of
39662         idcache.c stay in sync.
39663
39664         * lib/idcache.c: Adjust comments in user- and group- portions to
39665         be more accurate, and to be consistent with one another.
39666
39667 2006-11-20  Jim Meyering  <jim@meyering.net>
39668
39669         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39670         continue using the flexible array member (thus, this module performs
39671         half as many malloc calls), with the addition that...
39672         (getgroup, getuser): Consistently record a non-match via an empty
39673         "name" string, and map an empty string match to a NULL return value.
39674         * modules/idcache (Depends-on): Re-add flexmember.
39675
39676         * lib/idcache.c (getuser): Remove all uses of the register keyword.
39677         (getuidbyname, getgroup, getgidbyname): Likewise.
39678
39679         Use cleaner syntax: NULL rather than 0.
39680         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39681
39682 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
39683
39684         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39685         It mishandled the case where the group was missing.
39686         Problem reported by Greg Schafer.
39687         * modules/idcache: Likewise.
39688
39689 2006-11-18  Jim Meyering  <jim@meyering.net>
39690
39691         * check-module (%exempt_header): Add exception for some
39692         conditionally-included headers.
39693
39694         * modules/i-ring (Depends-on): Add verify.
39695         (License): Change to LGPL.
39696
39697 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
39698
39699         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39700         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39701         and inttostr.h.  Use snprintf rather than uinttostr, so that
39702         LGPLed code doesn't depend on GPLed.
39703
39704 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
39705
39706         * modules/inline (License): Change from GPL to LGPL.
39707
39708 2006-11-17  Jim Meyering  <jim@meyering.net>
39709
39710         * modules/d-type (License): Switch to LGPL.
39711
39712 2006-11-15  Bruno Haible  <bruno@clisp.org>
39713
39714         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39715
39716 2006-11-15  Eric Blake  <ebb9@byu.net>
39717
39718         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39719         the module dependency.
39720
39721 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39722             Bruno Haible  <bruno@clisp.org>
39723
39724         * gnulib-tool (func_create_testdir): Add license consistency check.
39725
39726 2006-11-15  Eric Blake  <ebb9@byu.net>
39727
39728         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39729         random "(cached)" in configure output.
39730
39731 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39732
39733         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39734         test for conforming inttypes.h is both announced and cached.
39735
39736         * MODULES.html.sh (seen_modules, seen_files): New variables.
39737         (func_module): Rewrite to use a few less gnulib-tool and sed
39738         invocations.  Avoid a couple of quadratic algorithms for ...
39739         (missed_modules, missed_files): ... these, with ...
39740         (func_append, func_tmpdir): ... these new functions, from
39741         gnulib-tool.  Analogously, install traps for cleanup.
39742
39743         * tests/test-gc.c (main): Remove unused variables.
39744         * tests/test-read-file.c: Include stdlib.h, for 'free'.
39745
39746 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
39747
39748         * modules/inttostr (License): Change to LGPL.
39749
39750 2006-11-14  Eric Blake  <ebb9@byu.net>
39751
39752         * modules/tempname (License): Change to LGPL.
39753
39754 2006-11-14  Eric Blake  <ebb9@byu.net>
39755
39756         * doc/functions.texi (Function Portability): *printf functions on
39757         Cygwin now understand all POSIX size specifiers.
39758
39759 2006-11-14  Bruno Haible  <bruno@clisp.org>
39760
39761         * modules/c-ctype (License): Change to LGPL.
39762
39763 2006-11-12  Bruno Haible  <bruno@clisp.org>
39764
39765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39766         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39767         for GNOME libraries, for which the include files are installed in
39768         subdirectories of $prefix/include.
39769
39770 2006-11-12  Bruno Haible  <bruno@clisp.org>
39771
39772         * m4/lib-link.m4: Require at least autoconf-2.54.
39773         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39774         name to underscores for the --with option.
39775
39776 2006-11-13  Bruno Haible  <bruno@clisp.org>
39777
39778         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39779         the tests directory.
39780         Reported by Ralf Wildenhues.
39781
39782 2006-11-13  Bruno Haible  <bruno@clisp.org>
39783
39784         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39785         (func_emit_initmacro_end): Undo the override here.
39786         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39787         Works around the famous automake error in coreutils.
39788
39789 2006-11-13  Eric Blake  <ebb9@byu.net>
39790
39791         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39792         element, not its node.
39793
39794 2006-11-12  Bruno Haible  <bruno@clisp.org>
39795
39796         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39797         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39798
39799 2006-11-12  Bruno Haible  <bruno@clisp.org>
39800
39801         * gnulib-tool: New option --local-symlink.
39802         (func_usage): Document it.
39803         (lsymbolic): New variable.
39804         (func_import, func_create_testdir): If --symlink was not specified,
39805         test whether --local-symlink was specified and the file comes from
39806         the local_gnulib_dir.
39807
39808 2006-11-12  Bruno Haible  <bruno@clisp.org>
39809
39810         * gnulib-tool (func_ln): New function.
39811         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39812
39813 2006-11-12  Bruno Haible  <bruno@clisp.org>
39814
39815         Finish support for source files in subdirectories.
39816         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39817         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39818         AUTOMAKE_OPTIONS.
39819         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39820
39821 2006-11-12  Bruno Haible  <bruno@clisp.org>
39822
39823         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39824         EXTRA_lib_SOURCES augmentation.
39825         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39826
39827 2006-11-12  Jim Meyering  <jim@meyering.net>
39828
39829         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39830         file descriptors.  This also averts a failure on systems with
39831         native openat support when a traversed directory lacks "x" access.
39832         * lib/fts_.h: Include "i-ring.h"
39833         (struct FTS) [fts_fd_ring]: New member.
39834         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39835         (FCHDIR): Add parentheses.
39836         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39837         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
39838         When descending, rather than simply closing the previous
39839         fts_cwd_fd value, push that file descriptor onto the ring.
39840         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39841         (fts_open): Initialize the new fd_ring member.
39842         (fts_close): Clear the ring.
39843         (fts_safe_changedir): When possible, use our new fd_ring to skip
39844         the diropen and fstat and dev/ino comparison that would normally
39845         accompany a virtual `chdir ("..")'.
39846
39847         * modules/fts (Depends-on): Add i-ring.
39848         * modules/i-ring: New module.
39849         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39850         * m4/i-ring.m4: New file.
39851
39852 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39853
39854         * gnulib-tool (func_create_testdir): Fix replacement of
39855         `build-aux' in configure.ac.  Run autotools in gltests
39856         subdirectory.
39857         (func_create_testdir, func_create_megatestdir, test): There is
39858         no need for '--force' in most autotool invocations in a new
39859         tree.  Actually fail the whole test if any of the tools, or the
39860         configure or make stages fail.
39861
39862         Sync from Automake.
39863         * build-aux/gnupload: Revert last change.  Add pointer to upload
39864         instructions of the GNU Maintenance Instructions.
39865         Suggestion by Karl Berry.
39866
39867 2006-11-10  Jim Meyering  <jim@meyering.net>
39868
39869         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39870
39871 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39872
39873         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39874         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39875         (bind_textdomain_codeset) [! ENABLE_NLS]:
39876         Evaluate all the arguments.  That way, callers get compatible behavior
39877         if the arguments have side effects.  Also, it avoids some GCC
39878         diagnostics in some cases; Joel E. Denny reported problems when Bison
39879         was configured with --enable-gcc-warnigs.
39880
39881 2006-11-10  Jim Meyering  <jim@meyering.net>
39882
39883         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39884         relevant options in CFLAGS (like -O, -fno-inline) are taken into
39885         account.
39886
39887 2006-11-10  Jim Meyering  <jim@meyering.net>
39888
39889         * modules/inline: New file/module.
39890         * modules/xalloc (Files): Remove m4/inline.m4.
39891         (Depends-on): Add inline, instead.
39892         * modules/oset: Likewise.
39893         * modules/list: Likewise.
39894
39895 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
39896
39897         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39898         Problem reported by Matthew Woehlke.
39899
39900 2006-11-09  Bruno Haible  <bruno@clisp.org>
39901
39902         * lib/tempname.c (gen_tempname): Remove variant that invokes
39903         __gen_tempname.
39904         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39905         __gen_tempname.
39906
39907 2006-11-08  Bruno Haible  <bruno@clisp.org>
39908
39909         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39910         to 'yes' instead of 'cross-compiling'.
39911
39912 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
39913
39914         * lib/quotearg.h (quotearg_free): New decl.
39915         * lib/quotearg.c (quotearg_free): New function.
39916         (slot0, nslots, slotvec0, slotvec):
39917         Now file-scope so that quotearg_free can get at them.
39918
39919 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39920
39921         Sync from Automake.
39922         * build-aux/gnupload: Add missing 'gnu' to example URL.
39923         Report by Karl Berry.
39924
39925 2006-11-08  Bruno Haible  <bruno@clisp.org>
39926
39927         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39928         Suggested by Paul Eggert.
39929
39930 2006-11-08  Jim Meyering  <jim@meyering.net>
39931
39932         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39933         It's already included if !_LIBC.
39934         (fts_safe_changedir): Add a comment.
39935
39936 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39937
39938         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39939         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39940         Matthew Woehlke.
39941
39942         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39943         definitions up, to avoid colliding with change below.
39944         (static_inline) [HAVE_INLINE]: New macro.
39945         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39946         Provide extern decls when !HAVE_INLINE.  Do not define unless
39947         static_inline is defined, either by us or by xmalloc.c.  Use
39948         static_inline rather than static inline.
39949         (XCALLOC): Optimize sizeof(T) = 1 case.
39950         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39951
39952 2006-11-07  Bruno Haible  <bruno@clisp.org>
39953
39954         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39955         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39956         AC_C_INLINE.
39957         * modules/xalloc (Files): Add m4/inline.m4.
39958
39959 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39960
39961         * README: Fix typo.
39962         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39963         (Miscellanous Notes): ...from this.
39964
39965 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
39966
39967         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39968         Mention that offsetof should be used instead of sizeof.
39969         From Bruno Haible.
39970
39971 2006-11-07  Bruno Haible  <bruno@clisp.org>
39972
39973         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39974
39975 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
39976
39977         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39978         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39979         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39980         (gl_tree_add_before, gl_tree_add_after):
39981         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39982         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39983         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39984         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39985         (gl_linked_add_after, gl_linked_add_at): Likewise.
39986         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39987         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39988         (gl_tree_add_before, gl_tree_add_after): Likewise.
39989         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39990         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39991         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39992
39993 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39994
39995         * lib/gl_oset.h: Use C comment style, not C++ comment style.
39996
39997 2006-11-06  Bruno Haible  <bruno@clisp.org>
39998
39999         * m4/inline.m4: New file.
40000         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
40001         * modules/list (Files): Add m4/inline.m4.
40002         * modules/oset (Files): Likewise.
40003
40004 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
40005
40006         * lib/idcache.c: Include <stddef.h>, for offsetof.
40007         (struct userid.name): Change from char * to a flexible array member.
40008         All uses changed.
40009         * modules/idcache (Depends-on): Add flexmember.
40010
40011         * MODULES.html.sh (Core language properties): New module flexmember.
40012         * modules/flexmember, m4/flexmember.m4: New files.
40013
40014         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
40015         inline functions that are identical with the old xnmalloc_inline,
40016         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
40017         that we can avoid some unnecessary integer multiplications and
40018         divisions in the common case where the element size is known at
40019         compile time.
40020         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
40021         needed.
40022         (xnboundedmalloc): Remove.
40023         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
40024         arguments, for consistency with rest of this header.
40025         (xcharalloc): Rewrite using XNMALLOC.
40026         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
40027         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
40028         versions have been moved to lib/xalloc.h and renamed to be the
40029         non-*_inline versions.
40030         (xmalloc, xrealloc): Implement without reference to the xnmalloc
40031         and xnrealloc functions, since those functions are now inline and
40032         now call us.
40033         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
40034         renaming described above.
40035         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
40036         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
40037         captures the dependency in AC_C_INLINE.
40038
40039         New module canonicalize-lgpl, proposed by Charles Wilson in
40040         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
40041         with a few small changes afterwards.
40042         * MODULES.html.sh (File system functions): New module
40043         canonicalize-lgpl.
40044         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
40045         and canonicalize_file_name.
40046         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
40047         * modules/canonicalize-lgpl: New files.
40048
40049 2006-11-05  Bruno Haible  <bruno@clisp.org>
40050
40051         * gnulib-tool (func_import, func_create_testdir): Create directories
40052         also for files in subdirectories of lib/.
40053
40054 2006-11-05  Bruno Haible  <bruno@clisp.org>
40055
40056         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
40057         ANSI C compliant.
40058
40059 2006-11-03  Bruno Haible  <bruno@clisp.org>
40060
40061         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
40062         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
40063         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
40064         (xnboundedmalloc): New inline function.
40065         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
40066         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
40067         xmalloc.
40068         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
40069         xmalloc.
40070         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
40071         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
40072         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
40073         xmalloc.
40074         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40075         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
40076         xmalloc.
40077         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
40078         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40079         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
40080         xmalloc.
40081         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
40082         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
40083         gl_tree_add_after): Use XMALLOC instead of xmalloc.
40084         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
40085         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
40086         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
40087         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
40088
40089 2006-11-03  Bruno Haible  <bruno@clisp.org>
40090
40091         * lib/c-ctype.h [C++]: Define functions without name mangling.
40092         * lib/fwriteerror.h [C++]: Likewise.
40093         * lib/gcd.h [C++]: Likewise.
40094         * lib/linebreak.h [C++]: Likewise.
40095
40096 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
40097
40098         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
40099         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
40100         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
40101         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40102         Check for functions and headers just once.
40103         Check for declaration of canonicalize_file_name.
40104         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
40105
40106 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40107
40108         * gnulib-tool (func_import): Fix typo in actioncmd.
40109
40110 2006-11-02  Bruno Haible  <bruno@clisp.org>
40111
40112         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
40113         newline sequence in the Makefile.am snippet as a space, like "make"
40114         does.
40115         Reported by Roger Persson <perrog@gmail.com>.
40116
40117 2006-11-01  Bruno Haible  <bruno@clisp.org>
40118
40119         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
40120         already declared in <string.h>.
40121         * lib/strcase.h (strncasecmp): Don't declare it if yes.
40122
40123 2006-11-01  Bruno Haible  <bruno@clisp.org>
40124
40125         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
40126         * lib/strcase.h: Include <string.h>.
40127         (strcasecmp): Define to rpl_strcasecmp here.
40128
40129 2006-11-01  Bruno Haible  <bruno@clisp.org>
40130
40131         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
40132
40133 2006-11-01  Eric Blake  <ebb9@byu.net>
40134
40135         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
40136
40137         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
40138
40139 2006-10-29  Bruno Haible  <bruno@clisp.org>
40140
40141         Make it compile in C++ mode.
40142         * lib/full-write.c (full_rw): Add a cast.
40143
40144 2006-11-01  Bruno Haible  <bruno@clisp.org>
40145
40146         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
40147         be POSIX compliant.
40148         Reported by Roger Persson <perrog@gmail.com>.
40149
40150 2006-11-01  Eric Blake  <ebb9@byu.net>
40151
40152         * lib/getopt_.h: Fix comments.
40153
40154 2006-10-31  Eric Blake  <ebb9@byu.net>
40155
40156         * modules/tmpdir (Depends-on): Add sys_stat.
40157         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
40158         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
40159         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
40160         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
40161         tempname.
40162
40163 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
40164
40165         Avoid some C++ diagnostics reported by Bruno Haible.
40166         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
40167         xmalloc.
40168         (quotearg_alloc): Use xcharalloc rather than xmalloc.
40169         (struct slotvec): Move to top level.
40170         (quotearg_n_options): Rewrite to avoid xmalloc.
40171         * lib/xalloc.h (xcharalloc): New function.
40172         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
40173         [defined __cplusplus]: Add function template that provides result
40174         type propagation.  This part of the change is from Bruno Haible.
40175
40176 2006-10-29  Bruno Haible  <bruno@clisp.org>
40177
40178         Make it compile in C++ mode.
40179         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
40180         * lib/strnlen1.c (strnlen1): Cast memchr result.
40181         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
40182         * lib/clean-temp.c (string_equals, string_hash): Add casts.
40183         (create_temp_dir): Rename local variable 'template'.
40184         (compile_csharp_using_sscli): Add cast.
40185         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
40186         * lib/findprog.c (find_in_path): Likewise.
40187         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
40188         * lib/wait-process.c (register_slave_subprocess): Likewise.
40189
40190 2006-10-22  Bruno Haible  <bruno@clisp.org>
40191
40192         * modules/tsearch: New file.
40193         * lib/tsearch.h: New file.
40194         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
40195         * m4/tsearch.m4: New file.
40196         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
40197
40198 2006-10-29  Eric Blake  <ebb9@byu.net>
40199
40200         * lib/arcfour.c: Assume config.h.
40201         * lib/arctwo.c: Likewise.
40202         * lib/base64.c: Likewise.
40203         * lib/check-version.c: Likewise.
40204         * lib/crc.c: Likewise.
40205         * lib/des.c: Likewise.
40206         * lib/gc-gnulib.c: Likewise.
40207         * lib/gc-libgcrypt.c: Likewise.
40208         * lib/gc-pbkdf2-sha1.c: Likewise.
40209         * lib/getaddrinfo.c: Likewise.
40210         * lib/getdelim.c: Likewise.
40211         * lib/getline.c: Likewise.
40212         * lib/hmac-md5.c: Likewise.
40213         * lib/hmac-sha1.c: Likewise.
40214         * lib/iconvme.c: Likewise.
40215         * lib/md2.c: Likewise.
40216         * lib/md4.c: Likewise.
40217         * lib/memxor.c: Likewise.
40218         * lib/read-file.c: Likewise.
40219         * lib/readline.c: Likewise.
40220         * lib/rijndael-alg-fst.c: Likewise.
40221         * lib/rijndael-api-fst.c: Likewise.
40222         * lib/xgetdomainname.c: Likewise.
40223
40224 2006-10-28  Eric Blake  <ebb9@byu.net>
40225
40226         * lib/xstrndup.c: Assume config.h.
40227
40228 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
40229
40230         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
40231         stat-macros.h is now for our own macros, whereas stat_h is for
40232         macros in the <sys/stat.h> name space.
40233         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
40234         (STAT_MACROS_H): Remove.
40235         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
40236         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
40237         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
40238         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
40239         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
40240         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
40241         Move these macros to ...
40242         * lib/stat_.h: here.  Don't include stat-macros.h.
40243         * lib/canonicalize.c: Don't include stat-macros.h.
40244         * lib/chown.c: Likewise.
40245         * lib/euidaccess.c: Likewise.
40246         * lib/file-type.c: Likewise.
40247         * lib/filemode.c: Likewise.
40248         * lib/glob.c: Likewise.
40249         * lib/isapipe.c: Likewise.
40250         * lib/lchown.c: Likewise.
40251         * lib/lstat.c: Likewise.
40252         * lib/mkdir-p.c: Likewise.
40253         * lib/rmdir.c: Likewise.
40254         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
40255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
40256         unless mkdir isn't declared, to speed up 'configure'.
40257         Always create sys/stat.h, since it's unlikely any real sys/stat.h
40258         would define all the S_* symbols.
40259         * modules/canonicalize (Depends-on):
40260         Depend on sys_stat, not stat-macros.
40261         * modules/chown: Likewise.
40262         * modules/euidaccess: Likewise.
40263         * modules/filemode: Likewise.
40264         * modules/file-type: Likewise.
40265         * modules/glob: Likewise.
40266         * modules/isapipe: Likewise.
40267         * modules/lchown: Likewise.
40268         * modules/lstat: Likewise.
40269         * modules/mkancesdirs: Likewise.
40270         * modules/rmdir: Likewise.
40271         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
40272         * modules/modechange: Likewise.
40273         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
40274         (configure.ac): Remove gl_STAT_MACROS.
40275         * modules/sys_stat (Depends-on): Remove stat-macros.
40276
40277 2006-10-27  Bruno Haible  <bruno@clisp.org>
40278
40279         * m4/signed.m4: Remove file.
40280         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
40281         invocation.
40282         * modules/vasnprintf (Files): Remove m4/signed.m4.
40283
40284 2006-10-27  Bruno Haible  <bruno@clisp.org>
40285
40286         Update to GNU gettext 0.16.
40287         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
40288         m4/inttypes-h.m4, m4/signed.m4.
40289         * m4/gettext.m4: Update to GNU gettext 0.16.
40290         * m4/intl.m4: New file, from GNU gettext.
40291         * m4/intldir.m4: New file, from GNU gettext.
40292         * config/srclist.txt: Update
40293
40294 2006-10-27  Eric Blake  <ebb9@byu.net>
40295
40296         * MODULES.html.sh: Document tempname.
40297         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
40298         dependencies.
40299         (Files): Move lib/tempname.c...
40300         * modules/tempname: ...to this new module.
40301         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
40302         (gl_PREREQ_TEMPNAME): Move...
40303         * m4/tempname.m4: ...to this new file.
40304         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
40305         * modules/sys_stat (Depends-on): Add stat-macros.
40306         * lib/stat_.h (includes): Pick up stat macros.
40307         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
40308         if stat macros are broken.
40309         * lib/tempname.c (includes): No need to include "stat-macros.h".
40310         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
40311         (direxists, __path_search) [!_LIBC]: Don't compile these in
40312         gnulib; the tmpdir module covers that.
40313         * lib/tempname.h: New file.
40314
40315 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
40316
40317         * COPYING: Explain how gnulib-tool converts licence headers.
40318         Almost all wording by Eric Blake.
40319
40320 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
40321
40322         * lib/mbchar.h (is_basic_table): Make read-only.
40323         * lib/mbchar.c (is_basic_table): Likewise.
40324         Reported by John Darrington.
40325
40326 2006-10-25  Bruno Haible  <bruno@clisp.org>
40327
40328         * lib/progname.h (set_program_name): Undefine before defining.
40329
40330 2006-10-25  Bruno Haible  <bruno@clisp.org>
40331
40332         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
40333         false for non-gcc C++ compilers.
40334         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40335
40336 2006-10-24  Bruno Haible  <bruno@clisp.org>
40337
40338         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
40339         iconv implementations like Irix iconv.
40340
40341 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40342
40343         * modules/vararrays: New file.
40344         * m4/vararrays.m4: New file, taken from diffutils.
40345         * MODULES.html.sh: New module vararrays.
40346
40347 2006-10-24  Karl Berry  <karl@gnu.org>
40348
40349         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
40350         Don't call GNU Unix.
40351
40352 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40353
40354         * users.txt: Add Libtool.
40355
40356         Sync from Libtool:
40357
40358         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40359
40360         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
40361         to gnulib's policy of including config.h unconditionally.
40362
40363 2006-10-24  Bruno Haible  <bruno@clisp.org>
40364
40365         * modules/wcwidth (Files): Add m4/wint_t.m4.
40366         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
40367         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
40368
40369 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
40370
40371         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
40372         to pacify GCC with some -W flags enabled.  Problem reported by
40373         Bruno Haible.
40374
40375 2006-10-24  Jim Meyering  <jim@meyering.net>
40376
40377         * MODULES.html.sh: Remove uinttostr.  It's not a module.
40378         Reported by Karl Berry.
40379
40380 2006-10-23  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
40383
40384 2006-10-24  Bruno Haible  <bruno@clisp.org>
40385
40386         * lib/gl_list.h: Use C comment style, not C++ comment style.
40387
40388 2006-10-23  Eric Blake  <ebb9@byu.net>
40389
40390         * lib/getaddrinfo.c (includes): Add missing include.
40391
40392 2006-10-23  Bruno Haible  <bruno@clisp.org>
40393             Paul Eggert  <eggert@cs.ucla.edu>
40394
40395         Ability to rename obstack_free.
40396         * lib/obstack.h (__obstack_free): New macro. Declare instead of
40397         obstack_free.
40398         (obstack_free): Invoke the __obstack_free macro.
40399         * lib/obstack.c (obstack_free): Use __obstack_free macro.
40400
40401 2006-10-23  Bruno Haible  <bruno@clisp.org>
40402             Paul Eggert  <eggert@cs.ucla.edu>
40403
40404         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
40405         __argc, __argv from the declaration. (They are defined as macros on
40406         mingw.)
40407
40408 2006-10-22  Bruno Haible  <bruno@clisp.org>
40409
40410         * doc/gnulib-intro.texi: New file.
40411         * doc/gnulib.texi: Include it.
40412
40413 2006-10-21  Bruno Haible  <bruno@clisp.org>
40414
40415         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
40416         "Introduction", "Miscellanous Notes", "Particular Modules".
40417
40418 2006-10-21  Bruno Haible  <bruno@clisp.org>
40419
40420         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40421         Change mostlyclean-local rule to avoid sh syntax error from bash
40422         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
40423
40424 2006-10-23  Jim Meyering  <jim@meyering.net>
40425
40426         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
40427         in place of snprintf.
40428
40429         * modules/inttostr (Files): Add lib/uinttostr.c.
40430         * lib/uinttostr.c (inttostr): New file/function.
40431         * lib/inttostr.h (uinttostr): Declare.
40432         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
40433         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
40434         Add uinttostr.
40435         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
40436
40437 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40438
40439         * lib/canonicalize.c (ELOOP): Define if not already defined.
40440         Problem reported by Bruno Haible in
40441         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
40442
40443 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
40444
40445         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
40446         Problem reported by Perry Smith and Ville Laurikari.
40447
40448         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40449         uses.
40450
40451 2006-10-19  Bruno Haible  <bruno@clisp.org>
40452
40453         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40454         for mingw.
40455
40456 2006-10-19  Bruno Haible  <bruno@clisp.org>
40457
40458         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40459         Needed for mingw.
40460
40461 2006-10-19  Bruno Haible  <bruno@clisp.org>
40462
40463         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40464
40465 2006-10-19  Bruno Haible  <bruno@clisp.org>
40466
40467         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40468         it.
40469
40470 2006-10-19  Bruno Haible  <bruno@clisp.org>
40471
40472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40473         invocation.
40474
40475 2006-10-19  Bruno Haible  <bruno@clisp.org>
40476
40477         * gnulib-tool (func_create_testdir): Don't include ftruncate and
40478         mountlist by default.
40479
40480 2006-10-16  Bruno Haible  <bruno@clisp.org>
40481
40482         * lib/c-strstr.c: Include c-strstr.h.
40483
40484 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
40485
40486         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40487         in a slash.
40488
40489 2006-10-18  Bruno Haible  <bruno@clisp.org>
40490
40491         * lib/lock.h [C++]: Wrap definitions in extern "C".
40492
40493 2006-10-18  Bruno Haible  <bruno@clisp.org>
40494
40495         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40496         gl_LIBOBJS list.
40497
40498 2006-10-18  Bruno Haible  <bruno@clisp.org>
40499
40500         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40501
40502 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
40503
40504         * lib/xstrtol.h: Include gettext.h.
40505         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40506         Problem reported by Eric Blake.
40507         * modules/xstrtol (Depends-on): Add gettext-h.
40508
40509 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
40510
40511         * lib/strftime.c (advance): New macro.
40512         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
40513         incomplete type, so you can't add 0 to it.  Problem and patch
40514         reported by Eelco Dolstra for dietlibc.
40515
40516 2006-10-18  Jim Meyering  <jim@meyering.net>
40517
40518         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40519         type for a local, and rename it: s/up/user_proc/.
40520
40521 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
40522
40523         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40524         READ_UTMP_USER_PROCESS.
40525         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40526
40527 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
40528
40529         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40530         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40531
40532 2006-10-17  Eric Blake  <ebb9@byu.net>
40533
40534         * lib/sigprocmask.c (sigprocmask): Fix typo.
40535
40536         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40537
40538         * modules/clean-temp (Makefile.am): Don't add to make output...
40539         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40540         config.h.
40541
40542 2006-10-17  Bruno Haible  <bruno@clisp.org>
40543
40544         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40545         differently if DEFAULT_TEXT_DOMAIN is set.
40546
40547 2006-10-16  Bruno Haible  <bruno@clisp.org>
40548
40549         * lib/clean-temp.c: Include fwriteerror.h.
40550
40551 2006-10-16  Bruno Haible  <bruno@clisp.org>
40552
40553         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40554
40555 2006-10-16  Bruno Haible  <bruno@clisp.org>
40556
40557         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40558         * lib/sigprocmask.h: Include <sys/types.h>.
40559         (sigset_t): Use the system's definition if present.
40560
40561 2006-10-17  Eric Blake  <ebb9@byu.net>
40562
40563         * lib/xvasprintf.c (includes): Assume config.h.
40564         * lib/xasprintf.c (includes): Likewise.
40565
40566 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
40567
40568         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40569         at least as wide as intmax_t.
40570
40571 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
40572
40573         (Imported from Automake.)
40574         * build-aux/gnupload: Update to version 1.1 of directive file.
40575
40576 2006-10-16  Eric Blake  <ebb9@byu.net>
40577
40578         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40579         match Automake 1.10a.
40580
40581 2006-10-14  Bruno Haible  <bruno@clisp.org>
40582
40583         * modules/sigprocmask: New file.
40584         * lib/sigprocmask.h: New file.
40585         * lib/sigprocmask.c: New file.
40586         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40587         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40588         request sigprocmask.o.
40589         (gl_PREREQ_SIGPROCMASK): New macro.
40590         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40591         (Depends-on): Add sigprocmask.
40592         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40593         gt_SIGNALBLOCKING. Test for 'raise' only once.
40594         * lib/fatal-signal.c: Include sigprocmask.h.
40595         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40596         unblock_fatal_signals): Define always.
40597         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40598         sigprocmask.
40599
40600 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40601
40602         Sync from Automake.
40603         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40604         which incorrectly sets the mode of an existing destination
40605         directory.  In some cases the unpatched install-sh could do the
40606         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40607         system.  We hope this is rare in practice, but it's clearly worth
40608         fixing.  Problem reported by Alex Unleashed in
40609         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40610         Also, don't bother to check for -m bugs unless we're using -m;
40611         suggested by Stepan Kasal.
40612
40613 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40614
40615         Sync from Automake.
40616         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40617         `-c' flag, so they appear at the same position as in %FASTDEP%
40618         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
40619         which ignores unknown options only after the first non-option.
40620         Bug report against M4 by Nelson H. F. Beebe.
40621
40622 2006-10-13  Jim Meyering  <jim@meyering.net>
40623
40624         Fix a bug in yesterday's change.
40625         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40626         p->fts_statp->st_dev would be used uninitialized.
40627         Ensures that we always call fts_stat on the very first entry.
40628         Miklos Szeredi reported that find -xdev stopped working.
40629
40630 2006-10-12  Bruno Haible  <bruno@clisp.org>
40631
40632         * gnulib-tool (func_get_automake_snippet): Append an automatically
40633         computed EXTRA_DIST augmentation.
40634         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40635         * modules/alloca-opt (Makefile.am): Likewise.
40636         * modules/allocsa (Makefile.am): Likewise.
40637         * modules/arcfour (Makefile.am): Likewise.
40638         * modules/arctwo (Makefile.am): Likewise.
40639         * modules/argmatch (Makefile.am): Likewise.
40640         * modules/argz (Makefile.am): Likewise.
40641         * modules/atexit (Makefile.am): Likewise.
40642         * modules/backupfile (Makefile.am): Likewise.
40643         * modules/byteswap (Makefile.am): Likewise.
40644         * modules/c-strtod (Makefile.am): Likewise.
40645         * modules/c-strtold (Makefile.am): Likewise.
40646         * modules/calloc (Makefile.am): Likewise.
40647         * modules/canon-host (Makefile.am): Likewise.
40648         * modules/canonicalize (Makefile.am): Likewise.
40649         * modules/chdir-long (Makefile.am): Likewise.
40650         * modules/chdir-safer (Makefile.am): Likewise.
40651         * modules/check-version (Makefile.am): Likewise.
40652         * modules/chown (Makefile.am): Likewise.
40653         * modules/cloexec (Makefile.am): Likewise.
40654         * modules/close-stream (Makefile.am): Likewise.
40655         * modules/closeout (Makefile.am): Likewise.
40656         * modules/crc (Makefile.am): Likewise.
40657         * modules/csharpexec (Makefile.am): Likewise.
40658         * modules/cycle-check (Makefile.am): Likewise.
40659         * modules/des (Makefile.am): Likewise.
40660         * modules/dev-ino (Makefile.am): Likewise.
40661         * modules/dirfd (Makefile.am): Likewise.
40662         * modules/dirname (Makefile.am): Likewise.
40663         * modules/dup2 (Makefile.am): Likewise.
40664         * modules/eealloc (Makefile.am): Likewise.
40665         * modules/error (Makefile.am): Likewise.
40666         * modules/euidaccess (Makefile.am): Likewise.
40667         * modules/exclude (Makefile.am): Likewise.
40668         * modules/exitfail (Makefile.am): Likewise.
40669         * modules/fcntl-safer (Makefile.am): Likewise.
40670         * modules/fcntl (Makefile.am): Likewise.
40671         * modules/file-type (Makefile.am): Likewise.
40672         * modules/fileblocks (Makefile.am): Likewise.
40673         * modules/filemode (Makefile.am): Likewise.
40674         * modules/filenamecat (Makefile.am): Likewise.
40675         * modules/fnmatch (Makefile.am): Likewise.
40676         * modules/fopen-safer (Makefile.am): Likewise.
40677         * modules/fpending (Makefile.am): Likewise.
40678         * modules/fprintftime (Makefile.am): Likewise.
40679         * modules/free (Makefile.am): Likewise.
40680         * modules/fsusage (Makefile.am): Likewise.
40681         * modules/ftruncate (Makefile.am): Likewise.
40682         * modules/fts (Makefile.am): Likewise.
40683         * modules/gc-arcfour (Makefile.am): Likewise.
40684         * modules/gc-des (Makefile.am): Likewise.
40685         * modules/gc-hmac-md5 (Makefile.am): Likewise.
40686         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40687         * modules/gc-md4 (Makefile.am): Likewise.
40688         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40689         * modules/gc-sha1 (Makefile.am): Likewise.
40690         * modules/gc (Makefile.am): Likewise.
40691         * modules/getaddrinfo (Makefile.am): Likewise.
40692         * modules/getcwd (Makefile.am): Likewise.
40693         * modules/getdelim (Makefile.am): Likewise.
40694         * modules/getdomainname (Makefile.am): Likewise.
40695         * modules/getgroups (Makefile.am): Likewise.
40696         * modules/gethostname (Makefile.am): Likewise.
40697         * modules/gethrxtime (Makefile.am): Likewise.
40698         * modules/getline (Makefile.am): Likewise.
40699         * modules/getloadavg (Makefile.am): Likewise.
40700         * modules/getlogin_r (Makefile.am): Likewise.
40701         * modules/getndelim2 (Makefile.am): Likewise.
40702         * modules/getopt (Makefile.am): Likewise.
40703         * modules/getpagesize (Makefile.am): Likewise.
40704         * modules/getpass-gnu (Makefile.am): Likewise.
40705         * modules/getpass (Makefile.am): Likewise.
40706         * modules/getsubopt (Makefile.am): Likewise.
40707         * modules/gettime (Makefile.am): Likewise.
40708         * modules/gettimeofday (Makefile.am): Likewise.
40709         * modules/getugroups (Makefile.am): Likewise.
40710         * modules/getusershell (Makefile.am): Likewise.
40711         * modules/glob (Makefile.am): Likewise.
40712         * modules/group-member (Makefile.am): Likewise.
40713         * modules/hard-locale (Makefile.am): Likewise.
40714         * modules/hash (Makefile.am): Likewise.
40715         * modules/hmac-md5 (Makefile.am): Likewise.
40716         * modules/hmac-sha1 (Makefile.am): Likewise.
40717         * modules/human (Makefile.am): Likewise.
40718         * modules/idcache (Makefile.am): Likewise.
40719         * modules/imaxabs (Makefile.am): Likewise.
40720         * modules/imaxdiv (Makefile.am): Likewise.
40721         * modules/inet_ntop (Makefile.am): Likewise.
40722         * modules/inet_pton (Makefile.am): Likewise.
40723         * modules/intprops (Makefile.am): Likewise.
40724         * modules/inttostr (Makefile.am): Likewise.
40725         * modules/inttypes (Makefile.am): Likewise.
40726         * modules/isapipe (Makefile.am): Likewise.
40727         * modules/javaversion (Makefile.am): Likewise.
40728         * modules/lchmod (Makefile.am): Likewise.
40729         * modules/lchown (Makefile.am): Likewise.
40730         * modules/localcharset (Makefile.am): Likewise.
40731         * modules/long-options (Makefile.am): Likewise.
40732         * modules/lstat (Makefile.am): Likewise.
40733         * modules/malloc (Makefile.am): Likewise.
40734         * modules/mathl (Makefile.am): Likewise.
40735         * modules/mbchar (Makefile.am): Likewise.
40736         * modules/md2 (Makefile.am): Likewise.
40737         * modules/md4 (Makefile.am): Likewise.
40738         * modules/md5 (Makefile.am): Likewise.
40739         * modules/memcasecmp (Makefile.am): Likewise.
40740         * modules/memchr (Makefile.am): Likewise.
40741         * modules/memcmp (Makefile.am): Likewise.
40742         * modules/memcoll (Makefile.am): Likewise.
40743         * modules/memcpy (Makefile.am): Likewise.
40744         * modules/memmem (Makefile.am): Likewise.
40745         * modules/memmove (Makefile.am): Likewise.
40746         * modules/mempcpy (Makefile.am): Likewise.
40747         * modules/memrchr (Makefile.am): Likewise.
40748         * modules/memset (Makefile.am): Likewise.
40749         * modules/memxor (Makefile.am): Likewise.
40750         * modules/mkancesdirs (Makefile.am): Likewise.
40751         * modules/mkdir-p (Makefile.am): Likewise.
40752         * modules/mkdir (Makefile.am): Likewise.
40753         * modules/mkdtemp (Makefile.am): Likewise.
40754         * modules/mkstemp (Makefile.am): Likewise.
40755         * modules/mktime (Makefile.am): Likewise.
40756         * modules/modechange (Makefile.am): Likewise.
40757         * modules/mountlist (Makefile.am): Likewise.
40758         * modules/nanosleep (Makefile.am): Likewise.
40759         * modules/obstack (Makefile.am): Likewise.
40760         * modules/openat (Makefile.am): Likewise.
40761         * modules/pagealign_alloc (Makefile.am): Likewise.
40762         * modules/pathmax (Makefile.am): Likewise.
40763         * modules/physmem (Makefile.am): Likewise.
40764         * modules/poll (Makefile.am): Likewise.
40765         * modules/posixtm (Makefile.am): Likewise.
40766         * modules/posixver (Makefile.am): Likewise.
40767         * modules/putenv (Makefile.am): Likewise.
40768         * modules/quote (Makefile.am): Likewise.
40769         * modules/quotearg (Makefile.am): Likewise.
40770         * modules/raise (Makefile.am): Likewise.
40771         * modules/read-file (Makefile.am): Likewise.
40772         * modules/readline (Makefile.am): Likewise.
40773         * modules/readlink (Makefile.am): Likewise.
40774         * modules/readtokens (Makefile.am): Likewise.
40775         * modules/readutmp (Makefile.am): Likewise.
40776         * modules/realloc (Makefile.am): Likewise.
40777         * modules/regex (Makefile.am): Likewise.
40778         * modules/rename-dest-slash (Makefile.am): Likewise.
40779         * modules/rename (Makefile.am): Likewise.
40780         * modules/rijndael (Makefile.am): Likewise.
40781         * modules/rmdir (Makefile.am): Likewise.
40782         * modules/rpmatch (Makefile.am): Likewise.
40783         * modules/safe-read (Makefile.am): Likewise.
40784         * modules/safe-write (Makefile.am): Likewise.
40785         * modules/same-inode (Makefile.am): Likewise.
40786         * modules/same (Makefile.am): Likewise.
40787         * modules/save-cwd (Makefile.am): Likewise.
40788         * modules/savedir (Makefile.am): Likewise.
40789         * modules/setenv (Makefile.am): Likewise.
40790         * modules/settime (Makefile.am): Likewise.
40791         * modules/sha1 (Makefile.am): Likewise.
40792         * modules/sig2str (Makefile.am): Likewise.
40793         * modules/snprintf (Makefile.am): Likewise.
40794         * modules/stat-macros (Makefile.am): Likewise.
40795         * modules/stat-time (Makefile.am): Likewise.
40796         * modules/stdbool (Makefile.am): Likewise.
40797         * modules/stdint (Makefile.am): Likewise.
40798         * modules/stdlib-safer (Makefile.am): Likewise.
40799         * modules/stpcpy (Makefile.am): Likewise.
40800         * modules/stpncpy (Makefile.am): Likewise.
40801         * modules/strcase (Makefile.am): Likewise.
40802         * modules/strcasestr (Makefile.am): Likewise.
40803         * modules/strchrnul (Makefile.am): Likewise.
40804         * modules/strcspn (Makefile.am): Likewise.
40805         * modules/strdup (Makefile.am): Likewise.
40806         * modules/strerror (Makefile.am): Likewise.
40807         * modules/strftime (Makefile.am): Likewise.
40808         * modules/strndup (Makefile.am): Likewise.
40809         * modules/strnlen (Makefile.am): Likewise.
40810         * modules/strpbrk (Makefile.am): Likewise.
40811         * modules/strsep (Makefile.am): Likewise.
40812         * modules/strstr (Makefile.am): Likewise.
40813         * modules/strtod (Makefile.am): Likewise.
40814         * modules/strtoimax (Makefile.am): Likewise.
40815         * modules/strtok_r (Makefile.am): Likewise.
40816         * modules/strtol (Makefile.am): Likewise.
40817         * modules/strtoll (Makefile.am): Likewise.
40818         * modules/strtoul (Makefile.am): Likewise.
40819         * modules/strtoull (Makefile.am): Likewise.
40820         * modules/strtoumax (Makefile.am): Likewise.
40821         * modules/strverscmp (Makefile.am): Likewise.
40822         * modules/sys_socket (Makefile.am): Likewise.
40823         * modules/sys_stat (Makefile.am): Likewise.
40824         * modules/sysexits (Makefile.am): Likewise.
40825         * modules/time_r (Makefile.am): Likewise.
40826         * modules/timegm (Makefile.am): Likewise.
40827         * modules/timespec (Makefile.am): Likewise.
40828         * modules/tmpfile-safer (Makefile.am): Likewise.
40829         * modules/trim (Makefile.am): Likewise.
40830         * modules/unistd-safer (Makefile.am): Likewise.
40831         * modules/unlinkdir (Makefile.am): Likewise.
40832         * modules/unlocked-io (Makefile.am): Likewise.
40833         * modules/userspec (Makefile.am): Likewise.
40834         * modules/utime (Makefile.am): Likewise.
40835         * modules/utimecmp (Makefile.am): Likewise.
40836         * modules/utimens (Makefile.am): Likewise.
40837         * modules/vasnprintf (Makefile.am): Likewise.
40838         * modules/vasprintf (Makefile.am): Likewise.
40839         * modules/vsnprintf (Makefile.am): Likewise.
40840         * modules/xalloc (Makefile.am): Likewise.
40841         * modules/xgetcwd (Makefile.am): Likewise.
40842         * modules/xnanosleep (Makefile.am): Likewise.
40843         * modules/xreadlink (Makefile.am): Likewise.
40844         * modules/xstrtod (Makefile.am): Likewise.
40845         * modules/xstrtol (Makefile.am): Likewise.
40846         * modules/xstrtold (Makefile.am): Likewise.
40847         * modules/yesno (Makefile.am): Likewise.
40848         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40849
40850 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
40851
40852         * modules/error (Makefile.am): Distribute files through
40853         EXTRA_DIST, not lib_SOURCES.
40854
40855 2006-10-12  Eric Blake  <ebb9@byu.net>
40856
40857         * modules/error (Makefile.am): Distribute files in /lib.
40858         * modules/obstack (Makefile.am): Likewise.
40859
40860 2006-10-12  Bruno Haible  <bruno@clisp.org>
40861
40862         * modules/acl (Makefile.am): Distribute all files in lib/ through
40863         EXTRA_DIST.
40864         * modules/arcfour (Makefile.am): Likewise.
40865         * modules/arctwo (Makefile.am): Likewise.
40866         * modules/argmatch (Makefile.am): Likewise.
40867         * modules/argz (Makefile.am): Likewise.
40868         * modules/atexit (Makefile.am): Likewise.
40869         * modules/backupfile (Makefile.am): Likewise.
40870         * modules/c-strtod (Makefile.am): Likewise.
40871         * modules/c-strtold (Makefile.am): Likewise.
40872         * modules/calloc (Makefile.am): Likewise.
40873         * modules/canon-host (Makefile.am): Likewise.
40874         * modules/canonicalize (Makefile.am): Likewise.
40875         * modules/chdir-long (Makefile.am): Likewise.
40876         * modules/chdir-safer (Makefile.am): Likewise.
40877         * modules/check-version (Makefile.am): Likewise.
40878         * modules/chown (Makefile.am): Likewise.
40879         * modules/cloexec (Makefile.am): Likewise.
40880         * modules/close-stream (Makefile.am): Likewise.
40881         * modules/closeout (Makefile.am): Likewise.
40882         * modules/crc (Makefile.am): Likewise.
40883         * modules/cycle-check (Makefile.am): Likewise.
40884         * modules/des (Makefile.am): Likewise.
40885         * modules/dirfd (Makefile.am): Likewise.
40886         * modules/dirname (Makefile.am): Likewise.
40887         * modules/dup2 (Makefile.am): Likewise.
40888         * modules/euidaccess (Makefile.am): Likewise.
40889         * modules/exclude (Makefile.am): Likewise.
40890         * modules/exitfail (Makefile.am): Likewise.
40891         * modules/fcntl-safer (Makefile.am): Likewise.
40892         * modules/file-type (Makefile.am): Likewise.
40893         * modules/fileblocks (Makefile.am): Likewise.
40894         * modules/filemode (Makefile.am): Likewise.
40895         * modules/filenamecat (Makefile.am): Likewise.
40896         * modules/fnmatch (Makefile.am): Likewise.
40897         * modules/fopen-safer (Makefile.am): Likewise.
40898         * modules/fpending (Makefile.am): Likewise.
40899         * modules/fprintftime (Makefile.am): Likewise.
40900         * modules/free (Makefile.am): Likewise.
40901         * modules/fsusage (Makefile.am): Likewise.
40902         * modules/ftruncate (Makefile.am): Likewise.
40903         * modules/fts (Makefile.am): Likewise.
40904         * modules/gc (Makefile.am): Likewise.
40905         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40906         * modules/getaddrinfo (Makefile.am): Likewise.
40907         * modules/getcwd (Makefile.am): Likewise.
40908         * modules/getdelim (Makefile.am): Likewise.
40909         * modules/getdomainname (Makefile.am): Likewise.
40910         * modules/getgroups (Makefile.am): Likewise.
40911         * modules/gethostname (Makefile.am): Likewise.
40912         * modules/gethrxtime (Makefile.am): Likewise.
40913         * modules/getline (Makefile.am): Likewise.
40914         * modules/getloadavg (Makefile.am): Likewise.
40915         * modules/getlogin_r (Makefile.am): Likewise.
40916         * modules/getopt (Makefile.am): Likewise.
40917         * modules/getpass (Makefile.am): Likewise.
40918         * modules/getpass-gnu (Makefile.am): Likewise.
40919         * modules/getsubopt (Makefile.am): Likewise.
40920         * modules/gettime (Makefile.am): Likewise.
40921         * modules/gettimeofday (Makefile.am): Likewise.
40922         * modules/getugroups (Makefile.am): Likewise.
40923         * modules/getusershell (Makefile.am): Likewise.
40924         * modules/glob (Makefile.am): Likewise.
40925         * modules/group-member (Makefile.am): Likewise.
40926         * modules/hard-locale (Makefile.am): Likewise.
40927         * modules/hash (Makefile.am): Likewise.
40928         * modules/hmac-md5 (Makefile.am): Likewise.
40929         * modules/hmac-sha1 (Makefile.am): Likewise.
40930         * modules/human (Makefile.am): Likewise.
40931         * modules/idcache (Makefile.am): Likewise.
40932         * modules/imaxabs (Makefile.am): Likewise.
40933         * modules/imaxdiv (Makefile.am): Likewise.
40934         * modules/inet_ntop (Makefile.am): Likewise.
40935         * modules/inet_pton (Makefile.am): Likewise.
40936         * modules/inttostr (Makefile.am): Likewise.
40937         * modules/isapipe (Makefile.am): Likewise.
40938         * modules/lchown (Makefile.am): Likewise.
40939         * modules/long-options (Makefile.am): Likewise.
40940         * modules/lstat (Makefile.am): Likewise.
40941         * modules/malloc (Makefile.am): Likewise.
40942         * modules/mathl (Makefile.am): Likewise.
40943         * modules/mbchar (Makefile.am): Likewise.
40944         * modules/md2 (Makefile.am): Likewise.
40945         * modules/md4 (Makefile.am): Likewise.
40946         * modules/md5 (Makefile.am): Likewise.
40947         * modules/memcasecmp (Makefile.am): Likewise.
40948         * modules/memchr (Makefile.am): Likewise.
40949         * modules/memcmp (Makefile.am): Likewise.
40950         * modules/memcoll (Makefile.am): Likewise.
40951         * modules/memcpy (Makefile.am): Likewise.
40952         * modules/memmem (Makefile.am): Likewise.
40953         * modules/memmove (Makefile.am): Likewise.
40954         * modules/mempcpy (Makefile.am): Likewise.
40955         * modules/memrchr (Makefile.am): Likewise.
40956         * modules/memset (Makefile.am): Likewise.
40957         * modules/memxor (Makefile.am): Likewise.
40958         * modules/mkancesdirs (Makefile.am): Likewise.
40959         * modules/mkdir (Makefile.am): Likewise.
40960         * modules/mkdir-p (Makefile.am): Likewise.
40961         * modules/mkdtemp (Makefile.am): Likewise.
40962         * modules/mkstemp (Makefile.am): Likewise.
40963         * modules/mktime (Makefile.am): Likewise.
40964         * modules/modechange (Makefile.am): Likewise.
40965         * modules/mountlist (Makefile.am): Likewise.
40966         * modules/nanosleep (Makefile.am): Likewise.
40967         * modules/openat (Makefile.am): Likewise.
40968         * modules/pagealign_alloc (Makefile.am): Likewise.
40969         * modules/physmem (Makefile.am): Likewise.
40970         * modules/poll (Makefile.am): Likewise.
40971         * modules/posixtm (Makefile.am): Likewise.
40972         * modules/posixver (Makefile.am): Likewise.
40973         * modules/putenv (Makefile.am): Likewise.
40974         * modules/quote (Makefile.am): Likewise.
40975         * modules/quotearg (Makefile.am): Likewise.
40976         * modules/raise (Makefile.am): Likewise.
40977         * modules/read-file (Makefile.am): Likewise.
40978         * modules/readline (Makefile.am): Likewise.
40979         * modules/readlink (Makefile.am): Likewise.
40980         * modules/readtokens (Makefile.am): Likewise.
40981         * modules/readutmp (Makefile.am): Likewise.
40982         * modules/realloc (Makefile.am): Likewise.
40983         * modules/regex (Makefile.am): Likewise.
40984         * modules/rename (Makefile.am): Likewise.
40985         * modules/rename-dest-slash (Makefile.am): Likewise.
40986         * modules/rijndael (Makefile.am): Likewise.
40987         * modules/rmdir (Makefile.am): Likewise.
40988         * modules/rpmatch (Makefile.am): Likewise.
40989         * modules/safe-read (Makefile.am): Likewise.
40990         * modules/safe-write (Makefile.am): Likewise.
40991         * modules/same (Makefile.am): Likewise.
40992         * modules/save-cwd (Makefile.am): Likewise.
40993         * modules/savedir (Makefile.am): Likewise.
40994         * modules/setenv (Makefile.am): Likewise.
40995         * modules/settime (Makefile.am): Likewise.
40996         * modules/sha1 (Makefile.am): Likewise.
40997         * modules/sig2str (Makefile.am): Likewise.
40998         * modules/snprintf (Makefile.am): Likewise.
40999         * modules/stdlib-safer (Makefile.am): Likewise.
41000         * modules/stpcpy (Makefile.am): Likewise.
41001         * modules/stpncpy (Makefile.am): Likewise.
41002         * modules/strcase (Makefile.am): Likewise.
41003         * modules/strcasestr (Makefile.am): Likewise.
41004         * modules/strchrnul (Makefile.am): Likewise.
41005         * modules/strcspn (Makefile.am): Likewise.
41006         * modules/strdup (Makefile.am): Likewise.
41007         * modules/strerror (Makefile.am): Likewise.
41008         * modules/strftime (Makefile.am): Likewise.
41009         * modules/strndup (Makefile.am): Likewise.
41010         * modules/strnlen (Makefile.am): Likewise.
41011         * modules/strpbrk (Makefile.am): Likewise.
41012         * modules/strsep (Makefile.am): Likewise.
41013         * modules/strstr (Makefile.am): Likewise.
41014         * modules/strtod (Makefile.am): Likewise.
41015         * modules/strtoimax (Makefile.am): Likewise.
41016         * modules/strtok_r (Makefile.am): Likewise.
41017         * modules/strtol (Makefile.am): Likewise.
41018         * modules/strtoll (Makefile.am): Likewise.
41019         * modules/strtoul (Makefile.am): Likewise.
41020         * modules/strtoull (Makefile.am): Likewise.
41021         * modules/strtoumax (Makefile.am): Likewise.
41022         * modules/strverscmp (Makefile.am): Likewise.
41023         * modules/time_r (Makefile.am): Likewise.
41024         * modules/timegm (Makefile.am): Likewise.
41025         * modules/tmpfile-safer (Makefile.am): Likewise.
41026         * modules/unistd-safer (Makefile.am): Likewise.
41027         * modules/unlinkdir (Makefile.am): Likewise.
41028         * modules/userspec (Makefile.am): Likewise.
41029         * modules/utime (Makefile.am): Likewise.
41030         * modules/utimecmp (Makefile.am): Likewise.
41031         * modules/utimens (Makefile.am): Likewise.
41032         * modules/vasnprintf (Makefile.am): Likewise.
41033         * modules/vasprintf (Makefile.am): Likewise.
41034         * modules/vsnprintf (Makefile.am): Likewise.
41035         * modules/xalloc (Makefile.am): Likewise.
41036         * modules/xgetcwd (Makefile.am): Likewise.
41037         * modules/xnanosleep (Makefile.am): Likewise.
41038         * modules/xreadlink (Makefile.am): Likewise.
41039         * modules/xstrtod (Makefile.am): Likewise.
41040         * modules/xstrtol (Makefile.am): Likewise.
41041         * modules/xstrtold (Makefile.am): Likewise.
41042         * modules/yesno (Makefile.am): Likewise.
41043
41044 2006-10-12  Jim Meyering  <jim@meyering.net>
41045
41046         * m4/getloadavg.m4: Revert the change below.
41047
41048         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
41049         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
41050         fail with a symlink, which is what coreutils' ./bootstrap now
41051         creates by default.
41052
41053 2006-10-12  Bruno Haible  <bruno@clisp.org>
41054
41055         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
41056         mingw.
41057         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
41058         MSVC and mingw explicitly.
41059
41060 2006-10-11  Simon Josefsson  <jas@extundo.com>
41061             Bruno Haible  <bruno@clisp.org>
41062
41063         Add support for multiple gnulib-tool invocations in the scope of a
41064         single configure.ac file.
41065         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
41066         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
41067         with the same contents as the _LIBADD variable.
41068         (func_emit_initmacro_start, func_emit_initmacro_end,
41069         func_emit_initmacro_done): New functions.
41070         (func_import, func_create_testdir): Invoke them. Allow the identifiers
41071         gl_LIBOBJS and gl_LTLIBOBJS.
41072
41073 2006-10-11  Bruno Haible  <bruno@clisp.org>
41074
41075         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
41076         (func_create_testdir): Don't create po/Makefile.am, don't invoke
41077         autoreconf. Instead, invoke autopoint explicitly but move back the
41078         *.m4 files from gnulib.
41079
41080 2006-10-11  Bruno Haible  <bruno@clisp.org>
41081
41082         * gnulib-tool (func_usage): Make module names after --create-testdir
41083         optional.
41084         (func_create_testdir): If no module was specified, use nearly all
41085         modules.
41086
41087 2006-10-12  Jim Meyering  <jim@meyering.net>
41088
41089         Big performance improvement for fts-based tools that use FTS_NOSTAT.
41090         Avoid spurious inode-mismatch problems on non-POSIX file systems.
41091         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
41092         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
41093         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
41094         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
41095         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
41096         (fts_set_stat_required): New function.
41097         (fts_open): Defer the calls to fts_stat, if possible or requested.
41098         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
41099         into fts_stat itself.
41100         (fts_read): Perform any required (deferred) fts_stat call.
41101         (fts_build): Likewise, for the directory we're about to open and read.
41102         In the readdir loop, carefully decide whether each entry will require
41103         an eventual call to fts_stat, using dirent.d_type info if available.
41104         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
41105         a command line argument into this function.  Update all callers.
41106         Map a return value of FTS_DOT to FTS_D for a command line argument.
41107         * modules/fts (Depends-on): Add d-type.  Alphabetize.
41108         Thanks to Miklos Szeredi for his tenacity and for the initial
41109         bug report about "find" failing on a FUSE-based file system.
41110
41111         * lib/fts.c (fts_open): Use consistent indentation.
41112
41113 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
41114
41115         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
41116         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
41117         reported by Jim Meyering.  All uses of cache variables renamed
41118         to match Autoconf's.
41119         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
41120         the other one.
41121
41122         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41123         Fix misspelling in diagnostic.
41124
41125 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41126
41127         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
41128         defined.  Problem reported by Matthew Woehlke.
41129
41130         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
41131         Add support for Tandem NonStop R series.
41132         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
41133         Use new macro.
41134
41135         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
41136         (has_trailing_slash): Omit size arg; all callers changed.
41137         Omit 'inline', since it doesn't help performance and we'd
41138         need to configure it.
41139         Don't count //, ///, etc. as having a trailing slash.
41140         As a side effect, this removes a C99ism reported by Matthew Woehlke.
41141         (rpl_rename_dest_slash): On failure, use rename's errno rather
41142         than (in some cases) an incorrect or junk errno.
41143         Simplify code by removing need to compute length; this does
41144         cause it to make two passes instead of one over the file name,
41145         but it's worth it.
41146
41147         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
41148         change, since Autoconf's version may no longer be appropriate now
41149         that we are using CVS Autoconf's version.  Add support for Tandem.
41150
41151 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
41152             Bruno Haible  <bruno@clisp.org>
41153
41154         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
41155         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
41156         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
41157         gl_AC_TYPE_LONG_LONG.
41158
41159         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
41160         instead of HAVE_LONG_LONG.
41161         * lib/printf-args.c (printf_fetchargs): Likewise.
41162         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
41163         * lib/vasnprintf.c (VASNPRINTF): Likewise.
41164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
41165         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
41166         gl_AC_TYPE_LONG_LONG.
41167
41168 2006-10-11  Bruno Haible  <bruno@clisp.org>
41169
41170         * m4/longlong.m4: Add comments.
41171         * m4/ulonglong.m4: Likewise.
41172
41173 2006-10-10  Bruno Haible  <bruno@clisp.org>
41174
41175         Make it possible to #define stpcpy, strdup to aliases.
41176         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
41177         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
41178
41179 2006-10-10  Bruno Haible  <bruno@clisp.org>
41180
41181         Make it possible to #define gcd to an alias.
41182         * lib/gcd.c: Include config.h.
41183
41184 2006-10-10  Bruno Haible  <bruno@clisp.org>
41185
41186         Make it possible to #define c_isascii to an alias.
41187         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
41188         defined. Undefine the macros before defining them, to avoid gcc
41189         warnings.
41190         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
41191         define NO_C_CTYPE_MACROS early.
41192
41193 2006-10-10  Bruno Haible  <bruno@clisp.org>
41194
41195         Make it possible to #define set_program_name to an alias.
41196         * lib/progname.c: Don't undefine set_program_name; instead, undefine
41197         ENABLE_RELOCATABLE early.
41198
41199 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41200
41201         Port to Tandem NSK OSS, which has 64-bit signed int but at most
41202         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
41203         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
41204         More generally, don't assume that 64-bit signed int is available
41205         if unsigned int is, and vice versa.
41206         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
41207         unsigned symbols, not on their signed counterparts.
41208         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
41209         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
41210         (UINT64_C, UINTMAX_C):
41211         Likewise.
41212         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
41213         unsigned counterparts.
41214         (Have_long_long, Unsigned): New macros.
41215         (Int): Renamed from INT.
41216         (strtoimax): Use the new macros.
41217         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
41218         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
41219         * modules/inttypes (inttypes.h): Substitute
41220         HAVE_UNSIGNED_LONG_LONG_INT.
41221         * modules/stdint (stdint.h): Likewise.
41222         (Files): Add m4/ulonglong.m4.
41223
41224 2006-10-10  Bruno Haible  <bruno@clisp.org>
41225
41226         Fix a gcc -Wshadow warning.
41227         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
41228         to 'bucket'.
41229         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
41230         gl_linked_indexof_from_to): Likewise.
41231         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
41232         Likewise.
41233         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
41234         Likewise.
41235         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
41236         Reported by Eric Blake.
41237
41238 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
41239
41240         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
41241         for NetBSD.  Problem reported by Bruno Haible.
41242
41243 2006-10-09  Jim Meyering  <jim@meyering.net>
41244
41245         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
41246         Patch from Bruno Haible.
41247
41248 2006-10-09  Jim Meyering  <jim@meyering.net>
41249
41250         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
41251         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
41252         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
41253
41254 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
41255
41256         Don't include <config.h> twice; this doesn't work in some cases,
41257         e.g., when config.h has "#define intmax_t long long int" and
41258         we include <config.h>, <inttypes.h>, <config.h> in that order.
41259         Problem reported by Matthew Woehlke in:
41260         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
41261         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
41262         * lib/fts-cycle.c: Don't include config.h.
41263         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
41264         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
41265         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
41266         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
41267         inttypes.h.
41268         * lib/xstrtoumax.c: Likewise.
41269         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
41270         __strtol and the like, so that this module is more like its siblings.
41271         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
41272         Remove; no longer needed now that we assume gnulib inttypes.h.
41273
41274 2006-10-08  Bruno Haible  <bruno@clisp.org>
41275
41276         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
41277         option.
41278
41279 2006-10-07  Jim Meyering  <jim@meyering.net>
41280
41281         * modules/inttypes (inttypes.h): Revert what seems to have been
41282         an inadvertent part of today's change: use "|", not "/" in the
41283         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
41284
41285 2006-10-07  Bruno Haible  <bruno@clisp.org>
41286
41287         * modules/sublist: New file.
41288
41289 2006-10-07  Bruno Haible  <bruno@clisp.org>
41290
41291         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
41292         * modules/argz (argz.h): Likewise.
41293         * modules/arpa_inet (arpa/inet.h): Likewise.
41294         * modules/byteswap (byteswap.h): Likewise.
41295         * modules/configmake (configmake.h): Likewise.
41296         * modules/fcntl (fcntl.h): Likewise.
41297         * modules/fnmatch (fnmatch.h): Likewise.
41298         * modules/getopt (getopt.h): Likewise.
41299         * modules/glob (glob.h): Likewise.
41300         * modules/inttypes (inttypes.h): Likewise.
41301         * modules/netinet_in (netinet/in.h): Likewise.
41302         * modules/poll (poll.h): Likewise.
41303         * modules/stdbool (stdbool.h): Likewise.
41304         * modules/stdint (stdint.h): Likewise.
41305         * modules/sys_select (sys/select.h): Likewise.
41306         * modules/sys_socket (sys/socket.h): Likewise.
41307         * modules/sys_stat (sys/stat.h): Likewise.
41308         * modules/sysexits (sysexits.h): Likewise.
41309         * modules/unistd (unistd.h): Likewise.
41310         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41311         Add a "DO NOT EDIT" comment to the generated file.
41312         (func_import): Likewise for gnulib-comp.m4.
41313
41314 2006-10-07  Bruno Haible  <bruno@clisp.org>
41315
41316         * lib/gl_sublist.h: New file.
41317         * lib/gl_sublist.c: New file.
41318
41319 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
41320
41321         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
41322         name (relative to the original working directory) and the file
41323         name component (relative to the temporary working directory).  All
41324         callers changed.
41325         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
41326         * lib/mkdir-p.c (make_dir_parents): Likewise.
41327         * lib/mkdir-p.h (make_dir_parents): Likewise.
41328
41329 2006-10-06  Eric Blake  <ebb9@byu.net>
41330
41331         Define several macros for use by the clean-temp module.
41332         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
41333         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
41334         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
41335
41336         * lib/clean-temp.h (close_stream_temp): New declaration.
41337         * lib/clean-temp.c (includes): Pull in headers according to what
41338         other modules are in use.
41339         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
41340
41341 2006-10-06  Bruno Haible  <bruno@clisp.org>
41342
41343         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
41344         instead of fopen, fwriteerror.
41345
41346 2006-10-06  Bruno Haible  <bruno@clisp.org>
41347
41348         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
41349         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
41350         int.
41351         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
41352         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
41353         Return an error indicator.
41354         Suggested by Eric Blake.
41355
41356 2006-10-06  Bruno Haible  <bruno@clisp.org>
41357
41358         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
41359         Reported by Eric Blake.
41360
41361 2006-10-06  Bruno Haible  <bruno@clisp.org>
41362
41363         * modules/closeout (Description): Mention stderr too.
41364
41365 2006-10-06  Bruno Haible  <bruno@clisp.org>
41366         and Paul Eggert  <eggert@cs.ucla.edu>
41367
41368         * lib/closeout.c (close_stdout): Also close stderr.
41369         * lib/closeout.h: Update comment.
41370
41371 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
41372
41373         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
41374         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
41375         * lib/dirchownmod.c: Include lchown.h.
41376         * lib/lchown.c: Don't include files that lchown.h now includes.
41377         Don't declare chown, since lchown.h now does that.
41378         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
41379         (lchown): Define to rpl_chown if lchown is declared but
41380         does not exist.  Declare using a prototype if lchown is not
41381         declared.  Add a copyright notice.
41382         * lib/mkstemp.h: Include <unistd.h>.
41383         * lib/openat.c: Include lchown.h.
41384
41385         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
41386         we now test for that separately.
41387         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
41388         rather than O_NOFOLLOW, when testing whether it's possible to
41389         avoid a race condition reliably.
41390         * lib/savewd.c (savewd_chdir): Likewise.
41391
41392         Remove macros that are no longer needed now that stdint.h is
41393         reliable.
41394         * lib/fsusage.c (UINTMAX_MAX): Remove.
41395         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
41396         * lib/utimecmp.c (SIZE_MAX): Remove.
41397
41398         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
41399
41400         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
41401         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
41402         O_NOATIME works.
41403
41404 2006-10-05  Bruno Haible  <bruno@clisp.org>
41405
41406         * lib/gl_list.h (gl_sortedlist_search_from_to,
41407         gl_sortedlist_indexof_from_to): New declarations.
41408         (gl_list_implementation): New fields sortedlist_search_from_to,
41409         sortedlist_indexof_from_to.
41410         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
41411         inline functions.
41412         * lib/gl_list.c (gl_sortedlist_search_from_to,
41413         gl_sortedlist_indexof_from_to): New functions.
41414         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
41415         function.
41416         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
41417         (gl_array_sortedlist_search_from_to): New function.
41418         (gl_array_list_implementation): Update.
41419         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
41420         function.
41421         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
41422         (gl_carray_sortedlist_search_from_to): New function.
41423         (gl_carray_list_implementation): Update.
41424         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
41425         gl_linked_sortedlist_indexof_from_to): New functions.
41426         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41427         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41428         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
41429         gl_tree_sortedlist_indexof_from_to): New functions.
41430         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41431         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41432         Update.
41433         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41434         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
41435         Update.
41436
41437 2006-10-05  Bruno Haible  <bruno@clisp.org>
41438
41439         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
41440         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
41441         (struct gl_list_implementation): Add fields search_from_to,
41442         indexof_from_to. Remove fields search, indexof.
41443         (gl_list_search): Use the search_from_to method.
41444         (gl_list_search_from, gl_list_search_from_to): New functions.
41445         (gl_list_indexof): Use the indexof_from_to method.
41446         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41447         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41448         (gl_list_search_from, gl_list_search_from_to): New functions.
41449         (gl_list_indexof): Use the indexof_from_to method.
41450         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41451         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41452         gl_array_indexof. Add start_index, end_index arguments.
41453         (gl_array_search_from_to): Renamed from gl_array_search. Add
41454         start_index, end_index arguments.
41455         (gl_array_remove, gl_array_list_implementation): Update.
41456         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41457         gl_carray_indexof. Add start_index, end_index arguments.
41458         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41459         start_index, end_index arguments.
41460         (gl_carray_remove, gl_carray_list_implementation): Update.
41461         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41462         gl_linked_search. Add start_index, end_index arguments.
41463         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41464         start_index, end_index arguments.
41465         (gl_linked_remove): Update.
41466         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41467         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41468         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41469         field to 'size_t'.
41470         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41471         gl_tree_search. Add start_index, end_index arguments.
41472         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41473         start_index, end_index arguments.
41474         (gl_tree_remove): Update.
41475         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41476         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41477         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41478         function.
41479         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41480         gl_tree_search. Add start_index, end_index arguments.
41481         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41482         start_index, end_index arguments.
41483         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41484         Update.
41485         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41486
41487 2006-10-05  Bruno Haible  <bruno@clisp.org>
41488
41489         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41490
41491         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41492         fwriteerror_temp): New declarations.
41493         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41494         (descriptors): New variable.
41495         (cleanup): First, close the descriptors.
41496         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41497         fclose_temp, fwriteerror_temp): New functions.
41498
41499 2006-10-04  Jim Meyering  <jim@meyering.net>
41500
41501         * lib/fts.c (fts_open): Tiny comment change.
41502
41503 2006-10-04  Bruno Haible  <bruno@clisp.org>
41504
41505         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41506         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41507         gl_LOCK_BODY.
41508         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41509         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41510         gl_LOCK_EARLY_BODY.
41511         (gl_LOCK): Require gl_LOCK_BODY.
41512
41513 2006-10-04  Bruno Haible  <bruno@clisp.org>
41514
41515         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41516         (gl_oset_search_atleast): New declaration.
41517         (struct gl_oset_implementation): Add field 'search_atleast'.
41518         (gl_oset_search_atleast): New inline function.
41519         * lib/gl_oset.c (gl_oset_search_atleast): New function.
41520         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41521         (gl_array_oset_implementation): Update.
41522         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41523         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41524         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41525
41526 2006-10-04  Bruno Haible  <bruno@clisp.org>
41527
41528         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41529
41530 2006-10-03  Bruno Haible  <bruno@clisp.org>
41531
41532         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41533         from gl_avltreehash_list_implementation.
41534
41535 2006-10-03  Bruno Haible  <bruno@clisp.org>
41536
41537         * lib/gl_oset.c (gl_oset_add): Fix return type.
41538
41539 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
41540
41541         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41542
41543 2006-10-02  Eric Blake  <ebb9@byu.net>
41544
41545         * modules/strnlen (Depends-on): Add extensions.
41546
41547 2006-10-02  Eric Blake  <ebb9@byu.net>
41548
41549         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41550         definition in 2.60+.
41551
41552 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
41553
41554         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41555         checks.
41556
41557 2006-10-02  Bruno Haible  <bruno@clisp.org>
41558
41559         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41560         to the AUTOMAKE_OPTIONS.
41561         Reported by Jim Meyering.
41562
41563 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
41564
41565         Work around bug in Solaris 10 /proc file system:
41566         /proc/self/fd/NNN/.. isn't the parent directory of
41567         the directory whose file descriptor is NNN.  This needs to
41568         be worked around at run time, not compile time, since a
41569         program might be built on Solaris 8, where things work, and
41570         run on Solaris 10.
41571         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
41572         to use the following interface instead:
41573         (OPENAT_BUFFER_SIZE): New macro.
41574         (openat_proc_name): New function.
41575         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41576         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41577         Likewise.
41578         * lib/openat-proc.c: New file.
41579         * modules/openat (Files): Add lib/openat-proc.c.
41580         (Depends-on): Add same-inode, stdbool.
41581         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41582
41583 2006-09-29  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41586         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41587         argument. Set stdout_closed before testing for ferror, not after.
41588         (fwriteerror, fwriteerror_no_ebadf): New functions.
41589
41590 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41591
41592         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41593
41594 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
41595
41596         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41597         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41598
41599 2006-09-28  Jim Meyering  <jim@meyering.net>
41600
41601         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41602         Include <unistd.h>.
41603
41604 2006-09-28  Bruno Haible  <bruno@clisp.org>
41605
41606         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41607         * modules/linkedhash-list (Depends-on): Likewise.
41608         * modules/rbtreehash-list (Depends-on): Likewise.
41609
41610 2006-09-28  Bruno Haible  <bruno@clisp.org>
41611
41612         * lib/strndup.h: Simplify the redefinition of strndup.
41613         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41614         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41615
41616 2006-09-28  Bruno Haible  <bruno@clisp.org>
41617
41618         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41619         * lib/gl_linkedhash_list.c: Likewise.
41620         * lib/gl_rbtreehash_list.c: Likewise.
41621
41622 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
41623
41624         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41625         getaddrinfo.
41626
41627         * lib/__fpending.h: Don't include <stdio_ext.h> unless
41628         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
41629         it causes <stdio_ext.h> to cause a compile-time error.
41630         Problem reported by Nelson H. F. Beebe.
41631         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41632         of HAVE_DECL___PENDING.
41633
41634         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41635         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41636         declaration.
41637
41638 2006-09-27  Jim Meyering  <jim@meyering.net>
41639
41640         This file could end up with a definition for a function
41641         named __strndup, rather than rpl_strndup on a system with
41642         incomplete weak_alias support.
41643         * lib/strndup.c (strndup): Rename from __strndup.
41644         Remove #defines that used to map __strndup to strndup.
41645         Don't use K&R prototypes.
41646         Remove LIBC-related code, since this file is not sync'd with glibc.
41647         * lib/strndup.h: Revamp, accordingly.
41648         * m4/strndup.m4: Modernize.
41649
41650 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
41651
41652         * modules/savewd (Depends-on): Add 'raise'.
41653         * lib/savewd.c: Include <signal.h>, for 'raise'.
41654
41655 2006-09-26  Jim Meyering  <jim@meyering.net>
41656
41657         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41658         when we detect Darwin 8.7.0's acl_get_file bug.
41659         Rearrange to perform the new (below) run-test while $LIBS
41660         contains any acl-related library.  Set USE_ACL at the end.
41661         (gl_ACL_GET_FILE): New function.
41662
41663 2006-09-26  Eric Blake  <ebb9@byu.net>
41664
41665         * lib/verror.c: Include <config.h> unconditionally.
41666
41667 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
41668
41669         * modules/clock-time (Maintainer): Add self.
41670         * modules/getlogin_r (Depends-on): Add extensions.
41671
41672 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41673
41674         * modules/clock-time: New module.
41675         * modules/nanosleep (Depends-on): Add clock-time.
41676         * modules/gethrxtime (Depends-on): Likewise.
41677         * modules/gettime (Depends-on): Likewise.
41678         * modules/settime (Depends-on): Likewise.
41679
41680         * modules/fts-lgpl: Depend on openat.
41681         * modules/mkancesdirs: Depend on savewd.
41682         * modules/mkdir-p: Likewise.
41683
41684 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41685
41686         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41687
41688         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41689         `gl_have_arbitrary_file_name_length_limit' to
41690         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41691         actually works between configure runs.
41692
41693 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41694             Bruno Haible  <bruno@clisp.org>
41695
41696         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41697
41698 2006-09-25  Jim Meyering  <jim@meyering.net>
41699
41700         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41701         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41702
41703 2006-09-25  Eric Blake  <ebb9@byu.net>
41704
41705         * gnulib-tool (func_import, func_create_testdir): Fix typos in
41706         exec's in 2006-09-18 patch when shuffling fds.
41707
41708 2006-09-25  Bruno Haible  <bruno@clisp.org>
41709
41710         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41711         Reported by Jim Meyering.
41712
41713 2006-09-24  Jim Meyering  <jim@meyering.net>
41714
41715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41716         compare a pointer against a literal "0".  That caused failures with
41717         at least HP-UX's hpcc.
41718
41719 2006-09-22  Simon Josefsson  <jas@extundo.com>
41720
41721         * modules/gc-sha1:
41722         * modules/gc-md4:
41723         * modules/gc-hmac-sha1:
41724         * modules/gc-hmac-md5:
41725         * modules/gc-des:
41726         * modules/gc-arcfour: Distribute more files.
41727
41728 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41729
41730         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41731         (gl_linked_iterator_from_to): Initialize struct completely.
41732         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41733         (gl_tree_iterator_from_to): Likewise
41734         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41735         * lib/gl_array_list.c [lint] (gl_array_iterator)
41736         (gl_array_iterator_from_to): Likewise.
41737         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41738         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41739         (gl_carray_iterator_from_to): Likewise.
41740
41741         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41742         * lib/md4.c (md4_process_block): Remove unused variable.
41743         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41744         parentheses for clarity.
41745
41746 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41747
41748         * modules/bison-i18n (Depends-on): Add gettext.
41749
41750 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41751
41752         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41753         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41754         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41755         also add missing comma that caused broken test.
41756         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41757         stdlib.h, for `abort'.
41758         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41759         variables.
41760         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41761         include unistd.h if present, for `rmdir'.
41762         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41763         variables.
41764         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41765         in the process include standard headers for prototypes.
41766         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41767         gets declared on GNU/Linux.
41768         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41769         unistd.h, for `rmdir'.
41770         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41771
41772         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41773         always true.
41774         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41775
41776         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41777
41778 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41779
41780         * gnulib-tool (func_version): Create output all at once.  This
41781         may help avoid triggering unnecessary SIGPIPEs, and at any
41782         rate it doesn't hurt.
41783
41784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41785             Bruno Haible  <bruno@clisp.org>
41786
41787         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41788         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41789         * m4/signed.m4 (bh_C_SIGNED): Likewise.
41790
41791         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41792         (gl_FUNC_VASPRINTF): Invoke it.
41793
41794 2006-09-22  Bruno Haible  <bruno@clisp.org>
41795
41796         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41797         getloadavg.c as first argument.
41798
41799 2006-09-22  Bruno Haible  <bruno@clisp.org>
41800
41801         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41802         at the beginning of the gl_INIT macro.
41803         * modules/getloadavg (configure.ac): Pass $gl_source_base to
41804         gl_GETLOADAVG.
41805
41806 2006-09-22  Bruno Haible  <bruno@clisp.org>
41807
41808         * gnulib-tool (func_create_megatestdir): Don't include the config-h
41809         module.
41810         Suggested by Ralf Wildenhues.
41811
41812 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
41813
41814         Import this patch from libc:
41815
41816         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
41817
41818         * lib/regex_internal.c (re_string_reconstruct): Handle
41819         offset < pstr->valid_raw_len && pstr->offsets_needed case.
41820         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
41821         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41822         re_string_context_at.
41823
41824         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41825         now requires it.
41826         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41827         gl_REGEX now does it for us.
41828         (gl_REGEX): Add test taken from
41829         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41830
41831         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41832         Check that large offsets work.  Modernize Autoconf usages.
41833         Prefer "yes" to mean a good thing rather than a bad.
41834         Don't put "#define mkstemp" in config.h, as this might interfere
41835         with standard system headers that "#define mkstemp mkstemp64".
41836
41837         * modules/mkstemp (Depends-on): Add extensions, so that
41838         mkstemp is visible on some platforms.
41839         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41840         (Include): Change to "mkstemp.h" from <stdlib.h>.
41841         (Files): Add mkstemp.h.
41842
41843         * lib/mkstemp.h: New file, since some standard headers
41844         #define mkstemp.
41845         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41846         Include "mkstemp.h".
41847         Make the _LIBC code resemble glibc original more,
41848         e.g., use K&R style.
41849         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41850         (mkstemp): Remove, since mkstemp.h does this for us.
41851         * lib/stdlib--.h: Include mkstemp.h.
41852
41853         Import this patch from libc:
41854
41855         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41856
41857         * lib/tempname.c (__gen_tempname): Change attempts_min
41858         into a macro.  Use preprocessor to decide how to initialize
41859         attempts [Coverity CID 67].
41860
41861 2006-09-20  Bruno Haible  <bruno@clisp.org>
41862
41863         * lib/mkdtemp.c: Import from libc.
41864         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
41865                 * sysdeps/posix/tempname.c (__gen_tempname): Change
41866                 attempts_min into a macro.  Use preprocessor to decide how to
41867                 initialize attempts [Coverity CID 67].
41868         2001-11-27  Paul Eggert  <eggert@twinsun.com>
41869                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41870                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41871
41872 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41873
41874         * gnulib-tool (func_exit): New function, to allow to pass the
41875         exit status portably through the trap.  Use everywhere.
41876         (--help, --version): Signal a write error.
41877         (trap): catch SIGPIPE, for write errors.
41878         Exit at the end of the trap, with the correct exit status.
41879
41880 2006-09-19  Karl Berry  <karl@gnu.org>
41881
41882         * doc/gnulib.texi: note about the license texinfo files.
41883
41884 2006-09-19  Eric Blake  <ebb9@byu.net>
41885
41886         * gnulib-tool: Avoid space-tab.
41887
41888 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41889
41890         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41891         that prevented coreutils 6.1 from building.  Problem reported
41892         by Petter Reinholdtsen.
41893
41894 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
41895
41896         * gnulib-tool (avoidlist): Fix typo that broke options like
41897         --avoid=lock that are used by coreutils bootstrap.
41898
41899 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
41900
41901         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41902         more systematically.
41903
41904 2006-09-18  Jim Meyering  <jim@meyering.net>
41905
41906         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41907
41908 2006-09-18  Bruno Haible  <bruno@clisp.org>
41909
41910         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41911
41912 2006-09-18  Bruno Haible  <bruno@clisp.org>
41913
41914         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41915         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41916         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41917         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41918         * m4/gettext.m4: Require autoconf >= 2.52.
41919         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41920         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41921         of gl_cv_header_inttypes_h.
41922
41923 2006-09-18  Bruno Haible  <bruno@clisp.org>
41924
41925         * lib/javaversion.c: Include configmake.h.
41926
41927 2006-09-18  Bruno Haible  <bruno@clisp.org>
41928
41929         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41930         avoid that the while loops be executed in a subshell.
41931
41932 2006-09-18  Bruno Haible  <bruno@clisp.org>
41933
41934         * MODULES.html.sh (func_module): Break long lines.
41935         Suggested by Bruce Korb <bkorb@gnu.org>.
41936
41937 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41938
41939         Speed up by a factor of 1.12.
41940         * gnulib-tool (nl): New variable.
41941         (func_import): Rewrite include directive extraction to only read each
41942         directive once.
41943
41944 2006-09-17  Bruno Haible  <bruno@clisp.org>
41945
41946         * modules/javaversion (Makefile.am): Remove DEFS setting.
41947         (Depends-on): Add configmake, for PKGDATADIR definition.
41948
41949 2006-09-17  Bruno Haible  <bruno@clisp.org>
41950
41951         * gnulib-tool (func_create_testdir): Rewrite all files at once.
41952
41953 2006-09-17  Bruno Haible  <bruno@clisp.org>
41954
41955         * gnulib-tool (func_append): New function, stolen from libtool.m4.
41956         (func_modules_transitive_closure, func_modules_add_dummy,
41957         func_modules_to_filelist, func_import, func_create_testdir,
41958         func_create_megatestdir, ...): Use it wherever possible.
41959         Suggested by Ralf Wildenhues.
41960
41961 2006-09-16  Karl Berry  <karl@gnu.org>
41962
41963         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41964         to avoid sectioning errors.
41965         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41966         [ifinfo]: blank line after @center-ed titles.
41967         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41968         Spell FSF address consistently with others.
41969         (These changes approved by rms.)
41970
41971 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41972
41973         Speed up by a factor of 1.61.
41974         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41975         already checked module names again.
41976
41977 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41978
41979         Speed up by a factor of 1.13.
41980         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41981         for new_files, and the input to func_add_or_update.
41982
41983 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41984
41985         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41986         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41987
41988 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41989
41990         * modules/mkancesdirs (Depends-on): Add fcntl.
41991         * modules/savewd: New file.
41992         * MODULES.html.sh (File system functions): Add savewd.
41993
41994         * modules/configmake (Makefile.am): Add support for the
41995         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41996
41997 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41998
41999         * m4/savewd.m4: New file.
42000
42001 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
42002
42003         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
42004         (dirchownmod): New arg FD.  All callers changed.
42005         Use FD rather than opening the directory ourself, as opening is
42006         now the caller's responsibility.
42007         * lib/dirchownmod.h: Likewise.
42008         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
42009         hosts that require <sys/types.h> before <sys/stat.h>.  Include
42010         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
42011         (test_dir): Remove.
42012         (mkancesdirs): Return length of prefix of FILE that has already
42013         been made, or -2 if there is a child doing the work.  Redo
42014         algorithm so that it is O(N) rather than O(N**2).  Optimize away
42015         ".", and treat ".." specially since it might stray back into
42016         already-created areas.  Use a subprocess if necessary.  New arg
42017         WD; all users changed.  MAKE_DIR function should now return 1
42018         if it creates a directory that is not readable.  Return -2 if
42019         a child process is spun off.
42020         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
42021         Adjust signature to match code.
42022         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
42023         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
42024         all users changed.
42025         * lib/savewd.c, lib/savewd.h: New files.
42026
42027 2006-09-15  Jim Meyering  <jim@meyering.net>
42028
42029         * modules/rename-dest-slash: New module.
42030         * MODULES.html.sh (posix_compat): Add it here.
42031
42032         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
42033
42034 2006-09-15  Jim Meyering  <jim@meyering.net>
42035
42036         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
42037         file.
42038
42039         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
42040
42041 2006-09-15  Jim Meyering  <jim@meyering.net>
42042
42043         * lib/rename-dest-slash.c (has_trailing_slash): Use
42044         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
42045         (rpl_rename_dest_slash): Perform the cheaper trailing slash
42046         test before testing whether SRC is a directory.
42047         Suggestions from Bruno Haible.
42048
42049         Avoid a warning about an unused variable.
42050         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
42051         into the #ifdef block where it's used.
42052
42053         * lib/rename-dest-slash.c: New file.
42054
42055 2006-09-14  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/allocsa.c: Include <config.h> unconditionally.
42058         * lib/asnprintf.c: Likewise.
42059         * lib/asprintf.c: Likewise.
42060         * lib/c-strcasecmp.c: Likewise.
42061         * lib/c-strcasestr.c: Likewise.
42062         * lib/c-strncasecmp.c: Likewise.
42063         * lib/c-strstr.c: Likewise.
42064         * lib/classpath.c: Likewise.
42065         * lib/clean-temp.c: Likewise.
42066         * lib/concatpath.c: Likewise.
42067         * lib/copy-file.c: Likewise.
42068         * lib/csharpcomp.c: Likewise.
42069         * lib/csharpexec.c: Likewise.
42070         * lib/execute.c: Likewise.
42071         * lib/fatal-signal.c: Likewise.
42072         * lib/findprog.c: Likewise.
42073         * lib/fwriteerror.c: Likewise.
42074         * lib/gl_array_list.c: Likewise.
42075         * lib/gl_array_oset.c: Likewise.
42076         * lib/gl_avltree_list.c: Likewise.
42077         * lib/gl_avltree_oset.c: Likewise.
42078         * lib/gl_avltreehash_list.c: Likewise.
42079         * lib/gl_carray_list.c: Likewise.
42080         * lib/gl_linked_list.c: Likewise.
42081         * lib/gl_linkedhash_list.c: Likewise.
42082         * lib/gl_list.c: Likewise.
42083         * lib/gl_oset.c: Likewise.
42084         * lib/gl_rbtree_list.c: Likewise.
42085         * lib/gl_rbtree_oset.c: Likewise.
42086         * lib/gl_rbtreehash_list.c: Likewise.
42087         * lib/imaxabs.c: Likewise.
42088         * lib/imaxdiv.c: Likewise.
42089         * lib/javacomp.c: Likewise.
42090         * lib/javaexec.c: Likewise.
42091         * lib/javaversion.c: Likewise.
42092         * lib/linebreak.c: Likewise.
42093         * lib/localcharset.c: Likewise.
42094         * lib/lock.c: Likewise.
42095         * lib/mbchar.c: Likewise.
42096         * lib/mbswidth.c: Likewise.
42097         * lib/mkdtemp.c: Likewise.
42098         * lib/pipe.c: Likewise.
42099         * lib/printf-args.c: Likewise.
42100         * lib/printf-parse.c: Likewise.
42101         * lib/progname.c: Likewise.
42102         * lib/progreloc.c: Likewise.
42103         * lib/readlink.c: Likewise.
42104         * lib/sh-quote.c: Likewise.
42105         * lib/stpcpy.c: Likewise.
42106         * lib/stpncpy.c: Likewise.
42107         * lib/strcasecmp.c: Likewise.
42108         * lib/strcasestr.c: Likewise.
42109         * lib/strcspn.c: Likewise.
42110         * lib/striconv.c: Likewise.
42111         * lib/strncasecmp.c: Likewise.
42112         * lib/strnlen1.c: Likewise.
42113         * lib/strstr.c: Likewise.
42114         * lib/strtok_r.c: Likewise.
42115         * lib/tls.c: Likewise.
42116         * lib/tmpdir.c: Likewise.
42117         * lib/unicodeio.c: Likewise.
42118         * lib/unsetenv.c: Likewise.
42119         * lib/vasnprintf.c: Likewise.
42120         * lib/vasprintf.c: Likewise.
42121         * lib/wait-process.c: Likewise.
42122         * lib/xallocsa.c: Likewise.
42123         * lib/xsetenv.c: Likewise.
42124         * lib/xstriconv.c: Likewise.
42125
42126 2006-09-13  Simon Josefsson  <jas@extundo.com>
42127
42128         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
42129         that internally, suggested by Ralf Wildenhues
42130         <Ralf.Wildenhues@gmx.de>.
42131
42132 2006-09-13  Simon Josefsson  <jas@extundo.com>
42133
42134         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
42135         @LIBOBJS@.
42136         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42137
42138 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
42139
42140         * lib/_fpending.c: Include <config.h> unconditionally, since we no
42141         longer worry about uses that don't define HAVE_CONFIG_H.
42142         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
42143         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
42144         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
42145         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
42146         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
42147         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
42148         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
42149         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
42150         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
42151         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
42152         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
42153         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
42154         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
42155         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
42156         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
42157         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
42158         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
42159         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
42160         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
42161         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
42162         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
42163         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
42164         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
42165         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
42166         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
42167         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
42168         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
42169         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
42170         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
42171         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
42172         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
42173         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
42174         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
42175         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
42176         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
42177         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
42178         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
42179         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
42180         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
42181         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
42182         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
42183         Likewise.
42184
42185 2006-09-13  Eric Blake  <ebb9@byu.net>
42186
42187         * lib/getopt.c: Fix typo in last commit.
42188
42189 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42190
42191         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
42192         dgettext.
42193
42194 2006-09-12  Jim Meyering  <jim@meyering.net>
42195
42196         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
42197         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
42198         Reported by Nelson H. F. Beebe.
42199
42200 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
42201
42202         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
42203         program_invocation_name and program_invocation_short_name are
42204         initialized.
42205         * lib/argp-namefrob.h: Move declarations of program_invocation_name
42206         and program_invocation_short_name to argp.h, so they are visible
42207         to user programs.
42208         * lib/argp.h: Likewise
42209
42210 2006-09-10  Bruno Haible  <bruno@clisp.org>
42211
42212         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42213         m4/inttypes_h.m4, m4/uintmax_t.m4.
42214
42215 2006-09-10  Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
42218         gl_AC_TYPE_UINTMAX_T.
42219
42220 2006-09-10  Bruno Haible  <bruno@clisp.org>
42221
42222         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
42223
42224 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42225
42226         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
42227         convention.  Text proposed by Bruno Haible.
42228         (struct argp_option): Document the use of N_() wrappers.
42229
42230         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
42231         '\v', and translate the two parts separately, instead of feeding
42232         the whole string to gettext.  This allows to exclude
42233         '\v' from the strings visible to the translator by writing doc
42234         strings as N_("..") "\v" N_("..").
42235
42236 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
42237
42238         * config/srclist.txt: Undo latest change; the bug was fixed.
42239
42240 2006-09-09  Bruno Haible  <bruno@clisp.org>
42241
42242         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
42243         assignments if building a library without libtool.
42244         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
42245         in func_emit_lib_Makefile_am.
42246         (func_import): When building a static library libfoo.a, arrange to
42247         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
42248         (func_create_testdir): Likewise.
42249         * modules/gc (configure.ac, Makefile.am): If building statically,
42250         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
42251         * modules/iconvme (configure.ac, Makefile.am): Likewise.
42252         * modules/striconv (configure.ac, Makefile.am): Likewise.
42253         Based on a suggestion by Ralf Wildenhues.
42254
42255 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42256
42257         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
42258         Check for unistd.h too, since Autoconf doesn't assume POSIX.
42259         Also:
42260
42261         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42262         Add year_2050_test to catch glibc bug 2821
42263         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42264
42265         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42266         Prefer #ifdef to #if.
42267
42268         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
42269         Return from 'main' instead of calling 'exit'.
42270
42271 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42272
42273         * lib/mktime.c (guess_time_tm): Fix bug where mktime
42274         returned the maximum time_t value rather than (time_t) -1.
42275         Problem originally reported by William Bardwell
42276         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
42277
42278         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42279         Moved to here ...
42280         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
42281         ... from here.
42282
42283 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
42284
42285         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
42286         2821 is fixed.
42287
42288 2006-09-08  Jim Meyering  <jim@meyering.net>
42289
42290         Don't make generated files read-only.  That would bother too many
42291         people.  However, do retain the ability to work when targets are
42292         read-only: remove the destination and temporary files before writing
42293         them (when generated via sed or echo), or by using the -f option for
42294         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
42295         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42296         * modules/byteswap, modules/configmake, modules/fcntl:
42297         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42298         * modules/localcharset, modules/netinet_in, modules/poll:
42299         * modules/stdbool, modules/stdint, modules/sys_select:
42300         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42301
42302 2006-09-08  Jim Meyering  <jim@meyering.net>
42303
42304         Avoid new build failure on FreeBSD 6.0.
42305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
42306         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
42307         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
42308
42309 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42310
42311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
42312
42313 2006-09-07  Jim Meyering  <jim@meyering.net>
42314
42315         Fix global typo in last change: use chmod u-w, not chmod u-x.
42316         Spotted by Paul Eggert and Bruce Korb.
42317         * modules/alloca-opt, modules/argz, modules/arpa_inet:
42318         * modules/byteswap, modules/configmake, modules/fcntl:
42319         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
42320         * modules/localcharset, modules/netinet_in, modules/poll:
42321         * modules/stdbool, modules/stdint, modules/sys_select:
42322         * modules/sys_socket, modules/sys_stat, modules/sysexits:
42323
42324 2006-09-06  Jim Meyering  <jim@meyering.net>
42325
42326         Make generated files be read-only.
42327         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
42328         Ensure that each generated file is now read-only.
42329         * modules/argz: Likewise.
42330         * modules/arpa_inet: Likewise.
42331         * modules/byteswap: Likewise.
42332         * modules/configmake: Likewise.
42333         * modules/fcntl: Likewise.
42334         * modules/fnmatch: Likewise.
42335         * modules/getopt: Likewise.
42336         * modules/glob: Likewise.
42337         * modules/inttypes: Likewise.
42338         * modules/netinet_in: Likewise.
42339         * modules/poll: Likewise.
42340         * modules/stdbool: Likewise.
42341         * modules/stdint: Likewise.
42342         * modules/sys_select: Likewise.
42343         * modules/sys_socket: Likewise.
42344         * modules/sys_stat: Likewise.
42345         * modules/sysexits: Likewise.
42346         * modules/localcharset: Same as above, but continue using temporary
42347         file named "t-$@" (why different?) rather than the "$@-t" used
42348         everywhere else.
42349
42350         * modules/sysexits (Makefile.am): Replace literal occurrences
42351         of "sysexit.h" more readable, and more consistent, "$@".
42352
42353 2006-09-06  Bruno Haible  <bruno@clisp.org>
42354
42355         * modules/striconv: New file.
42356         * modules/xstriconv: New file.
42357         * MODULES.html.sh (Internationalization functions): Add striconv,
42358         xstriconv.
42359
42360 2006-09-06  Bruno Haible  <bruno@clisp.org>
42361
42362         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
42363         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
42364         not using libtool correctly.
42365
42366 2006-09-06  Bruno Haible  <bruno@clisp.org>
42367
42368         * lib/striconv.h: New file.
42369         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
42370         iconvstring.c.
42371         * lib/xstriconv.h: New file.
42372         * lib/xstriconv.c: New file.
42373
42374 2006-09-06  Bruno Haible  <bruno@clisp.org>
42375
42376         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
42377         lib_..._LDFLAGS.
42378
42379 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42380
42381         * lib/argz_.h: Sync from Libtool.
42382
42383         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
42384                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42385
42386         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
42387
42388 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42389
42390         * modules/trim: New file.
42391
42392 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
42393
42394         * lib/trim.h: New file.
42395         * lib/trim.c: New file.
42396
42397 2006-09-05  Bruno Haible  <bruno@clisp.org>
42398
42399         * MODULES.html.sh (String handling): Add trim.
42400
42401 2006-09-04  Karl Berry  <karl@gnu.org>
42402
42403         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
42404         until next release.
42405
42406 2006-09-03  Bruno Haible  <bruno@clisp.org>
42407
42408         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
42409         correctly.
42410
42411 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42412
42413         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
42414         not gl_GETLOADAVG.  Omit unneeded semicolons.
42415         Problems reported by Ralf Wildenhues in
42416         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42417         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
42418         at the end, which is the usual gnulib style.
42419
42420         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
42421         of doing all the work ourselves.
42422         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
42423         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
42424
42425 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42426
42427         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
42428         Problem reported by Ralf Wildenhues in
42429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
42430
42431         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
42432         HAVE_STRUCT_STATFS_F_FSTYPENAME.
42433
42434 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
42435
42436         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
42437         yesterday's patch by changing test -n to test -z.
42438
42439 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42440
42441         * modules/getloadavg (Files): Add m4/getloadavg.m4.
42442         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
42443         the former is now obsolescent.
42444
42445         * modules/chdir-long (Depends-on): Add fcntl.
42446
42447 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42448
42449         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42450         obsolescent, and programs should use gnulib instead.
42451         * m4/getloadavg.m4: New file, with contents taken from Autoconf
42452         but with prefixes changed.
42453
42454 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
42455
42456         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42457         or stdbool.h, because they might not exist while configuring.
42458
42459         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42460         Don't include unistd.h or limits.h; not needed, since chdir-long.h
42461         does that for us.
42462         (O_DIRECTORY): Remove.
42463
42464 2006-08-31  Eric Blake  <ebb9@byu.net>
42465
42466         * gnulib-tool: Don't let emacs change spaces to TAB.
42467
42468 2006-08-31  Bruno Haible  <bruno@clisp.org>
42469
42470         * gnulib-tool: When calling func_import more than once, do it in a
42471         subshell.
42472         Reported by Eric Blake <ebb9@byu.net>.
42473
42474 2006-08-31  Bruno Haible  <bruno@clisp.org>
42475
42476         * gnulib-tool (nl): Remove variable.
42477         (sed_transform_lib_file): Use more robust test for config-h module.
42478         (func_import): Fix typo in 2006-08-25 patch.
42479
42480 2006-08-31  Bruno Haible  <bruno@clisp.org>
42481
42482         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42483         specified, augment Makefile.am variables instead of assigning them.
42484
42485 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42486
42487         Work around a bug in both the Linux and SunOS 64-bit kernels:
42488         nanosleep mishandles sleeps for longer than 2**31 seconds.
42489         Problem reported by Frank v Waveren in
42490         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42492         Check for nanosleep bug.
42493         (LIB_NANOSLEEP): Append clock_gettime library if needed.
42494
42495 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42496
42497         Work around a bug in both the Linux and SunOS 64-bit kernels:
42498         nanosleep mishandles sleeps for longer than 2**31 seconds.
42499         Problem reported by Frank v Waveren in
42500         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42501         * lib/nanosleep.c (BILLION): New constant.
42502         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42503         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42504         implementation.
42505
42506 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42507
42508         * modules/nanosleep (Depends-on): Add gettime.
42509
42510 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
42511         and Simon Josefsson  <jas@extundo.com>
42512         and Oskar Liljeblad  <oskar@osk.mine.nu>
42513
42514         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42515         * gnulib-tool (func_import): New license type 'unmodifiable license
42516         text'.
42517         * modules/fdl: Use it.  Longer description.
42518         * module/gpl, module/lgpl: New files.
42519
42520 2006-08-30  Jim Meyering  <jim@meyering.net>
42521
42522         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42523         shadowing the parameter.
42524
42525 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42526
42527         Sync from Libtool:
42528
42529         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42530
42531         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42532         sharing with gnulib.  Report by Eric Blake.
42533
42534 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42535
42536         * modules/isapipe: New file.
42537         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42538
42539 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42540
42541         * modules/configmake (Makefile.am): Add a comment, and omit
42542         the CONFIGMAKE_ prefix from generated macro names.  Suggested
42543         by Bruno Haible.
42544
42545 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42546
42547         * m4/isapipe.m4: New file.
42548
42549 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
42550
42551         * lib/isapipe.c, lib/isapipe.h: New files.
42552
42553 2006-08-29  Jim Meyering  <jim@meyering.net>
42554
42555         * modules/configmake (Makefile.am): Make configmake.h depend on
42556         Makefile.  Otherwise, a stale configmake.h could hang around.
42557
42558 2006-08-29  Eric Blake  <ebb9@byu.net>
42559
42560         * lib/error.c (error_at_line, print_errno_message): Match libc, after
42561         resolution of upstream bug 3044.
42562
42563 2006-08-29  Bruno Haible  <bruno@clisp.org>
42564
42565         * modules/localcharset (Depends-on): Add configmake.
42566         (Makefile.am): Remove setting of LIBDIR through DEFS.
42567
42568 2006-08-29  Bruno Haible  <bruno@clisp.org>
42569
42570         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42571         defined.
42572
42573 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42574
42575         * modules/fcntl: New file.
42576         * modules/chdir-safer (Depends-on): Add fcntl.
42577         * modules/fts: Likewise.
42578         * modules/mkdir-p: Likewise.
42579
42580         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42581         This undoes the most recent change, since we're now addressing the
42582         problem in a different way.
42583
42584         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42585         into output, since the output might be called Makefile.am even
42586         if $makefile_name is something different.
42587         (func_import): Use $makefile_am rather than
42588         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42589         empty.
42590
42591         * modules/inttypes (Files): Add m4/inttypes-h.m4.
42592
42593 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42594
42595         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42596         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
42597         recent change to stdint.m4, since we're now addressing the problem in a
42598         different way.
42599
42600 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42601
42602         * m4/fcntl_h.m4: New file.
42603
42604 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
42605
42606         * lib/fcntl_.h: New file.
42607         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42608         the fcntl module.
42609         * lib/dirchownmod.c: Likewise.
42610         * lib/fts.c: Likewise.
42611
42612         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42613         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42614         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42615         just before including <inttypes.h>, to avoid circular inclusion.
42616
42617 2006-08-28  Jim Meyering  <jim@meyering.net>
42618
42619         * doc/visibility.texi: Actually read and correct the grammar of the
42620         sentence affected by yesterday's change.
42621
42622 2006-08-28  Eric Blake  <ebb9@byu.net>
42623
42624         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42625         needs wrapper.
42626
42627 2006-08-28  Eric Blake  <ebb9@byu.net>
42628
42629         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42630
42631 2006-08-28  Eric Blake  <ebb9@byu.net>
42632
42633         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42634
42635 2006-08-28  Bruno Haible  <bruno@clisp.org>
42636
42637         * modules/c-strstr: New file, from GNU gettext.
42638         * MODULES.html.sh (String handling): Add c-strstr.
42639
42640 2006-08-28  Bruno Haible  <bruno@clisp.org>
42641
42642         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42643         macros.
42644         Reported by Eric Blake.
42645
42646 2006-08-28  Bruno Haible  <bruno@clisp.org>
42647
42648         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42649         (VASNPRINTF): Return a string of length > INT_MAX without failing.
42650         * lib/vasprintf.c: Include errno.h, limits.h.
42651         (EOVERFLOW): New fallback definition.
42652         (vasprintf): Test here whether the string length is > INT_MAX.
42653         * lib/vsnprintf.c: Include errno.h, limits.h.
42654         (EOVERFLOW): New fallback definition.
42655         (vsnprintf): Fix bug when generated string was too long for the buffer.
42656         Test here whether the string length is > INT_MAX.
42657
42658 2006-08-28  Bruno Haible  <bruno@clisp.org>
42659
42660         * lib/inttypes_.h (SCNX*): Remove definitions.
42661         Reported by Eric Blake.
42662
42663 2006-08-28  Bruno Haible  <bruno@clisp.org>
42664
42665         * lib/c-strstr.h: New file, from GNU gettext.
42666         * lib/c-strstr.c: New file, from GNU gettext.
42667
42668 2006-08-28  Bruno Haible  <bruno@clisp.org>
42669
42670         * gnulib-tool: Reorder some statements.
42671
42672 2006-08-28  Bruno Haible  <bruno@clisp.org>
42673
42674         * gnulib-tool: New option --makefile-name.
42675         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42676         $makefile_name.
42677         (func_import): Write $makefile_name to the cache file, and read it from
42678         there unless explicitly specified. Use $makefile_name as file name
42679         instead of Makefile.am. Adjust the recommendations accordingly.
42680
42681 2006-08-28  Bruno Haible  <bruno@clisp.org>
42682
42683         * gnulib-tool (func_verify_module): Check against misapplying patch.
42684
42685 2006-08-28  Bruno Haible  <bruno@clisp.org>
42686
42687         * gnulib-tool (func_relativize, func_relconcat): New functions.
42688         Give an error if --local-dir is given with --update.
42689         Remove trailing slashes from $local_gnulib_dir.
42690         (func_import): Store the relativized $local_gnulib_dir in
42691         gnulib-cache.m4, and read it from there if not specified explicitly.
42692
42693 2006-08-28  Bruno Haible  <bruno@clisp.org>
42694
42695         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42696         is the current directory. Respect also $local_gnulib_dir.
42697
42698 2006-08-28  Bruno Haible  <bruno@clisp.org>
42699             Simon Josefsson  <jas@extundo.com>
42700
42701         BeOS portability.
42702         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42703
42704 2006-08-27  Jim Meyering  <jim@meyering.net>
42705
42706         * doc/visibility.texi: Remove duplicate word: "pointer".
42707
42708 2006-08-26  Bruno Haible  <bruno@clisp.org>
42709
42710         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42711         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42712         (Makefile.am): Create inttypes.h from inttypes_.h.
42713         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42714
42715         * modules/imaxabs: New file.
42716
42717         * modules/imaxdiv: New file.
42718
42719 2006-08-26  Bruno Haible  <bruno@clisp.org>
42720
42721         * m4/inttypes.m4: New file.
42722         * m4/_inttypes_h.m4: Remove file.
42723         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42724         PRI_MACROS_BROKEN.
42725         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42726
42727         * m4/imaxabs.m4: New file.
42728
42729         * m4/imaxdiv.m4: New file.
42730
42731 2006-08-26  Bruno Haible  <bruno@clisp.org>
42732
42733         * lib/inttypes_.h: New file.
42734         * lib/inttypes.h: Remove file.
42735         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42736
42737         * lib/imaxabs.c: New file.
42738
42739         * lib/imaxdiv.c: New file.
42740
42741 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42742
42743         New config-h module, so that "make" output needn't be cluttered
42744         by -DHAVE_CONFIG_H.
42745         * MODULES.html.sh (Support for building libraries and executables):
42746         Add config-h.
42747         * modules/config-h: New file.
42748         * gnulib-tool (nl, sed_transform_lib_file): New vars.
42749         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42750         the config-h module is used.
42751
42752         New configmake module, so that "make" output needn't be cluttered
42753         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42754         * MODULES.html.sh (Support for building libraries and executables):
42755         Add configmake.
42756         * modules/configmake: New file.
42757
42758 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
42759
42760         * m4/config-h.m4: New file.
42761
42762 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42763
42764         * config/srclist.txt: Add elisp-comp.
42765
42766 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42767
42768         * MODULES.html.sh (Support for building libraries and executables):
42769         Add elisp-comp.
42770         * build-aux/elisp-comp: New file.
42771         * modules/elisp-comp: New file.
42772
42773 2006-08-24  Bruno Haible  <bruno@clisp.org>
42774
42775         * gnulib-tool (func_create_testdir): Use non-default values of
42776         sourcebase and m4base.
42777
42778 2006-08-24  Bruno Haible  <bruno@clisp.org>
42779
42780         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42781         HTML structure.
42782
42783 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42784
42785         * modules/openat (Depends-on): Add lchown.
42786
42787 2006-08-23  Bruno Haible  <bruno@clisp.org>
42788
42789         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42790         of gl_LOCK_EARLY instead of gl_LOCK.
42791
42792 2006-08-23  Bruno Haible  <bruno@clisp.org>
42793
42794         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42795         on OSF/1 to no.
42796         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42797
42798 2006-08-23  Bruno Haible  <bruno@clisp.org>
42799
42800         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42801         as unusable.
42802
42803         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42804         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42805         (gl_LOCK): New macro.
42806
42807 2006-08-22  Simon Josefsson  <jas@extundo.com>
42808
42809         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42810         to md5 module.
42811
42812 2006-08-22  Simon Josefsson  <jas@extundo.com>
42813
42814         * MODULES.html.sh: Add "Support for maintaining and release
42815         projects".
42816
42817         * build-aux/gnupload: New file, from coreutils.
42818
42819 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42820
42821         Avoid the need for AC_LIBSOURCES in m4 macros.
42822         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42823         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42824         * modules/check-version (EXTRA_DIST): Add check-version.h.
42825         * modules/crc (EXTRA_DIST): Add crc.h.
42826         * modules/des (EXTRA_DIST): Add des.h.
42827         * modules/gc (EXTRA_DIST): Add gc.h.
42828         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42829         * modules/getline (EXTRA_DIST): Add getline.h.
42830         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42831         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42832         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42833         * modules/md2 (EXTRA_DIST): Add md2.h.
42834         * modules/md4 (EXTRA_DIST): Add md4.h.
42835         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42836         * modules/read-file (EXTRA_DIST): Add read-file.h.
42837         * modules/readline (EXTRA_DIST): Add readline.h.
42838         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42839         rijndael-api-fst.h.
42840
42841 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42842
42843         * m4/rijndael.m4 (gl_ARCFOUR):
42844         * m4/arctwo.m4 (gl_ARCTWO):
42845         * m4/check-version.m4 (gl_CHECK_VERSION):
42846         * m4/crc.m4 (gl_CRC):
42847         * m4/des.m4 (gl_DES):
42848         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42849         * m4/gc.m4 (gl_GC):
42850         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42851         * m4/getline.m4 (gl_FUNC_GETLINE):
42852         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42853         * m4/hmac-md5.m4 (gl_HMAC_MD5):
42854         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42855         * m4/md2.m4 (gl_MD2):
42856         * m4/md4.m4 (gl_MD4):
42857         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42858         * m4/read-file.m4 (gl_FUNC_READ_FILE):
42859         * m4/readline.m4 (gl_FUNC_READLINE):
42860         * m4/rijndael.m4 (gl_RIJNDAEL):
42861         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42862         to get the necessary .h files and whatnot.
42863
42864 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
42865
42866         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42867         gnulib rather than the other way around.
42868         * config/srclistvars.sh (COREUTILS): Remove.
42869
42870 2006-08-22  Jim Meyering  <jim@meyering.net>
42871
42872         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42873
42874         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42875
42876 2006-08-22  Eric Blake  <ebb9@byu.net>
42877
42878         * modules/regexprops-generic: New file.
42879         * MODULES.html.sh (Support for building documentation): List it.
42880
42881 2006-08-22  Eric Blake  <ebb9@byu.net>
42882
42883         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42884         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42885         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42886         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42887
42888 2006-08-22  Bruno Haible  <bruno@clisp.org>
42889
42890         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42891         and lib_LTLIBRARIES like the other lib_* variables.
42892
42893 2006-08-22  Bruno Haible  <bruno@clisp.org>
42894
42895         * build-aux/x-to-1.in: New file, from GNU gettext.
42896
42897 2006-08-22  Bruno Haible  <bruno@clisp.org>
42898
42899         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42900         <utmpx.h> exists.
42901
42902 2006-08-22  Bruno Haible  <bruno@clisp.org>
42903
42904         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42905         <utmpx.h> exists.
42906
42907 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42908
42909         BeOS portability.
42910         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42911         exist.
42912         Problem reported by Bruno Haible.
42913
42914 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
42915
42916         Avoid the need for AC_LIBSOURCES in m4 macros.
42917         * modules/acl (EXTRA_DIST): Add acl.h.
42918         * modules/argmatch (Files): Add m4/argmatch.m4.
42919         (configure.ac): Add gl_ARGMATCH.
42920         (EXTRA_DIST): Renamed from lib_SOURCES, for
42921         consistency with the other modules.  Remove argmatch.c.
42922         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42923         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42924         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42925         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42926         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42927         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42928         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42929         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42930         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42931         * modules/closeout (EXTRA_DIST): Add closeout.h.
42932         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42933         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42934         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42935         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
42936         dirname.h; remove basename.c and stripslash.c.
42937         * modules/exclude (EXTRA_DIST): Add exclude.h.
42938         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42939         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42940         * modules/file-type (EXTRA_DIST): Add file-type.h.
42941         * modules/filemode (EXTRA_DIST): Add filemode.h.
42942         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42943         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42944         * modules/fpending (EXTRA_DIST): Add __fpending.h.
42945         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42946         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42947         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42948         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42949         * modules/getdate (EXTRA_DIST): Add getdate.c.
42950         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42951         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42952         * modules/getpass (EXTRA_DIST): Add getpass.h.
42953         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42954         * modules/group-member (EXTRA_DIST): Add group-member.h.
42955         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42956         * modules/hash (EXTRA_DIST): Add hash.h.
42957         * modules/human (EXTRA_DIST): Add human.h.
42958         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42959         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42960         * modules/lchown (EXTRA_DIST): Add lchown.h.
42961         * modules/long-options (EXTRA_DIST): Add long-options.h.
42962         * modules/lstat (EXTRA_DIST): Add lstat.h.
42963         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42964         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42965         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42966         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42967         * modules/memxor (EXTRA_DIST): Add memxor.h.
42968         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42969         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42970         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42971         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42972         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42973         * modules/physmem (EXTRA_DIST): Add physmem.h.
42974         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42975         * modules/posixver (EXTRA_DIST): Add posixver.h.
42976         * modules/quote (EXTRA_DIST): Add quote.h.
42977         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42978         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42979         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42980         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42981         regex_internal.h regexec.c.
42982         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42983         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42984         * modules/same (EXTRA_DIST): Add same.h.
42985         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42986         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42987         * modules/savedir (EXTRA_DIST): Add savedir.h.
42988         * modules/sha1 (EXTRA_DIST): Add sha1.h.
42989         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42990         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42991         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42992         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42993         * modules/strdup (EXTRA_DIST): Add strdup.h.
42994         * modules/strftime (EXTRA_DIST): Add strftime.h.
42995         * modules/strndup (EXTRA_DIST): Add strndup.h.
42996         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42997         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42998         * modules/time_r (EXTRA_DIST): Add time_r.h.
42999         * modules/timespec (EXTRA_DIST): Add timespec.h.
43000         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
43001         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
43002         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
43003         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
43004         * modules/userspec (EXTRA_DIST): Add userspec.h.
43005         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
43006         * modules/utimens (EXTRA_DIST): Add utimens.h.
43007         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
43008         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
43009         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
43010         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
43011         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
43012         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
43013         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
43014         * modules/yesno (EXTRA_DIST): Add yesno.h.
43015
43016 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
43017
43018         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
43019
43020         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
43021         * m4/dev-ino.m4, same-inode.m4: Remove.
43022
43023         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
43024         * m4/acl.m4 (AC_FUNC_ACL):
43025         * m4/backupfile.m4 (gl_BACKUPFILE):
43026         * m4/c-strtod.m4 (gl_C99_STRTOLD):
43027         * m4/canon-host.m4 (gl_CANON_HOST):
43028         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
43029         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
43030         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
43031         * m4/cloexec.m4 (gl_CLOEXEC):
43032         * m4/close-stream.m4 (gl_CLOSE_STREAM):
43033         * m4/closeout.m4 (gl_CLOSEOUT):
43034         * m4/dirfd.m4 (gl_FUNC_DIRFD):
43035         * m4/dirname.m4 (gl_DIRNAME):
43036         * m4/exclude.m4 (gl_EXCLUDE):
43037         * m4/exitfail.m4 (gl_EXITFAIL):
43038         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
43039         * m4/file-type.m4 (gl_FILE_TYPE):
43040         * m4/filemode.m4 (gl_FILEMODE):
43041         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
43042         * m4/fpending.m4 (gl_FUNC_FPENDING):
43043         * m4/fprintftime.m4 (gl_FPRINTFTIME):
43044         * m4/fts.m4 (gl_FUNC_FTS):
43045         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
43046         * m4/getdate.m4 (gl_GETDATE):
43047         * m4/gethrxtime.m4 (gl_GETHRXTIME):
43048         * m4/getpagesize.m4 (gl_GETPAGESIZE):
43049         * m4/getpass.m4 (gl_FUNC_GETPASS):
43050         * m4/gettime.m4 (gl_GETTIME):
43051         * m4/getugroups.m4 (gl_GETUGROUPS):
43052         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
43053         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
43054         * m4/hard-locale.m4 (gl_HARD_LOCALE):
43055         * m4/hash.m4 (gl_HASH):
43056         * m4/idcache.m4 (gl_IDCACHE):
43057         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
43058         * m4/lchown.m4 (gl_FUNC_LCHOWN):
43059         * m4/long-options.m4 (gl_LONG_OPTIONS):
43060         * m4/lstat.m4 (gl_FUNC_LSTAT):
43061         * m4/md5.m4 (gl_MD5):
43062         * m4/memcasecmp.m4 (gl_MEMCASECMP):
43063         * m4/memcoll.m4 (gl_MEMCOLL):
43064         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
43065         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
43066         * m4/memxor.m4 (gl_MEMXOR):
43067         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
43068         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
43069         * m4/modechange.m4 (gl_MODECHANGE):
43070         * m4/mountlist.m4 (gl_MOUNTLIST):
43071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43072         * m4/openat.m4 (gl_FUNC_OPENAT):
43073         * m4/pathmax.m4 (gl_PATHMAX):
43074         * m4/physmem.m4 (gl_PHYSMEM):
43075         * m4/posixtm.m4 (gl_POSIXTM):
43076         * m4/posixver.m4 (gl_POSIXVER):
43077         * m4/quote.m4 (gl_QUOTE):
43078         * m4/quotearg.m4 (gl_QUOTEARG):
43079         * m4/readtokens.m4 (gl_READTOKENS):
43080         * m4/readutmp.m4 (gl_READUTMP):
43081         * m4/regex.m4 (gl_REGEX):
43082         * m4/safe-read.m4 (gl_SAFE_READ):
43083         * m4/safe-write.m4 (gl_SAFE_WRITE):
43084         * m4/same.m4 (gl_SAME):
43085         * m4/save-cwd.m4 (gl_SAVE_CWD):
43086         * m4/savedir.m4 (gl_SAVEDIR):
43087         * m4/settime.m4 (gl_SETTIME):
43088         * m4/sha1.m4 (gl_SHA1):
43089         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
43090         * m4/stat-macros.m4 (gl_STAT_MACROS):
43091         * m4/stat-time.m4 (gl_STAT_TIME):
43092         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
43093         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
43094         * m4/strdup.m4 (gl_FUNC_STRDUP):
43095         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
43096         * m4/strndup.m4 (gl_FUNC_STRNDUP):
43097         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
43098         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
43099         * m4/time_r.m4 (gl_TIME_R):
43100         * m4/timespec.m4 (gl_TIMESPEC):
43101         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
43102         * m4/unlinkdir.m4 (gl_UNLINKDIR):
43103         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
43104         * m4/userspec.m4 (gl_USERSPEC):
43105         * m4/utimecmp.m4 (gl_UTIMECMP):
43106         * m4/utimens.m4 (gl_UTIMENS):
43107         * m4/xalloc.m4 (gl_XALLOC):
43108         * m4/xgetcwd.m4 (gl_XGETCWD):
43109         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
43110         * m4/xreadlink.m4 (gl_XREADLINK):
43111         * m4/xstrtod.m4 (gl_XSTRTOD):
43112         * m4/yesno.m4 (gl_YESNO):
43113         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
43114         to get the necessary .h files and whatnot.
43115
43116 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
43117             Bruno Haible  <bruno@clisp.org>
43118
43119         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
43120         /bin/sh understanding of '!' conditional negation.
43121
43122 2006-08-21  Jim Meyering  <jim@meyering.net>
43123
43124         * modules/openat (Depends-on): Really alphabetize.
43125
43126         * modules/acl (Depends-on): Add error and quote.
43127
43128         * check-module (find_included_lib_files): Add at-func.c to the
43129         ok-to-include-more-than-once white list.
43130
43131         * modules/openat (Depends-on): Add lstat.  Alphabetize.
43132
43133 2006-08-21  Bruno Haible  <bruno@clisp.org>
43134
43135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43136         Emit a pkgdata_DATA variable only if some snippets add contents to it.
43137         Reported by Martin Lambers <marlam@marlam.de>.
43138
43139 2006-08-21  Bruno Haible  <bruno@clisp.org>
43140
43141         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
43142         specify an installation location, don't emit a noinst_LIBRARIES or
43143         noinst_LTLIBRARIES assignment.
43144
43145 2006-08-21  Bruno Haible  <bruno@clisp.org>
43146
43147         BeOS portability.
43148         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
43149         BeOS has mbrtowc() but no <wctype.h>.
43150
43151 2006-08-21  Bruno Haible  <bruno@clisp.org>
43152
43153         BeOS portability.
43154         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
43155         exist.
43156
43157 2006-08-21  Bruno Haible  <bruno@clisp.org>
43158
43159         BeOS portability.
43160         * lib/mbchar.h: Include <wctype.h> only if it exists.
43161
43162 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43163
43164         Remove files that are no longer needed by their respective modules.
43165         * m4/obstack.m4: Remove.
43166         * m4/strerror_r.m4: Remove.
43167         * m4/uint32_t.m4: Remove.
43168         * m4/uintptr_t.m4: Remove.
43169         * m4/ullong_max.m4: Remove.
43170         * m4/xstrtoimax.m4: Remove.
43171         * m4/xstrtoumax.m4: Remove.
43172
43173         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
43174         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
43175         dependencies now capture this.
43176
43177         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
43178         Do not use AC_LIBSOURCES, since gnulib modules now do this.
43179         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
43180         * m4/human.m4 (gl_HUMAN): Likewise.
43181         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
43182         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
43183
43184         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
43185
43186         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
43187         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
43188         stdint.
43189         * m4/human.m4 (gl_HUMAN): Likewise.
43190         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
43191         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
43192         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43193         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43194         * m4/xstrtol (gl_XSTRTOL): Likewise.
43195
43196         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
43197         AC_TYPE_LONG_LONG_INT.
43198         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
43199         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
43200         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
43201         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
43202
43203         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
43204         on stdbool.
43205
43206         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
43207         (gl_PREREQ_XSTRTOUL): Remove.
43208
43209         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
43210
43211         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
43212         mode.
43213
43214 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43215
43216         Add and change modules to make it easier for coreutils to use
43217         gnulib-tool.
43218         * modules/backupfile (Files): Remove m4/d-ino.m4.
43219         (Depends-on): Add d-ino.
43220         * modules/cycle-check (Depends-on): Add stdint.
43221         (lib_SOURCES): Add cycle-check.h.
43222         * modules/d-ino: New module.
43223         * modules/d-type: New module.
43224         * modules/error (Files): Remove m4/strerror_r.m4.
43225         * modules/filemode (Files): Add m4/st_dm_mode.m4.
43226         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
43227         m4/inttypes_h.m4, m4/uintmax_t.m4.
43228         (Depends-on): Add stdint.
43229         (lib_SOURCES): Add fsusage.h.
43230         * modules/getcwd (Files): Remove d-ino.m4.
43231         (Depends-on): Add d-ino.
43232         * modules/getndelim2 (Depends-on): Add stdint.
43233         * modules/glob (Files): Remove m4/d-type.m4.
43234         (Depends-on): Add d-type.
43235         * modules/host-os: New module.
43236         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
43237         m4/inttypes_h.m4, m4/uintmax_t.m4.
43238         * Depends-on: Add stdint.
43239         (lib_SOURCES): Add human.h.
43240         * modules/inttostr (Files): Remove m4/intmax_t.m4,
43241         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
43242         m4/uintmax_t.m4, m4/ulonglong.m4.
43243         (Depends-on): Add stdint.
43244         (EXTRA_DIST): Add inttostr.h.
43245         * modules/lchmod: New module.
43246         * modules/link-follow: New module.
43247         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
43248         (Depends-on): Add lchmod.
43249         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
43250         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
43251         (Depends-on): Add stdint.
43252         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
43253         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
43254         (Depends-on): Add stdint.
43255         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
43256         * modules/perl: New module.
43257         * modules/regex (Depends-on): Add stdint.
43258         * modules/rmdir-errno: New module.
43259         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43260         m4/intmax_t.m4.
43261         (Depends-on): Add stdint.
43262         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
43263         m4/uintmax_t.m4.
43264         (Depends-on): Add stdint.
43265         * modules/unlink-busy: New module.
43266         * modules/utimecmp (Depends-on): Add stdint.
43267         * modules/uptime: New module.
43268         * modules/winsz-ioctl: New module.
43269         * modules/winsz-termios: New module.
43270         * modules/xnanosleep (Depends-on): Add nanosleep.
43271         * modules/ullong_max: Remove.
43272         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
43273         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
43274         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
43275         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
43276         (Depends-on): Add inttypes.
43277         (lib_SOURCES): Add xstrtol.h.
43278         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
43279         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
43280         * MODULES.html.sh: Move 'assert' into the assert section.
43281         Move 'dummy' into the linking section.
43282         Remove ullong_max.
43283         Add section for compatibility checks for POSIX:2001 functions,
43284         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
43285         winsz-ioctl, and winsz-termios into it.
43286         Add lchmod.
43287         Add top-level Misc section and put host-os, perl, and uptime
43288         into it.
43289
43290 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
43291
43292         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
43293         now assume the stdint module.  Do not include inttypes.h.
43294         * lib/fsusage.h: Likewise.
43295         * lib/getndelim2.c: Likewise.
43296         * lib/human.h: Likewise.
43297         * lib/inttostr.h: Likewise.
43298         * lib/obstack.c: Likewise.
43299         * lib/regex_internal.h: Likewise.
43300         * lib/tempname.c: Likewise.
43301         * lib/utimecmp.c: Likewise.
43302         * lib/xstrtol.h: Likewise.
43303
43304         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
43305
43306         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
43307         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
43308         * lib/xtime.h: Likewise.
43309
43310 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43311
43312         * modules/openat (Files): Add lib/fchmodat.c.
43313         Fixes problem reported by Jay Youngman.
43314
43315 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43316
43317         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
43318         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
43319
43320 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
43321             Bruno Haible  <bruno@clisp.org>
43322
43323         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
43324         and is a script that invokes bison. Tighten the code. Add comments.
43325
43326 2006-08-18  Jim Meyering  <jim@meyering.net>
43327
43328         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
43329         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
43330         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
43331         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
43332
43333 2006-08-18  Bruno Haible  <bruno@clisp.org>
43334
43335         * modules/bison-i18n: New file.
43336         * MODULES.html.sh (Internationalization functions): Add it.
43337
43338 2006-08-18  Bruno Haible  <bruno@clisp.org>
43339
43340         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
43341         sys/statvfs.h. When getmntinfo was found, check its declaration and
43342         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
43343
43344 2006-08-18  Bruno Haible  <bruno@clisp.org>
43345
43346         * m4/bison-i18n.m4: New file, from bison.
43347
43348 2006-08-18  Bruno Haible  <bruno@clisp.org>
43349
43350         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
43351         (ME_DUMMY): Treat "kernfs" as a dummy.
43352         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
43353
43354 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43355
43356         Update from coreutils.
43357
43358         2006-08-15  Jim Meyering  <jim@meyering.net>
43359
43360         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
43361
43362         2006-01-17  Jim Meyering  <jim@meyering.net>
43363
43364         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
43365
43366         2006-01-11  Jim Meyering  <jim@meyering.net>
43367
43368         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
43369         Check for the lchmod function.
43370
43371 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43372
43373         Update from coreutils.
43374
43375         * lib/__fpending.h: Add copyright notice.
43376         * lib/fprintftime.h: Likewise.
43377         * lib/savedir.c: Use (C) in copyright notice.
43378         * lib/savedir.h: Likewise.
43379
43380         2006-08-15  Jim Meyering  <jim@meyering.net>
43381
43382         * lib/at-func.c: New file, with the logic of all emulated at-functions.
43383         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
43384         in support of the EXPECTED_ERRNO macro.
43385         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
43386         definitions.  Instead, define the appropriate symbols and include
43387         "at-func.c".
43388         * lib/mkdirat.c (mkdirat): Likewise.
43389         * lib/fchmodat.c (fchmodat): Likewise.
43390         (ENOSYS): Remove definition.
43391         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
43392         it.  Don't include "unistd--.h" -- it wasn't ever used.
43393
43394         2006-01-17  Jim Meyering  <jim@meyering.net>
43395
43396         Rewrite fts.c not to change the current working directory,
43397         by using openat, fstatat, fdopendir, etc..
43398
43399         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
43400         (HAVE_OPENAT_SUPPORT): Define.
43401         [_LIBC] (fchdir): Don't undef or define; no longer used.
43402         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
43403         Now, this `function' always succeeds, and consumes its file descriptor
43404         parameter -- so callers must not close such FDs.  Update callers.
43405         (diropen_fd, opendirat, cwd_advance_fd): New functions.
43406         (diropen): Add parameter, SP.  Adjust all callers.
43407         Implement using diropen_fd, rather than open.
43408         (fts_open): Initialize new member, fts_cwd_fd.
43409         Remove fts_rft-setting code.
43410         (fts_close): Close fts_cwd_fd, if necessary.
43411         (__opendir2): Define in terms of opendir or opendirat,
43412         depending on whether the FST_NOCHDIR flag is set.
43413         (fts_build): Since fts_safe_changedir consumes its FD, and since
43414         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
43415         and close the dup'd file descriptor upon failure.
43416         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
43417         (fts_safe_changedir): Tweak semantics to reflect that this function
43418         now calls cwd_advance_fd and hence consumes its FD argument.
43419         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
43420         [struct FTS] (fts_rft): Remove now-unused member.
43421         [struct FTS] (fts_cycle.state): Improve comment.
43422
43423         * lib/openat.c (openat_needs_fchdir): New function.
43424         * lib/openat.h (openat_needs_fchdir): Declare it.
43425
43426 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
43427
43428         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
43429         Problem and fix reported by Pádraig Brady in
43430         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
43431
43432 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43433
43434         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
43435
43436 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43437
43438         * lib/memcoll.c (memcoll): Optimize for the common case where the
43439         arguments are bytewise equal.
43440
43441 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
43442
43443         * doc/regexprops-generic.texi: Add a copyright notice.
43444
43445 2006-08-15  Bruno Haible  <bruno@clisp.org>
43446
43447         * modules/tmpdir (License): Change to LGPL.
43448
43449 2006-08-15  Bruno Haible  <bruno@clisp.org>
43450
43451         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43452         module.
43453
43454 2006-08-14  Simon Josefsson  <jas@extundo.com>
43455
43456         * config/srclist.txt: Add gnupload.
43457
43458 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43459
43460         Change copyright notice from LGPL 2 to GPL 2, since that's the
43461         standard form used in the gnulib repository.
43462         * tests/test-lock.c: Likewise.
43463         * tests/test-stdint.c: Likewise.
43464         * tests/test-tls.c: Likewise.
43465
43466         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43467         prelude-manager.  User shorter URLs for GNU projects, without '?'.
43468         Add copyright notice.
43469
43470         * check-module: Add copyright notice.  Output a copyright
43471         notice if "--version" is specified.
43472         * modules/COPYING: New file.
43473         * tests/test-getaddrinfo.c: Add copyright notice.
43474         * tests/test-verify.c: Likewise.
43475
43476 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43477
43478         Change copyright notice from LGPL 2 to GPL 2, since that's the
43479         standard form used in the gnulib repository.
43480         * lib/lock.c: LGPL -> GPL.
43481         * lib/lock.h: Likewise.
43482         * lib/strnlen1.c: Likewise.
43483         * lib/strnlen1.h: Likewise.
43484         * lib/tls.c: Likewise.
43485         * lib/tls.h: Likewise.
43486         * lib/tmpdir.c: Likewise.
43487
43488         * lib/TODO: Remove; this belongs only in coreutils.
43489
43490 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43491
43492         Add copyright notices to long-enough files that lack them, since
43493         otherwise the files aren't clearly free.  Use the same notice that
43494         getdate.texi already uses.
43495         * doc/alloca-opt.texi: Add copyright notice.
43496         * doc/alloca.texi: Likewise.
43497         * doc/ctime.texi: Likewise.
43498         * doc/functions.texi: Likewise.
43499         * doc/gcd.texi: Likewise.
43500         * doc/gnulib-tool.texi: Likewise.
43501         * doc/inet_ntoa.texi: Likewise.
43502         * doc/visibility.texi: Likewise.
43503
43504         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43505         * doc/quote.texi: Add copyright notice.
43506
43507         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43508         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
43509         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
43510         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
43511         is now obsolete, and give a pointer to the Sun list.
43512         Add copyright notice.
43513
43514 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
43515
43516         * config/srclistvars.sh: Add copyright notice.
43517
43518 2006-08-14  Eric Blake  <ebb9@byu.net>
43519
43520         Import the following change from libc:
43521
43522         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
43523
43524         Upstream bug 2997.
43525         * lib/misc/error.c: Add space between program name and message if file
43526         name is missing.
43527
43528 2006-08-12  Karl Berry  <karl@gnu.org>
43529
43530         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43531         remove, these originate in gnulib now.
43532
43533 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43534
43535         * doc/Makefile (standards.info standards.html standards.dvi):
43536         Also depend on make-stds.texi.
43537
43538 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43539
43540         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43541         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
43542
43543         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43544         in wchar_t.  Problem reported by Eric Blake.
43545
43546         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43547         LEN is smaller than SIZE.  Suggested by Bruno Haible.
43548         Also, help the compiler to keep LEN in a register.
43549
43550 2006-08-11  Eric Blake  <ebb9@byu.net>
43551
43552         * users.txt: Sort.  Add tar.
43553
43554 2006-08-11  Bruno Haible  <bruno@clisp.org>
43555
43556         * users.txt: New file.
43557
43558 2006-08-11  Bruno Haible  <bruno@clisp.org>
43559
43560         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43561         before <wchar.h>. Needed for OSF/1 and BSD/OS.
43562
43563 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43564
43565         * modules/snprintf (Depends-on): Remove minmax.
43566         (Maintainer): Add self and Bruno.
43567
43568 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
43569
43570         * lib/.cppi-disable: Add snprintf.h, socket_.h.
43571         * lib/snprintf.c: Include <errno.h> and <limits.h>.
43572         (EOVERFLOW): Define if the system does not.
43573         Do not include "minmax.h"; it wasn't used.
43574         (snprintf): Don't assume size_t promotes to an unsigned type.
43575         Fix bug when generated string was too long for the buffer: the
43576         buffer's contents are supposed to be the initial prefix of the
43577         output.  Don't assume vasnprintf returns EOVERFLOW if the size
43578         exceeds INT_MAX; do the check ourselves.
43579
43580         Import the following changes from libc:
43581
43582         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
43583
43584         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43585         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
43586         set wc to the byte which couldn't be converted.
43587         (re_string_reconstruct): Don't clear valid_raw_len before calling
43588         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
43589         tip_context using re_string_context_at.
43590
43591         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
43592
43593         * lib/posix/regex.h: g++ still cannot handled [restrict].
43594
43595         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
43596
43597         * lib/posix/regex.h: Remove special handling for VMS.
43598
43599 2006-08-10  Jim Meyering  <jim@meyering.net>
43600
43601         * modules/same-inode: New module.
43602         * modules/dev-ino: New module.
43603         * modules/cycle-check: Depend on these modules, rather than simply
43604         including their .h files.
43605         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43606         required via m4/cycle-check.m4.
43607         * modules/same: Depend on new same-inode module, rather than
43608         including same-inode.h.
43609         * modules/chdir-safer: New file.
43610
43611         * modules/chown (Depends-on): Add stat-macros.
43612
43613 2006-08-10  Jim Meyering  <jim@meyering.net>
43614
43615         * m4/cycle-check.m4: New file.
43616         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43617         * m4/dev-ino.m4, m4/same-inode.m4: New files.
43618
43619 2006-08-10  Eric Blake  <ebb9@byu.net>
43620
43621         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43622         in from original proposal.
43623
43624 2006-08-10  Eric Blake  <ebb9@byu.net>
43625         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43626
43627         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43628         namespace.
43629
43630 2006-08-10  Bruno Haible  <bruno@clisp.org>
43631
43632         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43633         as well.
43634
43635 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43636
43637         Sync from coreutils.
43638
43639         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
43640
43641         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43642         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43643
43644 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43645
43646         * modules/restrict: Remove; no longer needed now that we assume
43647         Autoconf 2.59 or later.
43648         * MODULES.html.sh: Remove 'restrict'.
43649         * modules/argp (Depends-on): Remove 'restrict'.
43650         * modules/base64 (Depends-on): Likewise.
43651         * modules/gc (Depends-on): Likewise.
43652         * modules/getaddrinfo (Depends-on): Likewise.
43653         * modules/glob (Depends-on): Likewise.
43654         * modules/inet_ntop (Depends-on): Likewise.
43655         * modules/inet_pton (Depends-on): Likewise.
43656         * modules/memxor (Depends-on): Likewise.
43657         * modules/regex (Depends-on): Likewise.
43658         * modules/strtok_r (Depends-on): Likewise.
43659         * modules/time_r (Depends-on): Likewise.
43660
43661 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43662
43663         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43664         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43665         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43666         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43667         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43668         * m4/memxor.m4 (gl_MEMXOR): Likewise.
43669         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
43670         gl_C_RESTRICT replaced by AC_C_RESTRICT.
43671
43672         Merge from coreutils.
43673         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43674         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43675         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43676         * m4/time_r.m4 (gl_TIME_R): Likewise.
43677
43678 2006-08-09  Karl Berry  <karl@gnu.org>
43679
43680         * config/srclist.txt: no more gettext-tools, per Bruno.
43681
43682 2006-08-08  Eric Blake  <ebb9@byu.net>
43683
43684         * modules/verror: New module.
43685         * MODULES.html.sh: Document it.
43686
43687 2006-08-08  Eric Blake  <ebb9@byu.net>
43688
43689         * lib/verror.h, lib/verror.c: New files.
43690
43691 2006-08-08  Eric Blake  <ebb9@byu.net>
43692
43693         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43694         verror_at_line output complies with GNU Coding Standards even when
43695         file is NULL.
43696
43697 2006-08-07  Bruno Haible  <bruno@clisp.org>
43698
43699         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43700         versions of AIX.
43701         Reported by Ralf Wildenhues.
43702
43703 2006-08-07  Bruno Haible  <bruno@clisp.org>
43704
43705         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43706         in an AC_DEFUN. Needed so that the autoconf snippets can use
43707         AC_REQUIRE.
43708
43709 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43710
43711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43712         Initialize pkgdata_DATA.
43713         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43714         overriding it.
43715
43716 2006-08-06  Eric Blake  <ebb9@byu.net>
43717
43718         * lib/error.h: Fold in some upstream changes from glibc.
43719         * lib/error.c: Likewise.
43720
43721 2006-08-04  Bruno Haible  <bruno@clisp.org>
43722
43723         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43724         Make the mostlyclean-local rule depend on mostlyclean-generic.
43725         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43726
43727 2006-07-31  Bruno Haible  <bruno@clisp.org>
43728
43729         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43730         <stdlib.h>, <string.h>.
43731
43732 2006-07-30  Bruno Haible  <bruno@clisp.org>
43733
43734         * modules/readlink (License): Change to LGPL.
43735
43736 2006-07-30  Bruno Haible  <bruno@clisp.org>
43737
43738         * modules/javaversion (Makefile.am): Distribute javaversion.java and
43739         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43740         set PKGDATADIR to point to it.
43741
43742 2006-07-30  Bruno Haible  <bruno@clisp.org>
43743
43744         * modules/csharpexec (configure.ac): Comment out macro invocation.
43745         * modules/javaexec (configure.ac): Likewise.
43746         * modules/javacomp-script (configure.ac): Likewise.
43747
43748         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43749
43750 2006-07-30  Bruno Haible  <bruno@clisp.org>
43751
43752         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43753         linked-list.
43754
43755 2006-07-30  Bruno Haible  <bruno@clisp.org>
43756
43757         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43758
43759 2006-07-30  Bruno Haible  <bruno@clisp.org>
43760
43761         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43762         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43763         get removed.
43764
43765 2006-07-29  Bruno Haible  <bruno@clisp.org>
43766
43767         Make it possible for gnulib-tool to work with locally modified or
43768         augmented gnulib repositories.
43769         * gnulib-tool (func_usage): Document --local-dir option.
43770         (local_gnulib_dir): New variable.
43771         Handle --local-dir option.
43772         (func_lookup_file): New function.
43773         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43774         (func_get_description, func_get_filelist, func_get_description,
43775         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43776         func_get_automake_snippet, func_get_include_directive,
43777         func_get_license, func_get_maintainer): Use func_lookup_file.
43778         (func_import, func_create_testdir): Use func_lookup_file.
43779
43780 2006-07-29  Bruno Haible  <bruno@clisp.org>
43781
43782         * modules/setenv (Depends-on): Add unistd.
43783
43784 2006-07-29  Bruno Haible  <bruno@clisp.org>
43785
43786         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43787
43788 2006-07-29  Bruno Haible  <bruno@clisp.org>
43789
43790         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43791
43792 2006-07-29  Bruno Haible  <bruno@clisp.org>
43793
43794         * gnulib-tool (import, update): If there is no Makefile.am, look at
43795         aclocal.m4, instead of bailing out.
43796
43797 2006-07-29  Bruno Haible  <bruno@clisp.org>
43798
43799         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43800         Categorize the options by when they are useful.
43801
43802 2006-07-29  Bruno Haible  <bruno@clisp.org>
43803
43804         * gnulib-tool (func_usage): Document option --no-libtool.
43805         Handle option --no-libtool.
43806         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43807         for changed semantics of $libtool variable.
43808         (func_import): Likewise. If libtool is not used, show this through
43809         an option --no-libtool.
43810         (func_create_testdir): Update.
43811
43812 2006-07-29  Bruno Haible  <bruno@clisp.org>
43813
43814         * gnulib-tool (func_import): Extend error message about missing
43815         --doc-base.
43816
43817 2006-07-29  Bruno Haible  <bruno@clisp.org>
43818
43819         * gnulib-tool (func_import): Don't create the $docbase directory if
43820         there is no file to store there.
43821
43822 2006-07-29  Bruno Haible  <bruno@clisp.org>
43823
43824         * gnulib-tool (autoconf_minversion): If a --dir option is given and
43825         relevant, look for configure.ac there, not in the current directory.
43826         Also use a simple search for AC_PREREQ, not "autoconf --trace".
43827
43828 2006-07-29  Bruno Haible  <bruno@clisp.org>
43829
43830         * gnulib-tool (SORT): New variable.
43831         (func_usage): Undocument --assume-autoconf option.
43832         Remove --assume-autoconf option handling.
43833         (autoconf_minversion): Determine from the contents of configure.ac.
43834         (func_import): Remove autoconf_minversion handling.
43835         Suggested by Eric Blake.
43836
43837 2006-07-29  Bruno Haible  <bruno@clisp.org>
43838
43839         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43840
43841 2006-07-29  Bruno Haible  <bruno@clisp.org>
43842
43843         * config/srclist.txt (*setenv.[ch]): Remove rules.
43844
43845 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43846
43847         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43848
43849 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43850
43851         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43852         arpa/inet.h.
43853
43854 2006-07-28  Simon Josefsson  <jas@extundo.com>
43855
43856         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43857         * modules/inet_pton (Depends-on): Likewise.
43858
43859 2006-07-28  Simon Josefsson  <jas@extundo.com>
43860
43861         * m4/netinet_in_h.m4: New file.
43862
43863 2006-07-28  Simon Josefsson  <jas@extundo.com>
43864
43865         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43866         #include's.
43867
43868 2006-07-28  Simon Josefsson  <jas@extundo.com>
43869
43870         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43871         #include's.
43872
43873 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
43874
43875         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43876         setgid on directories only if they set these bits.
43877         * lib/modechange.h: Remove obsolete comment about masks.
43878
43879 2006-07-28  Eric Blake  <ebb9@byu.net>
43880
43881         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43882         macro expansion.
43883
43884 2006-07-28  Bruno Haible  <bruno@clisp.org>
43885
43886         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43887
43888 2006-07-28  Bruno Haible  <bruno@clisp.org>
43889
43890         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43891
43892 2006-07-28  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43895         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43896         Define fallbacks.
43897         Avoids link error on FreeBSD 4.x.
43898         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43899
43900         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43901         encoding.
43902         * lib/mbswidth.c (iswcntrl): Likewise.
43903
43904 2006-07-27  Bruno Haible  <bruno@clisp.org>
43905
43906         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43907         test.
43908
43909 2006-07-27  Bruno Haible  <bruno@clisp.org>
43910
43911         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43912         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43913         defined.
43914
43915 2006-07-26  Eric Blake  <ebb9@byu.net>
43916
43917         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43918
43919 2006-07-26  Eric Blake  <ebb9@byu.net>
43920
43921         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43922         like mingw that lack mkstemp.
43923         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43924         avoid compilation warning on mingw.
43925
43926 2006-07-26  Bruno Haible  <bruno@clisp.org>
43927
43928         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43929         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43930         INT_FAST*_MIN, INTPTR_MIN.
43931
43932 2006-07-25  Bruno Haible  <bruno@clisp.org>
43933
43934         * modules/version-etc (Depends-on): Add stdarg.
43935
43936 2006-07-25  Bruno Haible  <bruno@clisp.org>
43937
43938         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43939         complex commands.
43940
43941 2006-07-25  Bruno Haible  <bruno@clisp.org>
43942
43943         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43944         defined in <stdarg.h> or config.h.
43945
43946 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43947
43948         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43949         (gl_STDIO_SAFER): Remove.
43950
43951 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
43952
43953         * MODULES.html.sh (File stream based Input/Output):
43954         Add fopen-safer, tmpfile-safer; remove stdio-safer.
43955         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43956         * modules/fopen-safer, modules/tmpfile-safer: New files.
43957         * modules/stdio-safer: Remove.
43958
43959 2006-07-24  Bruno Haible  <bruno@clisp.org>
43960
43961         * modules/tmpdir: New file.
43962         * MODULES.html.sh (File system functions): Add it.
43963
43964 2006-07-24  Bruno Haible  <bruno@clisp.org>
43965
43966         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43967         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43968
43969 2006-07-24  Bruno Haible  <bruno@clisp.org>
43970
43971         * modules/clean-temp: New file.
43972
43973 2006-07-24  Bruno Haible  <bruno@clisp.org>
43974
43975         * m4/tmpdir.m4: New file, from GNU gettext.
43976
43977 2006-07-24  Bruno Haible  <bruno@clisp.org>
43978
43979         * lib/tmpdir.h: New file, from GNU gettext.
43980         * lib/tmpdir.c: New file, from GNU gettext.
43981
43982 2006-07-24  Bruno Haible  <bruno@clisp.org>
43983
43984         * lib/clean-temp.h: New file, from GNU gettext.
43985         * lib/clean-temp.c: New file, from GNU gettext.
43986
43987 2006-07-23  Eric Blake  <ebb9@byu.net>
43988
43989         * modules/stdio-safer (Files): Add tmpfile-safer.c.
43990         (Depends-on): Add binary-io.
43991
43992 2006-07-23  Eric Blake  <ebb9@byu.net>
43993
43994         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43995
43996 2006-07-23  Eric Blake  <ebb9@byu.net>
43997
43998         * lib/tmpfile-safer.c: New file.
43999         * lib/stdio-safer.h (fopen_safer): Add prototype.
44000         * lib/stdio--.h (tmpfile): Make safer.
44001
44002 2006-07-23  Bruno Haible  <bruno@clisp.org>
44003
44004         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
44005         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
44006         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
44007         gl_linked_remove_at): Use it.
44008
44009 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44010         and Simon Josefsson <jas@extundo.com>
44011
44012         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
44013
44014         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
44015
44016 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44017
44018         * modules/close-stream: New file.
44019         * modules/closeout (Description): Make it clear that it exits
44020         with a diagnostic on error.
44021         (Depends-on): Add close-stream.  Remove fpending, stdbool.
44022         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
44023
44024 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44025
44026         * m4/close-stream.m4: New file.
44027
44028 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
44029
44030         * lib/close-stream.c, lib/close-stream.h: New files.
44031
44032 2006-07-22  Bruno Haible  <bruno@clisp.org>
44033
44034         Merge from GNU gettext 0.15.
44035
44036         2006-05-01  Bruno Haible  <bruno@clisp.org>
44037
44038                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
44039
44040         2006-07-22  Bruno Haible  <bruno@clisp.org>
44041
44042                 * modules/javaversion: New file.
44043                 * MODULES.html.sh (Java): Add javaversion.
44044
44045         2006-03-12  Bruno Haible  <bruno@clisp.org>
44046
44047                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
44048
44049         2005-12-04  Bruno Haible  <bruno@clisp.org>
44050
44051                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
44052                 (untested).
44053
44054         2006-06-21  Bruno Haible  <bruno@clisp.org>
44055
44056                 Avoid warnings from recent versions of mcs.
44057                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
44058                 -o, -L, -r any more. Use options documented since mcs-1.0
44059                 instead. Similarly for -g.
44060
44061         2005-12-04  Bruno Haible  <bruno@clisp.org>
44062
44063                 * build-aux/csharpcomp.sh.in: Suffix for resources is
44064                 .resources, not .resource.
44065
44066         2005-07-09  Bruno Haible  <bruno@clisp.org>
44067
44068                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
44069                 add a .dll suffix.
44070                 Reported by Mark Junker <mjscod@gmx.de>.
44071
44072         2006-07-22  Bruno Haible  <bruno@clisp.org>
44073
44074                 * modules/gettext: Upgrade to gettext-0.15.
44075                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
44076                 m4/visibility.m4.
44077                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
44078
44079 2006-07-22  Bruno Haible  <bruno@clisp.org>
44080
44081         Merge from GNU gettext 0.15.
44082
44083         2006-03-25  Bruno Haible  <bruno@clisp.org>
44084
44085                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
44086
44087         2006-07-21  Bruno Haible  <bruno@clisp.org>
44088
44089                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
44090                 "1.1".
44091
44092         2006-05-09  Bruno Haible  <bruno@clisp.org>
44093
44094                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
44095                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
44096                 for the conftestver execution.
44097
44098         2006-05-01  Bruno Haible  <bruno@clisp.org>
44099
44100                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
44101                 optional target-version argument. Verify that the compiler
44102                 groks source of the specified source-version, or add -source
44103                 option as necessary. Verify that the compiler produces
44104                 bytecode in the specified target-version, or add -target and
44105                 -source options as necessary. Make the result of the test
44106                 available as variable CONF_JAVAC. Also log error output in
44107                 config.log.
44108
44109         2006-03-11  Bruno Haible  <bruno@clisp.org>
44110
44111                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
44112
44113         2006-05-09  Bruno Haible  <bruno@clisp.org>
44114
44115                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
44116                 CLASSPATH_SEPARATOR to a semicolon.
44117
44118         2006-03-12  Bruno Haible  <bruno@clisp.org>
44119
44120                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
44121                 available as variable CONF_JAVA, for subsequent autoconf
44122                 tests. Also log error output in config.log.
44123
44124         2006-07-19  Bruno Haible  <bruno@clisp.org>
44125
44126                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
44127                 that getline works on glibc2 systems. Needed to avoid trouble
44128                 in relocatable.c.
44129                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
44130
44131         2005-12-04  Bruno Haible  <bruno@clisp.org>
44132
44133                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
44134                 launcher (untested).
44135
44136         2005-12-04  Bruno Haible  <bruno@clisp.org>
44137
44138                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
44139
44140         2006-07-22  Bruno Haible  <bruno@clisp.org>
44141
44142                 * gettext.m4: Update from GNU gettext-0.15.
44143                 * nls.m4: Likewise.
44144                 * po.m4: Likewise.
44145                 * inttypes-pri.m4: Likewise.
44146                 * inttypes-h.m4: Renamed from inttypes.m4.
44147                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
44148
44149 2006-07-22  Bruno Haible  <bruno@clisp.org>
44150
44151         Merge from GNU gettext 0.15.
44152
44153         2005-07-05  Bruno Haible  <bruno@clisp.org>
44154
44155                 * printf-args.c (printf_fetchargs): Work around broken
44156                 definition of wint_t on mingw.
44157
44158         2005-02-12  Bruno Haible  <bruno@clisp.org>
44159
44160                 * xallocsa.h: Add extern "C" for C++.
44161
44162         2006-05-17  Bruno Haible  <bruno@clisp.org>
44163
44164                 Cygwin portability.
44165                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
44166
44167         2006-04-30  Bruno Haible  <bruno@clisp.org>
44168
44169                 * progreloc.c: Include <mach-o/dyld.h> if available.
44170                 (find_executable): Use _NSGetExecutablePath when possible.
44171
44172         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
44173
44174                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
44175                 function.
44176
44177         2005-12-29  Bruno Haible  <bruno@clisp.org>
44178
44179                 * progreloc.c (set_program_name_and_installdir): Fix
44180                 compilation error.
44181
44182         2005-12-04  Bruno Haible  <bruno@clisp.org>
44183
44184                 Cygwin portability.
44185                 * progreloc.c: Include <windows.h> also on Cygwin.
44186                 (find_executable): Add support for Cygwin.
44187                 (set_program_name_and_installdir): Handle also platforms with
44188                 nonempty EXEEXT.
44189
44190         2006-07-11  Bruno Haible  <bruno@clisp.org>
44191
44192                 * javacomp.c: Fix a comment.
44193                 Reported by Jim Meyering.
44194
44195         2006-04-30  Bruno Haible  <bruno@clisp.org>
44196
44197                 * javacomp.h (compile_java_class): Add source_version,
44198                 target_version arguments.
44199                 * javacomp.c: Rewritten to choose only a compiler that
44200                 respects the specified source_version and target_version.
44201
44202         2006-06-27  Bruno Haible  <bruno@clisp.org>
44203
44204                 Assume correct S_ISDIR macro.
44205                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
44206
44207         2006-07-22  Bruno Haible  <bruno@clisp.org>
44208
44209                 * javaversion.h: New file, from GNU gettext.
44210                 * javaversion.c: New file, from GNU gettext.
44211                 * javaversion.java: New file, from GNU gettext.
44212                 * javaversion.class: New file, from GNU gettext.
44213
44214         2006-05-17  Bruno Haible  <bruno@clisp.org>
44215
44216                 Cygwin portability.
44217                 * javaexec.c (execute_java_class): Test for jview program
44218                 also on Cygwin.
44219
44220         2006-04-09  Bruno Haible  <bruno@clisp.org>
44221
44222                 * fatal-signal.c: Don't include string.h.
44223                 (at_fatal_signal): Use a copying loop instead of memcpy.
44224
44225         2005-12-04  Bruno Haible  <bruno@clisp.org>
44226
44227                 * csharpexec.c: Add support for 'clix' launcher (untested).
44228                 (execute_csharp_using_sscli): New function.
44229                 (execute_csharp_program): Call it.
44230
44231         2006-06-21  Bruno Haible  <bruno@clisp.org>
44232
44233                 Avoid warnings from recent versions of mcs.
44234                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
44235                 -o, -L, -r any more. Use options documented since mcs-1.0
44236                 instead. Similarly for -g.
44237
44238         2005-07-09  Bruno Haible  <bruno@clisp.org>
44239
44240                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
44241                 add a .dll suffix.
44242                 Reported by Mark Junker <mjscod@gmx.de>.
44243
44244         2006-06-17  Bruno Haible  <bruno@clisp.org>
44245
44246                 * config.charset: Update for NetBSD 3.0.
44247
44248         2006-05-17  Bruno Haible  <bruno@clisp.org>
44249
44250                 Cygwin portability.
44251                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
44252
44253         2006-05-16  Bruno Haible  <bruno@clisp.org>
44254
44255                 * localcharset.c [CYGWIN]: Include <windows.h>.
44256                 (get_charset_aliases): For Cygwin, return the same CPxxx
44257                 aliases list as under WIN32.
44258                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
44259                 the environment variables. Fall back to GetACP().
44260
44261         2006-04-05  Bruno Haible  <bruno@clisp.org>
44262
44263                 * config.charset: Update Juan Manuel Guerrero's address.
44264
44265         2005-02-12  Bruno Haible  <bruno@clisp.org>
44266
44267                 * allocsa.h: Add extern "C" for C++.
44268
44269         2005-02-10  Bruno Haible  <bruno@clisp.org>
44270
44271                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
44272                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
44273
44274         2006-07-22  Bruno Haible  <bruno@clisp.org>
44275
44276                 * gettext.h: Update to GNU gettext-0.15.
44277
44278 2006-07-22  Bruno Haible  <bruno@clisp.org>
44279
44280         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
44281         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
44282         lib-prefix.m4, longdouble.m4, ssize_t.m4.
44283
44284 2006-07-21  Eric Blake  <ebb9@byu.net>
44285
44286         * modules/stdlib-safer: New file.
44287         * MODULES.html.sh (File stream based Input/Output): Add
44288         stdlib-safer.
44289
44290 2006-07-21  Eric Blake  <ebb9@byu.net>
44291
44292         * lib/stdlib-safer.h: New file from coreutils, required by
44293         stdlib--.h.
44294
44295 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
44296
44297         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
44298
44299 2006-07-20  Bruno Haible  <bruno@clisp.org>
44300
44301         * gnulib-tool: Recognize new option --assume-autoconf.
44302         (autoconf_minversion): New variable.
44303         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
44304
44305 2006-07-20  Bruno Haible  <bruno@clisp.org>
44306
44307         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
44308
44309 2006-07-19  Derek R. Price  <derek@ximbiot.com>
44310
44311         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
44312         Reindent and repaginate.
44313
44314 2006-07-19  Derek Price  <derek@ximbiot.com>
44315
44316         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
44317         Correct grammar.
44318
44319 2006-07-17  Bruno Haible  <bruno@clisp.org>
44320
44321         * modules/list: New file.
44322         * modules/array-list: New file.
44323         * modules/carray-list, modules/carray-list-tests: New files.
44324         * modules/linked-list, modules/linked-list-tests: New files.
44325         * modules/avltree-list, modules/avltree-list-tests: New files.
44326         * modules/rbtree-list, modules/rbtree-list-tests: New files.
44327         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
44328         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
44329         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
44330         * modules/oset: New file.
44331         * modules/array-oset: New file.
44332         * modules/avltree-oset, modules/avltree-oset-tests: New files.
44333         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
44334         * tests/test-carray_list.c: New file.
44335         * tests/test-linked_list.c: New file.
44336         * tests/test-avltree_list.c: New file.
44337         * tests/test-rbtree_list.c: New file.
44338         * tests/test-linkedhash_list.c: New file.
44339         * tests/test-avltreehash_list.c: New file.
44340         * tests/test-rbtreehash_list.c: New file.
44341         * tests/test-avltree_oset.c: New file.
44342         * tests/test-rbtree_oset.c: New file.
44343         * MODULES.html.sh (Container data structures): New section.
44344
44345 2006-07-17  Bruno Haible  <bruno@clisp.org>
44346
44347         * m4/gl_list.m4: New file.
44348
44349 2006-07-17  Bruno Haible  <bruno@clisp.org>
44350
44351         * lib/gl_list.h: New file.
44352         * lib/gl_list.c: New file.
44353         * lib/gl_array_list.h: New file.
44354         * lib/gl_array_list.c: New file.
44355         * lib/gl_carray_list.h: New file.
44356         * lib/gl_carray_list.c: New file.
44357         * lib/gl_linked_list.h: New file.
44358         * lib/gl_linked_list.c: New file.
44359         * lib/gl_anylinked_list1.h: New file.
44360         * lib/gl_anylinked_list2.h: New file.
44361         * lib/gl_avltree_list.h: New file.
44362         * lib/gl_avltree_list.c: New file.
44363         * lib/gl_anyavltree_list1.h: New file.
44364         * lib/gl_anyavltree_list2.h: New file.
44365         * lib/gl_rbtree_list.h: New file.
44366         * lib/gl_rbtree_list.c: New file.
44367         * lib/gl_anyrbtree_list1.h: New file.
44368         * lib/gl_anyrbtree_list2.h: New file.
44369         * lib/gl_anytree_list1.h: New file.
44370         * lib/gl_anytree_list2.h: New file.
44371         * lib/gl_linkedhash_list.h: New file.
44372         * lib/gl_linkedhash_list.c: New file.
44373         * lib/gl_anyhash_list1.h: New file.
44374         * lib/gl_anyhash_list2.h: New file.
44375         * lib/gl_avltreehash_list.h: New file.
44376         * lib/gl_avltreehash_list.c: New file.
44377         * lib/gl_rbtreehash_list.h: New file.
44378         * lib/gl_rbtreehash_list.c: New file.
44379         * lib/gl_anytreehash_list1.h: New file.
44380         * lib/gl_anytreehash_list2.h: New file.
44381
44382         * lib/gl_oset.h: New file.
44383         * lib/gl_oset.c: New file.
44384         * lib/gl_array_oset.h: New file.
44385         * lib/gl_array_oset.c: New file.
44386         * lib/gl_avltree_oset.h: New file.
44387         * lib/gl_avltree_oset.c: New file.
44388         * lib/gl_rbtree_oset.h: New file.
44389         * lib/gl_rbtree_oset.c: New file.
44390         * lib/gl_anytree_oset.h: New file.
44391
44392 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44393
44394         * m4/mkancesdirs.m4: New file.
44395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
44396         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
44397         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
44398         it.
44399
44400 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44401
44402         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
44403         * lib/mkancesdirs.h: New files.
44404         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
44405         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
44406         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
44407         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
44408         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
44409         callers changed.  Revamp internals significantly, by not
44410         attempting to create directories that are temporarily more
44411         permissive than the final results.  Do not attempt to use
44412         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
44413         This removes some race conditions, fixes some bugs, and simplifies
44414         things.  Use new dirchownmod function to do owner and mode changes.
44415         * lib/mkdir-p.h: Likewise.
44416         * lib/modechange.c (octal_to_mode): New function.
44417         (struct mode_change): New member mentioned.
44418         (make_node_op_equals): New arg mentioned.  All callers changed.
44419         (mode_compile): Keep track of which mode bits the user has explicitly
44420         mentioned.
44421         (mode_adjust): New arg DIR, so that we implement the X op correctly.
44422         New arg PMODE_BITS, to keep track of which mode bits the user
44423         mentioned; it treats S_ISUID and S_ISGID speciall.
44424         All callers changed.
44425         * lib/modechange.h: Likewise.
44426
44427 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
44428
44429         * MODULES.html.sh: Add mkancestors.
44430         * modules/mkancesdirs: New module.
44431         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
44432         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
44433         The chdir-safer and afs files are now orphans; I'll remove them
44434         unless someone speaks up.
44435         Add lib/dirchownmod.c, lib/dirchownmod.h.
44436         (Depends-on): Remove alloca, chown, save-cwd, dirname.
44437         Add lchown, mkancesdirs.
44438         (Maintainer): Add self.
44439
44440 2006-07-15  Karl Berry  <karl@gnu.org>
44441
44442         * gnulib-tool: help message wording/arrangement.
44443
44444 2006-07-14  Simon Josefsson  <jas@extundo.com>
44445
44446         * doc/gnulib.texi (Libtool and Windows): New section.
44447
44448 2006-07-12  Simon Josefsson  <jas@extundo.com>
44449
44450         * modules/gendocs (License): Fix license, approved by Karl.
44451
44452 2006-07-12  Eric Blake  <ebb9@byu.net>
44453
44454         * MODULES.html.sh: Add gendocs.
44455
44456 2006-07-11  Eric Blake  <ebb9@byu.net>
44457
44458         * modules/fdl: New module, to install doc/fdl.texi.
44459         * MODULES.html.sh: Add new section for documentation modules.
44460         * gnulib-tool: Avoid space-tab.
44461         (--doc-base): New option, to manage files from doc.
44462
44463 2006-07-11  Eric Blake  <ebb9@byu.net>
44464
44465         * m4/absolute-header.m4: Fix comments to match recent change.
44466
44467 2006-07-11  Eric Blake  <ebb9@byu.net>
44468
44469         * gnulib-tool: List --doc-base before --tests-base.
44470
44471 2006-07-11  Derek R. Price  <derek@ximbiot.com>
44472
44473         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44474
44475 2006-07-11  Bruno Haible  <bruno@clisp.org>
44476
44477         * README: Mention where to put documentation.
44478
44479 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44480
44481         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44482
44483 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44484
44485         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44486         to stdint.m4.
44487
44488 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
44489
44490         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44491         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
44492         "no/such/file/stdint.h" when there is no such file, so that
44493         the resulting C code can be parsed by dodgy compilers.
44494         Problems reported by Bob Proulx.
44495
44496 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44497
44498         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44499         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44500         macros into the GNU _D_EXACT_NAMLEN.
44501         * lib/savedir.c:  Likewise.
44502         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44503
44504 2006-07-10  Derek R. Price  <derek@ximbiot.com>
44505         and Paul Eggert  <eggert@cs.ucla.edu>
44506
44507         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44508         * m4/savedir.m4:
44509         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
44510         macros into the GNU _D_EXACT_NAMLEN.
44511
44512 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44513
44514         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44515         around the absolute name, to work around a problem with the HP-UX
44516         11.23 native C compiler, reported by Bob Proulx.
44517
44518 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44519
44520         * doc/maintain.texi, make-stds.texi: Sync from
44521         <http://savannah.gnu.org/projects/gnustandards>.
44522
44523 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44524
44525         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44526
44527 2006-07-09  Jim Meyering  <jim@meyering.net>
44528
44529         * m4/glob.m4: Remove a doubled word in a comment.
44530
44531 2006-07-09  Jim Meyering  <jim@meyering.net>
44532
44533         * lib/argp-pv.c: Remove a doubled word in a comment.
44534         * lib/check-version.c (check_version): Likewise.
44535         * lib/javacomp.c (compile_java_class): Likewise.
44536
44537 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
44538
44539         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44540         for the benefit of people using Autoconf 2.60.  If you want to
44541         support older Autoconf versions you can copy m4/onceonly_2_57.m4
44542         (or m4/onceonly.m4, if pre-2.57) manually.
44543
44544 2006-07-08  Jim Meyering  <jim@meyering.net>
44545
44546         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44547         comment.
44548         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44549         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44550         comment.
44551
44552 2006-07-08  Jim Meyering  <jim@meyering.net>
44553
44554         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44555
44556 2006-07-07  Simon Josefsson  <jas@extundo.com>
44557
44558         * tests/test-crc.c: Change expected crc value, the test vector
44559         were probably computed using the old broken crc.c?
44560
44561 2006-07-06  Simon Josefsson  <jas@extundo.com>
44562
44563         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44564         now the canonical place for the M4 file).
44565
44566         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44567         from the sys_socket dependency now.
44568
44569         * modules/inet_pton (Files): Ditto.
44570
44571         * modules/inet_ntop (Files): Ditto.
44572
44573 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44574
44575         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44576         not gl_PREREQ_GETUSERSHELL.
44577
44578 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44579
44580         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44581         with only one argument, for Autoconf 2.60.
44582         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44583         expand to nothing, so add a shell command to avoid syntax error.
44584         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44585
44586 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44587
44588         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44589
44590 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44591
44592         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44593         no longer needed.  Check for isblank decl.
44594         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44595         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44596         of existence.
44597
44598 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44599
44600         * lib/getloadavg.c: Use __VMS, not VMS.
44601         * lib/getopt.c: Likewise.
44602         * lib/getpagesize.h: Likewise.
44603         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44604         and probably does not work.
44605
44606 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
44607
44608         * lib/.cppi-disable: Add wcwidth.
44609         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
44610         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44611         (ISGRAPH): Remove.  All uses changed to isgraph.
44612         (FOLD) [!defined _LIBC]: Remove special case.
44613         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44614         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44615         HAVE_ISBLANK.
44616         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44617         case.
44618
44619 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
44620
44621         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44622         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44623         brackets.  Other minor changes to suppress some compiler
44624         warnings.
44625
44626 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44627         and Paul Eggert  <eggert@cs.ucla.edu>
44628
44629         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44630         of invoking obsolescent AC_HEADER_DIRENT macro.
44631         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44632         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44633         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44634         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44635         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44636         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44637         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44638         * m4/readdir.m4: Remove; no longer needed.
44639
44640 2006-07-06  Derek R. Price  <derek@ximbiot.com>
44641         and Paul Eggert  <eggert@cs.ucla.edu>
44642
44643         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44644         Don't worry about this obsolete case any more.
44645         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
44646         directories.
44647         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44648         worry about this obsolete case any more.
44649         * lib/fts.c: Likewise.
44650         * lib/getcwd.c: Likewise.
44651         * lib/glob.h: Likewise.
44652         * lib/savedir.c: Likewise.
44653
44654 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44655
44656         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44657         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44658         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44659         needed.
44660         All uses removed.
44661         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44662         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44663         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44664         needed.
44665         * m4/getdate.m4 (gl_GETDATE): Likewise.
44666         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44667         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44668         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44669         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44670         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44671         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44672         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44673         needed.
44674
44675 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
44676
44677         * lib/memcasecmp.c: Include <limits.h>.
44678         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44679         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44680         Don't assume isdigit succeeds only on '0' through '9'.
44681
44682 2006-07-05  Eric Blake  <ebb9@byu.net>
44683
44684         * modules/getaddrinfo (Depends-on): Add snprintf.
44685
44686 2006-07-05  Eric Blake  <ebb9@byu.net>
44687
44688         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44689         to avoid 'header present but could not be compiled' on cygwin.
44690
44691 2006-07-05  Eric Blake  <ebb9@byu.net>
44692
44693         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44694         missing from netdb.h.
44695         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44696
44697 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44698
44699         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44700         no longer needed.
44701         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44702         * m4/getdate.m4 (gl_GETDATE): Likewise.
44703         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44704         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44705         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44706         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44707         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44708
44709 2006-07-05  Derek R. Price  <derek@ximbiot.com>
44710
44711         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44712         All uses of is_space replaced by isspace.
44713         * lib/exit.h: Don't talk about STDC_HEADERS.
44714         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
44715         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44716         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
44717         replaced by isprint etc.
44718         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44719         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44720         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44721         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44722         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44723         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44724
44725 2006-07-05  Bruno Haible  <bruno@clisp.org>
44726
44727         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44728         the function exists, before testing against AIX.
44729         Reported by Martin Lambers <marlam@marlam.de>.
44730
44731 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44732
44733         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44734         From Mark D. Baushke.
44735
44736 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
44737
44738         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44739         to the absolute name, not just one, to bypass Sun C 5.8's
44740         "warning: #include of /usr/include/... may be non-portable".
44741
44742 2006-07-04  Eric Blake  <ebb9@byu.net>
44743
44744         * modules/dirname-tests: New test module.
44745         * tests/test-dirname.c: New file, replacing dirname.c
44746         TEST_DIRNAME section that was recently deleted.
44747
44748 2006-07-04  Bruno Haible  <bruno@clisp.org>
44749
44750         Assume ANSI C header files and <ctype.h> functions.
44751         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44752         (mbsnwidth): Use isprint, iscntrl instead.
44753
44754 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44755
44756         Merge from coreutils.
44757         * MODULES.html.sh: Add xstrtold.
44758         * modules/xstrtold: New file.
44759         * modules/cycle-check (Files): Add lib/same-inode.h.
44760         * modules/dirname (Files): Add m4/double-slash-root.m4.
44761         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44762         * modules/mkdir-p (Files): Add lib/same-inode.h.
44763         * modules/same (Files): Add lib/same-inode.h.
44764
44765 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44766
44767         * m4/absolute-header.m4: Renamed from full-header-path.m4.
44768         This is to keep the terminology clean; POSIX talks about
44769         "absolute pathnames", not "full pathnames", but the GNU
44770         Coding Standards say to use "path" for something else;
44771         so use "absolute" to keep both sides happy.
44772         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44773         Set gl_absolute_header, not gl_full_header_path.
44774         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44775         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44776         All uses changed.
44777
44778         Merge from coreutils.
44779
44780         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44781
44782         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44783         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44784         want to require the building of c-strtod.o.
44785         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44786         needs -lm directly.
44787         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44788
44789         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
44790
44791         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44792         --as-needed option if available.  Problem reported by Albert Chin in
44793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44794         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44795         cc merely issues a bunch of annoying warnings for --as-needed
44796         (this problem was reported by Bob Proulx).  Also, try linking with
44797         -lm to detect a bug in binutils 2.16 (this problem was reported
44798         by Ralf Wildenhues).
44799
44800         2006-06-18  Jim Meyering  <jim@meyering.net>
44801
44802         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44803         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44804         macro.
44805         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44806         also check for glibc-2.4's abort-inducing bug.
44807
44808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44809         Low-probability clean-up should be to use rmdir to get rid of
44810         the just-created directory, not unlink.
44811
44812         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44813         configure fail, and request a bug report to inform us about it.
44814         Add a comment that, barring reports to the contrary, in 2007 we'll
44815         assume ftruncate is universally available.
44816
44817         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44818
44819         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44820
44821         2006-03-12  Jim Meyering  <jim@meyering.net>
44822
44823         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44824         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44825         * m4/same.m4 (gl_SAME): Likewise.
44826         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44827
44828         2006-03-11  Eric Blake  <ebb9@byu.net>
44829
44830         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44831         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44832         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44833         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44834
44835 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
44836
44837         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44838         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
44839         reported by Mark D. Baushke, one in
44840         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44841
44842         Merge from coreutils.
44843
44844         * lib/.cppi-disable: Add stdint_.h.
44845         * lib/.cvsignore: Add stdint.h.
44846
44847         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
44848
44849         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44850         both double and long double versions.
44851         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
44852         * lib/xstrtold.c: New file.
44853         * lib/xstrtod.h (xstrtold): New decl.
44854
44855         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
44856
44857         * lib/filemode.c (setst): Remove.
44858         (strmode): Rewrite to avoid setst.  This makes the code shorter,
44859         (arguably) clearer, and the generated code is a bit smaller on my
44860         Debian GNU/Linux stable x86 host.
44861
44862         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
44863
44864         * lib/filemode.c: Include "filemode.h" first, to test the interface.
44865         Assume that filemode.h includes sys/types.h and sys/stat.h.
44866         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44867         (ftypelet): Reorder to put common cases first, for efficiency.
44868         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
44869         to do 'M'.
44870         (strmode): Renamed from mode_string, and now stores 12 bytes instead
44871         of 10, for compatibility with FreeBSD.  All callers changed.
44872         (filemodestring): Now stores 12 bytes instead of 10, and sets file
44873         types that can't be deduced solely from st_mode.  First arg is now a
44874         const pointer.
44875         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44876         (strmode): Renamed from mode_string.
44877         (filemodestring): New decl.
44878         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44879         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44880         needed.
44881         (S_ISPORT, S_ISWHT): New macros, if not already defined.
44882
44883         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
44884
44885         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44886         fsusage.h now does that.  Include fsusage.h first, to test interface.
44887         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
44888         at most one method (the old code could have generated decls that
44889         didn't conform to C89, not that this was ever exercised).
44890         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44891
44892         2006-03-19  Jim Meyering  <jim@meyering.net>
44893
44894         Work even in a chroot where d_ino values for entries in "/"
44895         don't match the stat.st_ino values for the same names.
44896         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44897         number, iterate through all entries again, using lstat instead.
44898         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44899         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44900
44901         * lib/getcwd.c (__getcwd): Clarify a comment.
44902         Use memcpy in place of a call to strcpy.
44903
44904         2006-03-12  Jim Meyering  <jim@meyering.net>
44905
44906         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44907         matches that of the current directory (which we're about to chdir ".."
44908         out of), then save the dev-ino of the parent, instead.
44909
44910         * lib/same-inode.h (SAME_INODE): New file/macro.
44911         * lib/chdir-safer.c (SAME_INODE): Remove definition.
44912         Include "same-inode.h", instead.
44913         * lib/same.c: Likewise.
44914         * lib/cycle-check.h: Include "same-inode.h".
44915         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44916         * lib/cycle-check.c (SAME_INODE): Remove definition.
44917         * lib/root-dev-ino.h: Include "same-inode.h".
44918
44919         2006-03-11  Eric Blake  <ebb9@byu.net>
44920
44921         * lib/same.c (same_name): s/base_name/last_component/
44922         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44923         * lib/filenamecat.c (file_name_concat): Likewise.
44924
44925         2006-03-11  Eric Blake  <ebb9@byu.net>,
44926                     Paul Eggert  <eggert@cs.ucla.edu>
44927
44928         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44929         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44930         drive prefix.
44931         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44932         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44933         (last_component): New method.
44934         * lib/dirname.c (dir_len): Determine when drive letters need a
44935         subsequent slash.  Preserve // when it is special.
44936         (dir_name): Don't append dot when drive letter is absolute.
44937         [TEST_DIRNAME]: Move into a full-blown gnulib test.
44938         * lib/basename.c (base_name): New semantics - malloc the result.
44939         Preserve // when it is special.  Preserve relative files that look
44940         like drive letters.
44941         (base_len): Preserve // when it is special.
44942         (last_component): New method, similar to old base_name semantics.
44943         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44944         base_name.  Strip redundant slashes from ///.
44945
44946 2006-07-03  Jim Meyering  <jim@meyering.net>
44947
44948         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44949         macro is used before the first cycle_check call.
44950
44951 2006-07-03  Eric Blake  <ebb9@byu.net>
44952
44953         * modules/dirname (Depends-on): Add xstrndup.
44954
44955 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44956
44957         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44958         test cases, so that config.log is a bit easier to follow.
44959
44960 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
44961
44962         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44963         both are 64 bits, since this seems to be the tradition, and this
44964         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
44965         we ever run into a host that prefers long long to long in this
44966         case, we'll need another configure-time test.  Problem reported by
44967         Jim Meyering.
44968
44969 2006-07-02  Eric Blake  <ebb9@byu.net>
44970
44971         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44972
44973 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44974
44975         * modules/inttypes (Depends-on): No longer depends on stdint.
44976         * modules/stdint (Description): Say more about assumptions.
44977         Say that the fast types might differ.  Say macros are used.
44978         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
44979         (Makefile.am): Revise list of substituted symbols to match
44980         new stdint.m4.
44981         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44982         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44983         * tests/test-stdint.c (verify_same_types)
44984         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44985         the code conforms to C99/C89.
44986         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44987         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44988
44989 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
44990
44991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44992         but fix a bug, by requiring at least 64 bits.
44993         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44994         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44995         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
44996         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44997
44998         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44999         changes.  Make 2.59 a prerequisite.  Check and substitute for
45000         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
45001         inttypes.h.  Do not use special include files; just use the
45002         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
45003         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
45004         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
45005         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
45006         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
45007         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
45008         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
45009         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
45010         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
45011         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
45012         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
45013         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
45014         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
45015         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
45016         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
45017         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
45018         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
45019         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
45020         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
45021         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
45022         WINT_MAX.  Check for C99 conformance more strictly, by detecting
45023         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
45024         not check for things that C99 does not require, e.g., int8_t.  If
45025         a test isn't needed unless <stdint.h> isn't working, and is
45026         unlikely to be needed for any other reason, then don't do it
45027         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
45028         size_t, since we assume C89 freestanding at least.  Do not check
45029         for sig_atomic_t, wchar_t, or wint_t, since the code now does
45030         the right thing even if the types are not defined.  Instead use:
45031         (gl_STDINT_TYPE_PROPERTIES): New macro.
45032         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
45033         testing whether <sys/types.h> clashes, as Autoconf does this for
45034         us now.  All uses removed.
45035         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
45036         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
45037         (gl_CHECK_TYPE_SAME):
45038         Remove; no longer needed.
45039         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
45040         exists, since we'll return 0 anyway in that case.
45041         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
45042
45043 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
45044
45045         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
45046         possible collision with system files.
45047         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
45048         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
45049         WCHAR_MIN and WCHAR_MAX in this case.
45050         (<stddef.h>): Do not include; no longer needed.
45051         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
45052         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
45053         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
45054         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
45055         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
45056         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
45057         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
45058         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
45059         !defined(__c99))]: Include in this case too, since it's harmless
45060         now.
45061         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
45062         dangerous to do so.
45063         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
45064         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
45065         (_STDINT_MIN, _STDINT_MAX): New macros.
45066         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
45067         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
45068         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
45069         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
45070         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
45071         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
45072         macros, not typedefs; this simplifies things quite a bit.
45073         Use long int for all types narrower than int64_t.
45074         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
45075         Define in terms of long long int or int64_t or long int,
45076         not int64_t or int32_t.  This saves some compile-time testing.
45077         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
45078         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
45079         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
45080         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
45081         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
45082         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
45083         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
45084         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
45085         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
45086         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
45087         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45088         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45089         undef any previous version and define our own version, for
45090         simplicity and consistency with the new macros for types.
45091         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
45092         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
45093         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
45094         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
45095         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
45096         @WINT_T_SUFFIX@ to keep things simple here.
45097         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
45098         Simplify by assuming typical 8/16/32/64 host, since we're
45099         already doing that elsewhere anyway.
45100         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
45101         and assume long long int is 64 bits if available.  This
45102         speeds up 'configure'.
45103
45104 2006-07-01  Eric Blake  <ebb9@byu.net>
45105
45106         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
45107         Reported by Andreas Buening.
45108
45109 2006-07-01  Eric Blake  <ebb9@byu.net>
45110
45111         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
45112
45113 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
45114
45115         * lib/getaddrinfo.c: fixed typo
45116
45117 2006-06-29  Jim Meyering  <jim@meyering.net>
45118
45119         * modules/strftime (Maintainer): Add my name, since with the
45120         FPRINTFTIME changes strftime.c has forked from glibc.
45121
45122 2006-06-29  Eric Blake  <ebb9@byu.net>
45123
45124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
45125
45126 2006-06-29  Eric Blake  <ebb9@byu.net>
45127
45128         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
45129
45130 2006-06-29  Eric Blake  <ebb9@byu.net>
45131
45132         * lib/stat_.h: New file.
45133
45134 2006-06-29  Eric Blake  <ebb9@byu.net>
45135
45136         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
45137         unused static function.
45138
45139 2006-06-29  Eric Blake  <ebb9@byu.net>
45140
45141         * doc/functions.texi (Function Portability): Document missing lstat
45142         on mingw.
45143
45144 2006-06-29  Eric Blake  <ebb9@byu.net>
45145
45146         * MODULES.html.sh: Add sys_stat.
45147         * modules/sys_stat: New module.
45148         * modules/mkstemp (Depends-on): Add sys_stat.
45149
45150 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45151
45152         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
45153
45154 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45155
45156         * m4/c-bs-a.m4: Removed.
45157
45158 2006-06-29  Derek R. Price  <derek@ximbiot.com>
45159
45160         * lib/strftime.c: Assume strftime() exists.
45161
45162 2006-06-29  Derek Price  <derek@ximbiot.com>
45163
45164         * modules/c-bs-a: Removed - \a is C89.
45165         * MODULES.html.sh: Remove c-bs-a.
45166
45167 2006-06-29  Bruno Haible  <bruno@clisp.org>
45168
45169         * modules/wcwidth (License): Change to LGPL.
45170
45171 2006-06-28  Simon Josefsson  <jas@extundo.com>
45172
45173         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
45174         on _WIN32.
45175
45176         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
45177         getnameinfo.
45178
45179 2006-06-28  Simon Josefsson  <jas@extundo.com>
45180
45181         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
45182
45183 2006-06-28  Simon Josefsson  <jas@extundo.com>
45184
45185         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
45186         functions there.  It will succeed on Windows XP, but on Windows
45187         2000 and (presumably) earlier, it will fail, and use the internal
45188         re-implementation.
45189         (use_win32_p): New function.
45190         (getaddrinfo): Use strtoul on servname, to support numeric ports.
45191         Support AI_NUMERICSERV to disable getservbyname.
45192         (getnameinfo): New function, only supports
45193         NI_NUMERICHOST|NI_NUMERICSERV for now.
45194
45195         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
45196         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
45197         getnameinfo.
45198
45199 2006-06-28  Eric Blake  <ebb9@byu.net>
45200
45201         * modules/wcwidth: New file.
45202         * modules/mbchar (Depends-on): Add wcwidth.
45203         * modules/mbswidth (Depends-on): Add wcwidth.
45204         * MODULES.html.sh: Add wcwidth.
45205
45206 2006-06-28  Eric Blake  <ebb9@byu.net>
45207
45208         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
45209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
45210
45211 2006-06-28  Eric Blake  <ebb9@byu.net>
45212
45213         * lib/xvasprintf.h: Fix comments.
45214
45215 2006-06-28  Eric Blake  <ebb9@byu.net>
45216
45217         * lib/mbchar.h (wcwidth): Include wcwidth.h.
45218         * lib/mbswidth.c (wcwidth): Move from here...
45219         * lib/wcwidth.h: ...to this new file.
45220
45221 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45222
45223         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
45224
45225         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
45226         it's obsolete.
45227         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
45228
45229 2006-06-28  Derek R. Price  <derek@ximbiot.com>
45230
45231         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
45232         Autoconf 2.60 says this stuff was obsolete.
45233
45234 2006-06-28  Bruno Haible  <bruno@clisp.org>
45235
45236         * modules/wcwidth (Files): Add m4/wchar_t.m4.
45237
45238 2006-06-28  Bruno Haible  <bruno@clisp.org>
45239
45240         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
45241         gt_TYPE_WCHAR_T.
45242
45243 2006-06-28  Bruno Haible  <bruno@clisp.org>
45244
45245         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
45246         declaration for wcwidth.
45247         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
45248
45249 2006-06-28  Bruno Haible  <bruno@clisp.org>
45250
45251         * lib/mkdtemp.c [MINGW]: Include <io.h>.
45252         (mkdir): Define using _mkdir.
45253
45254 2006-06-28  Bruno Haible  <bruno@clisp.org>
45255
45256         * lib/getaddrinfo.h: Fix POSIX URL.
45257         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
45258         _WIN32.
45259         (use_win32_p): Make static.
45260         (getaddrinfo): Reject service name if it is empty or does not consist
45261         solely of decimal digits, or if its value is > 65535.
45262         (getnameinfo): Remove useless casts.
45263
45264 2006-06-27  Simon Josefsson  <jas@extundo.com>
45265
45266         * modules/sys_select: New file, suggested by Bruno Haible, Paul
45267         Eggert and Martin Lambers.
45268
45269 2006-06-27  Simon Josefsson  <jas@extundo.com>
45270
45271         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
45272         Eggert and Martin Lambers.
45273
45274 2006-06-27  Bruno Haible  <bruno@clisp.org>
45275
45276         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
45277         result to 0, not to empty.
45278         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
45279
45280 2006-06-27  Bruno Haible  <bruno@clisp.org>
45281
45282         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
45283
45284 2006-06-26  Simon Josefsson  <jas@extundo.com>
45285
45286         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
45287         present.
45288
45289 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
45290
45291         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
45292         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
45293         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
45294
45295 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
45296
45297         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
45298
45299 2006-06-26  Bruno Haible  <bruno@clisp.org>
45300
45301         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
45302
45303 2006-06-26  Bruno Haible  <bruno@clisp.org>
45304
45305         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
45306
45307 2006-06-26  Bruno Haible  <bruno@clisp.org>
45308
45309         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
45310         SGI C compiler in pre-C99 mode.
45311         Suggested by Mark D. Baushke and Larry Jones.
45312
45313 2006-06-26  Bruno Haible  <bruno@clisp.org>
45314
45315         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
45316         WCHAR_MAX.
45317         Reported by Mark D. Baushke and Larry Jones.
45318
45319 2006-06-26  Bruno Haible  <bruno@clisp.org>
45320
45321         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
45322         in pre-C99 mode.
45323         Suggested by Mark D. Baushke and Larry Jones.
45324
45325 2006-06-23  Simon Josefsson  <jas@extundo.com>
45326             Bruno Haible  <bruno@clisp.org>
45327
45328         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
45329         Emit mostlyclean-local rule.
45330         (func_emit_tests_Makefile_am): Likewise.
45331         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
45332
45333 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
45334
45335         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
45336
45337 2006-06-23  Bruno Haible  <bruno@clisp.org>
45338
45339         * tests/test-stdint.c: Update to match ISO C 99 Technical
45340         Corrigendum 1.
45341
45342 2006-06-23  Bruno Haible  <bruno@clisp.org>
45343
45344         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
45345
45346 2006-06-23  Bruno Haible  <bruno@clisp.org>
45347
45348         * lib/stdint_.h: Treat IRIX like OpenBSD.
45349
45350 2006-06-23  Bruno Haible  <bruno@clisp.org>
45351
45352         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
45353         ISO C 99 Technical Corrigendum 1.
45354
45355 2006-06-22  Simon Josefsson  <jas@extundo.com>
45356
45357         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
45358         MinGW.
45359
45360 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
45361
45362         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
45363         needed.  Some compiler complained about some of them.  Problem reported
45364         by Larry Jones in
45365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
45366
45367 2006-06-21  Simon Josefsson  <jas@extundo.com>
45368
45369         * tests/test-getaddrinfo.c: New file.
45370
45371         * modules/getaddrinfo-tests: New file.
45372
45373         * MODULES.html.sh: Add inet_pton.
45374
45375         * modules/inet_pton: New file.
45376
45377 2006-06-21  Simon Josefsson  <jas@extundo.com>
45378
45379         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
45380         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
45381         of using the (limited) gnulib implementation on Windows XP.
45382
45383         * m4/inet_pton.m4: New file.
45384
45385 2006-06-21  Simon Josefsson  <jas@extundo.com>
45386
45387         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
45388         variable.
45389
45390         * lib/socket_.h: Don't define WINVER.
45391
45392         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
45393         slightly modified to work in gnulib.
45394
45395 2006-06-21  Simon Josefsson  <jas@extundo.com>
45396
45397         * doc/gnulib.texi (Windows sockets): Add.
45398
45399 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
45400
45401         * lib/read-file.c (fread_file): Start with buffer allocation of
45402         0 bytes rather than 1 byte; this simplifies the code.
45403         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
45404         code to free buffer and save/restore errno.
45405         (internal_read_file): Remove unused local.
45406
45407 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
45408
45409         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
45410         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
45411         Problem reported by Denis Excoffier in
45412         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
45413
45414 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45415
45416         * modules/sys_socket, modules/socklen: Include sys/types since
45417         FreeBSD 4.x's sys/socket.h needs it.
45418
45419 2006-06-19  Simon Josefsson  <jas@extundo.com>
45420
45421         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
45422
45423 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
45424
45425         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
45426
45427 2006-06-19  Bruno Haible  <bruno@clisp.org>
45428
45429         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
45430         and FULL_PATH_INTTYPES_H in angle brackets.
45431         Reported by Mark D. Baushke <mdb@gnu.org>.
45432
45433 2006-06-17  Eric Blake  <ebb9@byu.net>
45434
45435         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
45436         errno.
45437
45438 2006-06-17  Bruno Haible  <bruno@clisp.org>
45439
45440         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
45441         <sys/inttypes.h>.
45442
45443 2006-06-17  Bruno Haible  <bruno@clisp.org>
45444
45445         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
45446         whether errno is declared. Assume <errno.h> declares errno.
45447
45448 2006-06-17  Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45451
45452 2006-06-17  Bruno Haible  <bruno@clisp.org>
45453
45454         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45455         problem on Solaris 2.5.1.
45456
45457 2006-06-16  Eric Blake  <ebb9@byu.net>
45458
45459         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45460         * lib/unicodeio.c [!defined errno]: Likewise.
45461         * lib/strtol.c [!defined errno]: Likewise.
45462         * lib/strtod.c [!defined errno]: Likewise.
45463
45464 2006-06-15  Eric Blake  <ebb9@byu.net>
45465
45466         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45467
45468 2006-06-15  Eric Blake  <ebb9@byu.net>
45469
45470         * config/srclist.txt (ssize_t.m4): Lose sync.
45471
45472 2006-06-15  Bruno Haible  <bruno@clisp.org>
45473
45474         * modules/stdint (Files): Include m4/full-header-path.m4,
45475         m4/size_max.m4, m4/wchar_t.m4.
45476         (Makefile.am): Many more substitutions.
45477         * modules/stdint-tests: New file.
45478         * tests/test-stdint.c: New file.
45479
45480 2006-06-15  Bruno Haible  <bruno@clisp.org>
45481
45482         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45483         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45484         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45485         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45486         gl_CHECK_TYPE_SAME): New macros.
45487
45488 2006-06-15  Bruno Haible  <bruno@clisp.org>
45489
45490         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45491
45492 2006-06-15  Bruno Haible  <bruno@clisp.org>
45493
45494         * lib/stdint_.h: Rewritten to be fully auto-configured.
45495         Fixes bug on HP-UX/IA64.
45496
45497 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
45498
45499         * lib/getdate.y (__attribute__): Don't define if already defined.
45500         Problem reported by Larry Jones.
45501         * lib/utimens.c (__attribute__): Likewise.
45502
45503 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
45504
45505         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45506         reported by Andreas Schwab.
45507
45508 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45509             Bruno Haible  <bruno@clisp.org>
45510
45511         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45512         check for the declaration of strnlen and a run test that exposes the
45513         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
45514         rpl_strndup.
45515
45516 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45517             Bruno Haible  <bruno@clisp.org>
45518
45519         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45520
45521 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45522
45523         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45524         compile test, for Tru64 4.0D.
45525
45526 2006-05-28  Karl Berry  <karl@gnu.org>
45527
45528         * config/srclist.txt (printf-args.c): lose sync.
45529
45530 2006-05-26  Martin Lambers  <marlam@marlam.de>
45531
45532         * lib/getpass.c: Updates the test for the native W32 API, and adds
45533         missing includes, thus fixing compilation warnings.
45534
45535 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45536
45537         * lib/exclude.c (exclude_fnmatch): New function.
45538         (excluded_file_name): Call exclude_fnmatch.
45539         * lib/exclude.h (excluded_file_name): New prototype
45540
45541 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
45542
45543         * lib/tempname.c (small_open, large_open): New macros.
45544         (__open, __open64) [!_LIBC]: Remove.
45545         (__gen_tempname): Use small_open and large_open instead of __open
45546         and __open64.  This fixes a portability bug on HP-UX 11.11i
45547         reported by Simon Wing-Tang in
45548         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45549
45550 2006-05-24  Bruno Haible  <bruno@clisp.org>
45551
45552         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45553         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45554         Reported by Thorsten Maerz <torte@netztorte.de> via
45555         Aaron Stone <aaron@serendipity.cx>.
45556
45557 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45558
45559         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45560         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
45561         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
45562         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45563         not really conditional on the cache.
45564         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45565
45566 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45567
45568         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45569         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45570         (my_usleep): Don't mishandle maximum value.
45571
45572 2006-05-19  Jim Meyering  <jim@meyering.net>
45573
45574         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
45575
45576 2006-05-17  Bruno Haible  <bruno@clisp.org>
45577
45578         Cygwin portability.
45579         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45580
45581 2006-05-17  Bruno Haible  <bruno@clisp.org>
45582
45583         * lib/stdint_.h: Fix recognition of Cygwin.
45584
45585 2006-05-15  Bruno Haible  <bruno@clisp.org>
45586
45587         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45588         on libtool patch by Ralf Wildenhues.
45589
45590 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
45591
45592         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45593         test for C99 conformance; (bool) 0.5 is an integer constant
45594         expression, but (bool) -0.5 is not.  Problem reported by Fedor
45595         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45596
45597 2006-05-11  Simon Josefsson  <jas@extundo.com>
45598
45599         * m4/xvasprintf.m4: Fix obvious typo.
45600
45601 2006-05-11  Jim Meyering  <jim@meyering.net>
45602
45603         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
45604         James Lemley.
45605
45606 2006-05-10  Simon Josefsson  <jas@extundo.com>
45607
45608         * lib/md4.c: Typo fix, update copyright years.
45609         (K1, K2): Don't use L because it turn computations into 64-bit on
45610         64-bit platforms.
45611
45612 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
45613
45614         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45615         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45616         unwanted sign propagation, e.g., on hosts with 64-bit int.
45617         There still are some problems with reeelly weird theoretical hosts
45618         (e.g., 33-bit int) but it's not worth worrying about now.
45619         * lib/sha1.c (rol): Likewise.
45620         (K1, K2, K3, K4): Remove unnecessary L suffix.
45621
45622 2006-05-10  Bruno Haible  <bruno@clisp.org>
45623
45624         * lib/des.c: Cast to avoid warnings.
45625
45626 2006-05-09  Bruno Haible  <bruno@clisp.org>
45627
45628         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45629         (Depends-on): Depend also on xsize, stdarg.
45630         (configure.ac): Add gl_XVASPRINTF.
45631
45632 2006-05-09  Bruno Haible  <bruno@clisp.org>
45633
45634         * m4/xvasprintf.m4: New file.
45635
45636 2006-05-09  Bruno Haible  <bruno@clisp.org>
45637
45638         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45639         (EOVERFLOW): Define fallback value.
45640         (xstrcat): New function.
45641         (xvasprintf): Recognize the special case of a string concatenation.
45642
45643 2006-05-08  Eric Blake  <ebb9@byu.net>
45644
45645         * gnulib-tool (func_version): Base copyright year on CVS date.
45646         (func_emit_copyright_notice): New function.
45647         (func_emit_lib_Makefile_am): Use it.
45648         (func_emit_tests_Makefile_am): Likewise.
45649         (func_import): Likewise.
45650
45651 2006-05-08  Bruno Haible  <bruno@clisp.org>
45652
45653         * modules/stdarg: New file.
45654         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45655
45656 2006-05-08  Bruno Haible  <bruno@clisp.org>
45657
45658         * m4/stdarg.m4: New file, from GNU gettext.
45659
45660 2006-05-08  Bruno Haible  <bruno@clisp.org>
45661
45662         * config/srclist.txt (build-aux/config.rpath): different from latest
45663         release.
45664
45665 2006-05-08  Bruno Haible  <bruno@clisp.org>
45666
45667         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45668
45669 2006-05-05  Jim Meyering  <jim@meyering.net>
45670
45671         * m4/warning.m4: New file, derived from bison's file by the same name.
45672
45673 2006-05-03  Bruno Haible  <bruno@clisp.org>
45674
45675         * lib/stdint_.h: Shorter URL.
45676         * lib/inttypes.h: Likewise.
45677
45678 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45679
45680         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45681
45682 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45683
45684         * lib/verify.h: Document the internals better.  Most of this change
45685         was written by Bruno Haible.
45686
45687 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
45688
45689         * doc/verify.texi: New file, partly based on a proposal by
45690         Bruno Haible.
45691
45692 2006-05-02  Bruno Haible  <bruno@clisp.org>
45693
45694         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45695         test from here...
45696         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45697
45698 2006-04-29  Bruno Haible  <bruno@clisp.org>
45699
45700         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45701         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45702
45703 2006-04-29  Bruno Haible  <bruno@clisp.org>
45704
45705         * gnulib-tool: Make --update option actually work.
45706
45707 2006-04-29  Bruno Haible  <bruno@clisp.org>
45708
45709         * doc/gcd.texi: New file.
45710         * doc/gnulib.texi: Include it.
45711
45712 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
45713
45714         * lib/getdate.y (get_date): When adding relative date, start with the
45715         initial time, not with the result of the first mktime call.
45716
45717 2006-04-25  Bruno Haible  <bruno@clisp.org>
45718
45719         * gnulib-tool (func_import): Output the include directives in three
45720         blocks, sorted separately.
45721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45722
45723 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45724
45725         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45726         to define main with arguments, for C++.  Reported by Eric Blake.
45727         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45728         Prefer 'int main ()' to 'int main (void)', for C++.
45729         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45730         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45731         for 'main', for C99 and C++.
45732
45733 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
45734
45735         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45736         Don't assume that exit status -1 is valid.
45737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45738         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45739         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45740         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45741         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45742         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45743         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
45744         functions can be used without declaring them, or that you can
45745         exit with status -1.
45746         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45747
45748 2006-04-24  Karl Berry  <karl@gnu.org>
45749
45750         * config/srclist.txt (longdouble.m4): sync lost.
45751
45752 2006-04-24  Eric Blake  <ebb9@byu.net>
45753
45754         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45755
45756 2006-04-24  Bruno Haible  <bruno@clisp.org>
45757
45758         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45759         poll() implementation in AIX.
45760         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45761
45762 2006-04-24  Bruno Haible  <bruno@clisp.org>
45763
45764         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45765         assigned exactly once.
45766
45767 2006-04-23  Claudio Fontana  <claudio@gnu.org>
45768             Bruno Haible  <bruno@clisp.org>
45769
45770         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45771         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45772         for AM_CPPFLAGS.
45773
45774 2006-04-23  Bruno Haible  <bruno@clisp.org>
45775
45776         * modules/copy-file: Depend on unistd.
45777         * modules/execute: Likewise.
45778         * modules/fatal-signal: Likewise.
45779         * modules/findprog: Likewise.
45780         * modules/mkdtemp : Likewise.
45781         * modules/pipe: Likewise.
45782         * modules/wait-process: Likewise.
45783
45784 2006-04-23  Bruno Haible  <bruno@clisp.org>
45785
45786         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45787         condition was already detected.
45788         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45789
45790 2006-04-23  Bruno Haible  <bruno@clisp.org>
45791
45792         * lib/copy-file.c: Include <unistd.h> unconditionally.
45793         * lib/execute.c: Likewise.
45794         * lib/fatal-signal.c: Likewise.
45795         * lib/findprog.c: Likewise.
45796         * lib/mkdtemp.c: Likewise.
45797         * lib/pipe.h: Likewise.
45798         * lib/pipe.c: Likewise.
45799         * lib/wait-process.h: Likewise.
45800
45801 2006-04-23  Bruno Haible  <bruno@clisp.org>
45802
45803         * gnulib-tool (func_usage): Fix --import description. Document
45804         --update.
45805         (func_import): Create temporary file in a temporary directory, if
45806         --dry-run is specified. Silence errors from 'grep' when there are no
45807         m4 files in $m4dir.
45808         (func_create_testdir): Silence errors from 'grep' when there are no
45809         m4 files in $m4dir.
45810         Reported by Karl Berry <karl@freefriends.org>.
45811
45812 2006-04-20  Bruno Haible  <bruno@clisp.org>
45813
45814         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45815         one argument, so that the code will be portable to Autoconf 2.60.
45816         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45817         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45818         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45819
45820 2006-04-19  Derek Price  <derek@ximbiot.com>
45821             Eric Blake  <ebb9@byu.net>
45822
45823         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45824         rather than "/full/path.h".  Update comment to match.  Shorten &
45825         generalize m4_translit call via AS_TR_CPP.
45826
45827 2006-04-19  Derek Price  <derek@ximbiot.com>
45828             Eric Blake  <ebb9@byu.net>
45829
45830         * lib/inttypes.h: Correct grammar in comment.
45831
45832 2006-04-18  Derek Price  <derek@ximbiot.com>
45833             Paul Eggert  <eggert@cs.ucla.edu>
45834
45835         * modules/inttypes: New file.
45836         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45837
45838 2006-04-18  Derek Price  <derek@ximbiot.com>
45839             Paul Eggert  <eggert@cs.ucla.edu>
45840
45841         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45842         New files.
45843
45844 2006-04-18  Derek Price  <derek@ximbiot.com>
45845             Paul Eggert  <eggert@cs.ucla.edu>
45846
45847         * lib/inttypes.h: New file.
45848         * lib/strtoimax.c: Assume <inttypes.h>.
45849
45850 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
45851
45852         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45853         isn't mounted.  Problem reported by Kir Kolyshkin.
45854
45855 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
45856
45857         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45858         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
45859         Derek R. Price.
45860         * lib/regex.h (RE_DUP_MAX): Update comment to match current
45861         implementation.
45862
45863 2006-04-12  Eric Blake  <ebb9@byu.net>
45864
45865         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45866         is now done automatically by the corresponding Autoconf macro.
45867
45868 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
45869
45870         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45871         time_r.h.
45872
45873 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
45874
45875         Merge regex changes from libc, removing some of our
45876         POSIX-conformance changes that were rejected and redoing them in a
45877         less-intrusive way.
45878
45879         * lib/regcomp.c (re_compile_internal, init_dfa):
45880         Length arg is now size_t, not Idx.  All uses changed.
45881         (peek_token): Forward decl now says internal_function.
45882         (__re_error_msgid, __re_error_msgid_idx):
45883         Now static rather than extern with attribute_hidden.
45884         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45885         For some reason libc prefers K&R style defns for external functions.
45886         (regerror) [!defined _LIBC]: Likewise.
45887         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45888         (seek_collating_symbol_entry, lookup_collation_sequence_value):
45889         (build_range_exp, build_collating_symbol):
45890         Use K&R-style defn.
45891         (re_compile_fastmap): Use '\0' to memset, not 0.
45892         (utf8_sb_map): Make the calculations more obvious.
45893         (init_dfa, parse_bracket_exp, build_charclass_op):
45894         Call calloc and cast result, as glibc does.
45895         (init_word_char, fetch_token, peek_token, peek_token_bracket):
45896         (build_range_exp, build_collating_symbol):
45897         Now internal functions.
45898
45899         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45900
45901         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
45902         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45903         Don't depend on VMS; depend on __VMS instead, for POSIX
45904         namespace cleanness.
45905         (regoff_t): Define to ssize_t, not long int.
45906
45907         Remove the REG_ macros named below.  Instead, make the old names
45908         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45909         __USE_GNU_REGEX.
45910         (REG_BACKSLASH_ESCAPE_IN_LISTS):
45911         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45912         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45913         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45914         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45915         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45916         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45917         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45918         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45919         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45920         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45921         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45922         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45923         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45924         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45925         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45926         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45927         (REG_NREGS):
45928         Remove.  All uses replaced by the old RE_* names.
45929         (RE_BACKSLASH_ESCAPE_IN_LISTS):
45930         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45931         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45932         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45933         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45934         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45935         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45936         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45937         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45938         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45939         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45940         Don't bother having these macros be independent of each others'
45941         values, since they no longer exist in the POSIX name space.
45942
45943         Rename the following member names back to their old names,
45944         unless !__USE_GNU_REGEX.  All uses changed back.
45945         (buffer): Renamed from re_buffer.
45946         (allocated): Renamed from re_allocated.
45947         (used): Renamed from re_used.
45948         (syntax): Renamed from re_syntax.
45949         (fastmap): Renamed from re_fastmap.
45950         (translate): Renamed from re_translate.
45951         (can_be_null): Renamed from re_can_be_null.
45952         (regs_allocated): Renamed from re_regs_allocated.
45953         (fastmap_accurate): Renamed from re_fastmap_accurate.
45954         (no_sub): Renamed from re_no_sub.
45955         (not_bol): Renamed from re_not_bol.
45956         (not_eol): Renamed from re_not_eol.
45957         (newline_anchor): Renamed from re_newline_anchor.
45958         (num_regs): Renamed from rm_num_regs.
45959         (start): Renamed from rm_start.
45960         (end): Renamed from rm_end.
45961
45962         (free_state): Move up a bit.
45963
45964         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45965         #define to be empty.
45966         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45967         when that is what is intended.
45968         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45969         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45970         (MAX): New macro.
45971         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45972         All uses changed back to re_malloc, etc.  It's now the caller's
45973         responsibility to check for overflow; all callers changed.
45974         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45975         (re_x2nrealloc): Remove.
45976         (free_state): Remove decl.
45977
45978         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45979         (re_set_registers, re_exec):
45980         Use K&R-style defn.
45981
45982         2006-01-31  Roland McGrath  <roland@redhat.com>
45983
45984         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45985         Reported by Mike Frysinger <vapier@gentoo.org>.
45986
45987         2006-01-15  Andreas Jaeger  <aj@suse.de>
45988
45989         [BZ #1950]
45990         * lib/regex_internal.c (re_string_reconstruct): Adjust for
45991         build_wcs_upper_buffer change.
45992         (build_wcs_upper_buffer): Change return type.
45993
45994         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
45995
45996         * lib/regex_internal.h: Include <stdint.h> if available.
45997
45998         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
45999
46000         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
46001
46002         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46003
46004         * lib/regcomp.c: Adjust for changed secondary hash function.
46005
46006         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
46007
46008         * lib/regex.h: Pretty printing.
46009         Clean up namespace a bit.
46010
46011         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
46012
46013         * lib/regexec.c (update_cur_sifted_state, check_arrival,
46014         check_arrival_add_next_nodes): Avoid using uninitialized variable.
46015
46016         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46017                     Ulrich Drepper  <drepper@redhat.com>
46018
46019         [BZ #1302]
46020         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
46021         changed.
46022         (bitset_word_t): Renamed from bitset_word.  All uses changed.
46023
46024         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
46025
46026         [BZ #281]
46027         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
46028         * lib/regcomp.c: Remove unnecessary uses of
46029         unsigned RE_TRANSLATE_TYPE.
46030         * lib/regex_internal.h: Likewise.
46031         * lib/regex_internal.c: Likewise.
46032         * lib/regexec.c: Likewise.
46033         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
46034
46035         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
46036
46037         * lib/regexec.c (find_recover_state): Remove unnecessary
46038         initialization.
46039         (transit_state_bkref): Make DFA a const pointer.
46040         (get_subexp): Likewise.
46041         (check_arrival): Likewise.
46042         (update_cur_sifted_state): Likewise.
46043         (re_search_internal): Likewise.
46044         (prune_impossible_nodes): Likewise.
46045         (acquire_init_state_context): Likewise.
46046         (proceed_next_node): Likewise.
46047         (set_regs): Likewise.
46048         (free_fail_stack_return): Likewise.
46049         (check_arrival_expand_ecl): Mark DFA parameter as const.
46050         (check_arrival_expand_ecl_sub): Likewise.
46051         (check_subexp_limits): Likewise.
46052         (sub_epsilon_src_nodes):  Likewise.
46053         (add_epsilon_src_nodes):  Likewise.
46054         (merge_state_array): Likewise.
46055         (update_regs): Likewise.
46056         (build_trtable): Likewise.
46057         (sift_states_backward): Mark MCTX parameter as const.
46058         (build_sifted_states): Likewise.
46059         (update_cur_sifted_state): Likewise.
46060         (sift_states_mkref): Likewise.
46061         (check_arrival_expand_ecl): Mark eclosure as const.
46062         (check_dst_limits_calc_pos_1): Likewise.
46063         * lib/regex_internal.h (re_match_context_t): Make dfa a const
46064         pointer.
46065
46066         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
46067
46068         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
46069         (transit_state_sb): Likewise.
46070         (transit_state_mb): Likewise.
46071         (sift_states_iter_mb): Likewise.
46072         (check_arrival_add_next_nodes): Likewise.
46073         (check_node_accept_bytes): Change first parameter to pointer-to-const.
46074         [_LIBC] (re_search_2_stub): Use mempcpy.
46075
46076         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
46077         mbrtowc for very simple UTF-8 case.
46078
46079         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
46080         a pointer-to-const.
46081         (re_acquire_state_context): Likewise.
46082         * lib/regex_internal.h: Adjust prototypes.
46083
46084         * lib/regex.c: Prevent using C++ compilers.
46085
46086         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
46087         (re_acquire_state_context): Likewise.
46088
46089 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46090
46091         * modules/regex (Depends-on): Add ssize_t.
46092
46093 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46094
46095         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
46096         translation table.
46097
46098 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
46099
46100         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
46101
46102 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
46103             Bruno Haible  <bruno@clisp.org>
46104
46105         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
46106         <sys/types.h> and <inttypes.h>.
46107
46108 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46109
46110         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
46111         `__error_t_defined', so argp.h will not typedef the former.
46112
46113 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46114
46115         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
46116         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
46117         glibc names.  Even if glibc is changed to conform to POSIX, the
46118         traditional names will be available anyway, since regex depends on
46119         the extensions module.  Also, fix a longstanding typo in the
46120         implementation of Spencer ERE test #75 from grep 2.3.  Problems
46121         reported by Emanuele Giaquinta.  Also, change sense of cached
46122         variable, so that the message makes sense.
46123
46124 2006-03-24  Simon Josefsson  <jas@extundo.com>
46125
46126         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
46127         including some doc fixes.
46128         (base64_encode_alloc): Fix +1 bug on allocation failures.
46129
46130 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46131
46132         * lib/base64.c (base64_encode): Do not read past end of array with
46133         unsanitized input on systems with CHAR_BIT > 8.
46134
46135 2006-03-24  Eric Blake  <ebb9@byu.net>
46136
46137         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
46138
46139 2006-03-22  Karl Berry  <karl@gnu.org>
46140
46141         * config/srclist.txt (*setenv.[ch]): get from coreutils.
46142         * config/srclistvars.sh (COREUTILS): new var.
46143
46144 2006-03-17  Jim Meyering  <jim@meyering.net>
46145
46146         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
46147         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
46148
46149 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46150
46151         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
46152         no longer needs it.  Instead, check that regoff_t is as least
46153         as wide as ptrdiff_t.
46154
46155         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
46156         so that our regex.h stays compatible with the installed regex.
46157         This is helpful for installers who configure --without-included-regex.
46158         Problem reported by Emanuele Giaquinta.
46159
46160 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
46161
46162         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
46163         Typedef to long int, not to off_, as POSIX will likely change
46164         in that direction.
46165
46166 2006-03-15  Eric Blake  <ebb9@byu.net>
46167
46168         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
46169
46170 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46171
46172         * lib/argp-help.c (validate_uparams): Fix typo
46173         * lib/argp-parse.c (argp_default_options): Consistently begin help
46174         messages with a lowercase letter.
46175
46176 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
46177
46178         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
46179         overrun buffers and shouldn't be used (much as gets shouldn't be
46180         used).
46181         * lib/time_r.c (asctime_r, ctime_r): Likewise.
46182
46183 2006-03-08  Simon Josefsson  <jas@extundo.com>
46184
46185         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
46186         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46187
46188 2006-03-08  Simon Josefsson  <jas@extundo.com>
46189
46190         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
46191         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46192
46193 2006-03-08  Simon Josefsson  <jas@extundo.com>
46194
46195         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
46196         signal that configure disabled the device.
46197
46198 2006-03-08  Simon Josefsson  <jas@extundo.com>
46199
46200         * build-aux/maint.mk: Fix refresh-po, to handle no translated
46201         languages.
46202
46203 2006-03-07  Simon Josefsson  <jas@extundo.com>
46204
46205         * modules/getopt (Depends-on): Add unistd.
46206
46207         * modules/unistd: New file.
46208
46209 2006-03-07  Simon Josefsson  <jas@extundo.com>
46210
46211         * modules/gc-random: New file.
46212
46213 2006-03-07  Simon Josefsson  <jas@extundo.com>
46214
46215         * m4/unistd_h.m4: New file.
46216
46217 2006-03-07  Simon Josefsson  <jas@extundo.com>
46218
46219         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
46220         test to be side-effect free by storing the result in the cache
46221         variable gl_cv_lib_readline, and moving the assignment of
46222         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
46223         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46224
46225 2006-03-07  Simon Josefsson  <jas@extundo.com>
46226
46227         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
46228         error on missing devices (the functions will return an error).
46229
46230         * m4/gc.m4: Move random stuff to gc-random.m4
46231
46232 2006-03-07  Simon Josefsson  <jas@extundo.com>
46233
46234         * lib/unistd_.h: New file.
46235
46236 2006-03-07  Simon Josefsson  <jas@extundo.com>
46237
46238         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
46239
46240 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46241
46242         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
46243         Problem reported by Juan Manuel Guerrero.
46244
46245 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46246
46247         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
46248         the unistd module.
46249         * lib/getlogin_r.c: Likewise.
46250         * lib/getlogin_r.h: Likewise.
46251         * lib/glob.c: Likewise.
46252         * lib/pagealign_alloc.c: Likewise.
46253         * lib/unistd_.h: Remove; no longer needed.
46254
46255 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
46256
46257         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46258         Add unistd.
46259         * modules/c-stack (Depends-on): Add unistd.
46260         * modules/getlogin_r: Likewise.
46261         * modules/glob: Likewise.
46262         * modules/pagealign_alloc: Likewise.
46263         * modules/unistd (Files): Remove lib/unistd_.h.
46264         (EXTRA_DIST): Remove.
46265         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
46266         need unistd_.h.
46267         (MOSTLYCLEANFILES): Remove unistd.h-t.
46268
46269 2006-03-03  Simon Josefsson  <jas@extundo.com>
46270
46271         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
46272
46273 2006-03-03  Simon Josefsson  <jas@extundo.com>
46274
46275         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
46276         libidn and bison.
46277
46278 2006-03-03  Simon Josefsson  <jas@extundo.com>
46279
46280         * build-aux/maint.mk: Add indent target.
46281
46282 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
46283
46284         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
46285         our replacement poll.h in any case, to avoid a differing
46286         declaration from a system header.  Seen on AIX.
46287
46288 2006-03-01  Simon Josefsson  <jas@extundo.com>
46289
46290         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
46291         <kasal@ucw.cz>.
46292
46293 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46294
46295         * modules/gettime (Depends-on): Add extensions module.
46296         * modules/nanosleep (Depends-on): Likewise.
46297         * modules/settime (Depends-on): Likewise.
46298
46299 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
46300
46301         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
46302         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
46303         pedantically.
46304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46305         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
46306
46307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
46308         not "==".  Reported by Ralf Wildenhues.
46309
46310 2006-03-01  Karl Berry  <karl@gnu.org>
46311
46312         * doc/Copyright/request-*: new files, synced from gnuorg.
46313
46314 2006-03-01  Karl Berry  <karl@gnu.org>
46315
46316         * config/srclist.txt (Copyright/*): new entries.
46317
46318 2006-02-28  Simon Josefsson  <jas@extundo.com>
46319
46320         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
46321
46322 2006-02-27  Simon Josefsson  <jas@extundo.com>
46323
46324         * lib/base64.h: Indent #define's.  From Jim Meyering
46325         <jim@meyering.net>.
46326
46327 2006-02-27  Jim Meyering  <jim@meyering.net>
46328
46329         Revert the change of 2006-02-24, so these files can continue
46330         to be sync'd from gettext.
46331         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
46332         of `config.h'.
46333
46334 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
46335
46336         * modules/intprops: New file.
46337         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
46338         Add intprops.
46339         * modules/getloadavg (Files): Remove lib/intprops.h.
46340         (Depends-on): Add intprops.
46341         * modules/human: Likewise.
46342         * modules/inttostr: Likewise.
46343         * modules/openat: Likewise.
46344         * modules/sig2str: Likewise.
46345         * modules/userspec: Likewise.
46346         * modules/utimecmp: Likewise.
46347         * modules/xnanosleep: Likewise.
46348         * modules/xstrtol: Likewise.
46349
46350 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
46351
46352         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
46353         * modules/lock-tests (TESTS): Use $(EXEEXT).
46354         * modules/tls-tests: Likewise.
46355         * modules/argp-tests: Likewise.
46356         (check_PROGRAMS): New var, replacing...
46357         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
46358
46359 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46360
46361         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
46362         `config.h'.
46363
46364 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
46365
46366         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
46367
46368 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46369
46370         Sync from coreutils.
46371         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
46372         gl_CHDIR_SAFER.
46373
46374 2006-02-22  Jim Meyering  <jim@meyering.net>
46375
46376         Sync from coreutils.
46377         * m4/chdir-safer.m4: New file.
46378
46379 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
46380
46381         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
46382         AT_FDCWD exceeds INT_MAX.
46383         * lib/openat.h (AT_FDCWD): Likewise.
46384
46385 2006-02-17  Eric Blake  <address@hidden>
46386
46387         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
46388
46389 2006-02-16  Simon Josefsson  <jas@extundo.com>
46390
46391         * modules/getaddrinfo (Depends-on): Add sys_socket.
46392
46393 2006-02-15  Simon Josefsson  <jas@extundo.com>
46394
46395         * build-aux/maint.mk: Add dsyntax-check rule.
46396
46397 2006-02-15  Eric Blake  <ebb9@byu.net>
46398
46399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
46400         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
46401         'present but cannot compile' warnings on cygwin.
46402         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
46403         use ws2tcpip.h if sys/socket.h works.
46404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
46405         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
46406
46407 2006-02-14  Simon Josefsson  <jas@extundo.com>
46408
46409         * modules/maintainer-makefile (Files): Rename.
46410
46411         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
46412         and (the local) Makefile.cfg to maint-cfg.mk.
46413
46414         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
46415         to the latter.
46416
46417         * modules/maintainer-makefile: New module.
46418
46419         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
46420         severaly stripped to make it possible to build it up from scratch
46421         with reliable tests.
46422
46423         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
46424         fixes to permit overriding the default actions when configure and
46425         makefile are not available.
46426
46427 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46428
46429         Sync from coreutils.
46430         * modules/lstat (Depends-on): Don't depend on xalloc.
46431         (License): Change from GPL to LGPL, since this is now simply a
46432         replacement for a libc function.
46433
46434 2006-02-14  Jim Meyering  <jim@meyering.net>
46435
46436         Sync from coreutils.
46437
46438         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
46439         failure on deficient systems, and simplify gnulib lgpl dependencies.
46440         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
46441         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
46442
46443         * lib/xalloc-die.c: Remove unused definition of N_.
46444
46445 2006-02-14  Jim Meyering  <jim@meyering.net>
46446
46447         Sync from coreutils.
46448         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46449         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46450         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46451         double-quote uses of that variable, to accommodate the rare case in
46452         which getmntent is available in none of the libraries checked.  This
46453         happens at least on FreeBSD 5.0.
46454
46455 2006-02-13  Simon Josefsson  <jas@extundo.com>
46456
46457         * gnulib-tool (Usage): Fix --import, from
46458         karl@freefriends.org (Karl Berry).
46459
46460 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
46461
46462         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46463
46464 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
46465
46466         * lib/argp-namefrob.h: Restore changes accidentally lost during the
46467         "autoupdate" on 2005-12-12.
46468
46469 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46470
46471         * modules/closeout (Depends-on): Remove atexit.
46472
46473 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
46474
46475         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46476         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46477
46478 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46479
46480         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46481         __EXTENSIONS__ if this causes compilation to fail.  Problem
46482         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46483         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46484
46485 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
46486
46487         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46488         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46490         All uses changed.
46491
46492 2006-01-26  Simon Josefsson  <jas@extundo.com>
46493
46494         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46495         prototype is visible on mingw32.
46496
46497         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46498         for mingw32.
46499
46500         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46501         mingw32).
46502
46503 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
46504
46505         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
46506         attempt to open for write; this always fails, at least on POSIX
46507         hosts.  This reinstates the 2006-01-09 change, which was
46508         inadvertently removed.
46509
46510 2006-01-26  Bruno Haible  <bruno@clisp.org>
46511
46512         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46513         Reported by Paul Eggert.
46514
46515 2006-01-26  Bruno Haible  <bruno@clisp.org>
46516             Paul Eggert  <eggert@cs.ucla.edu>
46517
46518         * lib/stdbool_.h (_Bool)
46519         [(! (defined __cplusplus || defined __BEOS__)
46520           && !defined __GNUC__
46521           && !(defined __HP_cc || defined __xlc__
46522                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46523                || defined __sgi))]:
46524         #define to signed char in these cases too; this simplifies
46525         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46526         etc., separately) and makes it more conservative.
46527
46528 2006-01-25  Simon Josefsson  <jas@extundo.com>
46529
46530         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46531         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
46532         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
46533
46534 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46535
46536         * lib/argp-namefrob.h: Bugfix. Remove stray #
46537
46538 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
46539
46540         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46541         so that we test the test.
46542         Check for yet another HP-UX cc bug involving *bool |= bool.
46543
46544 2006-01-25  Karl Berry  <karl@gnu.org>
46545
46546         * config/srclist.txt (vasnprintf.c): sync lost.
46547
46548 2006-01-25  Jim Meyering  <jim@meyering.net>
46549
46550         Sync from the stable (b5) branch of coreutils:
46551
46552         * lib/fts.c (fts_children): Don't let close() clobber errno from
46553         failed fchdir().
46554
46555         * lib/fts.c (fts_stat): When following a symlink-to-directory,
46556         don't necessarily interpret stat-fails+lstat-succeeds as indicating
46557         a dangling symlink.  That can also happen at least for ELOOP.
46558         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46559         FYI, this bug predates the inclusion of fts.c in coreutils.
46560
46561         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46562         in their own block, so pre-c99 compilers don't object.
46563
46564         Avoid the double-free (first in fts_read, second in fts_close) that
46565         would occur when an `active' directory is made inaccessible (e.g.,
46566         via chmod a-x) during a traversal.
46567         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46568         before returning.  Reproduce this failure by
46569         mkdir -p a/b; cd a; chmod a-x . b
46570         Reported by Stavros Passas.
46571
46572 2006-01-25  Jim Meyering  <jim@meyering.net>
46573
46574         * lib/fileblocks.c: Remove more useless parentheses.
46575         * lib/readutmp.h: Likewise.
46576
46577 2006-01-25  Bruno Haible  <bruno@clisp.org>
46578
46579         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46580         warnings.
46581         Reported by Paul Eggert.
46582
46583 2006-01-25  Bruno Haible  <bruno@clisp.org>
46584
46585         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46586         rid of a trap command. For Solaris sh.
46587         Reported by Mark D. Baushke <mdb@gnu.org>.
46588
46589 2006-01-24  Simon Josefsson  <jas@extundo.com>
46590
46591         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46592         Bruno.
46593
46594 2006-01-24  Karl Berry  <karl@gnu.org>
46595
46596         * config/srclist.txt (argp-namefrob.h): sync lost.
46597
46598 2006-01-24  Jim Meyering  <jim@meyering.net>
46599
46600         * modules/openat (Files): Add lib/intprops.h.
46601         From Mark D. Baushke.
46602
46603 2006-01-24  Jim Meyering  <jim@meyering.net>
46604
46605         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46606         Reported by Mark D. Baushke.
46607
46608 2006-01-24  Jim Meyering  <jim@meyering.net>
46609
46610         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46611
46612 2006-01-24  Bruno Haible  <bruno@clisp.org>
46613
46614         * modules/strnlen (Maintainer): Change from glibc to all.
46615
46616 2006-01-24  Bruno Haible  <bruno@clisp.org>
46617
46618         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46619         Patch by Paul Eggert.
46620
46621 2006-01-24  Bruno Haible  <bruno@clisp.org>
46622
46623         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46624         already has it.
46625         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
46626         2005-11-26.
46627
46628         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46629         'signed char' to avoid problems with the built-in _Bool type.
46630         Reported by Paul Eggert on 2005-11-26.
46631
46632 2006-01-24  Bruno Haible  <bruno@clisp.org>
46633
46634         * gnulib-tool (func_import): Avoid constructing complicated sed
46635         expressions inside backquote.
46636         Report and solution by Mark D. Baushke <mdb@gnu.org>.
46637
46638 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
46639
46640         These changes imported from libc.
46641         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46642         test and two separate function calls.
46643         * lib/strndup.c (__strndup): Add libc_hidden_def.
46644
46645 2006-01-23  Simon Josefsson  <jas@extundo.com>
46646
46647         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46648         Remove the test_*_SOURCES variable: automake infers it by default.
46649         * modules/tls-tests: Likewise.
46650
46651 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46652
46653         Work around porting bugs reported by Dieter in
46654         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46655         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46656         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46657         Include "getopt.h" first, to check interface.
46658         (getenv): Declare only if defined HAVE_DECL_GETENV &&
46659         !HAVE_DECL_GETENV.
46660         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46661         (__strndup): Revert to K&R-style function dfns, the glibc style.
46662         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46663         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46664         Include strnlen.h first, to get prototype properly.
46665         (strnlen): Renamed from __strnlen.
46666         Remove weak alias.
46667
46668 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46669
46670         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46671
46672 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46673
46674         * config/srclist.txt: Adjust to reflect glibc reorganization.
46675         This affects only comments.
46676
46677 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46678
46679          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46680          Reported by Bruce Korb <bkorb@gnu.org>.
46681
46682 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46683
46684         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46685         to pacify gcc -Wswitch-default.
46686
46687 2006-01-22  Bruno Haible  <bruno@clisp.org>
46688
46689         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46690         temporary buffer for sprintf, take into account the precision also
46691         for 'd', 'i', 'u', 'o', 'x', 'X'.
46692
46693 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46694
46695         * modules/argp-tests: New module
46696         * tests/test-argp.c: New file
46697         * tests/test-argp-2.sh: New file
46698
46699 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
46700
46701         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46702         (__argp_base_name): Removed
46703         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46704         typo.
46705         (__argp_base_name): Provide macro definition or extern declaration
46706         depending on the configuration
46707
46708 2006-01-20  Simon Josefsson  <jas@extundo.com>
46709
46710         * modules/inet_ntop (Depends-on): Depend on sys_socket.
46711
46712 2006-01-20  Simon Josefsson  <jas@extundo.com>
46713
46714         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46715
46716 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
46717
46718         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46719         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46720         Suggested by Bruno Haible.
46721
46722 2006-01-20  Karl Berry  <karl@gnu.org>
46723
46724         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46725         until changes propagate, I guess.
46726
46727 2006-01-19  Simon Josefsson  <jas@extundo.com>
46728
46729         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46730
46731 2006-01-19  Simon Josefsson  <jas@extundo.com>
46732
46733         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46734
46735 2006-01-19  Simon Josefsson  <jas@extundo.com>
46736
46737         * gnulib-tool: Set check_PROGRAMS.
46738
46739         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46740         modules/des-tests, modules/gc-arcfour-tests,
46741         modules/gc-arctwo-tests, modules/gc-des-tests,
46742         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46743         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46744         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46745         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46746         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46747         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46748         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46749         test_*_SOURCES.
46750
46751 2006-01-18  Simon Josefsson  <jas@extundo.com>
46752
46753         * modules/socklen (Depends-on): Depend on sys_socket.
46754
46755 2006-01-18  Simon Josefsson  <jas@extundo.com>
46756
46757         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46758         modules/des-tests, modules/gc-arcfour-tests,
46759         modules/gc-arctwo-tests, modules/gc-des-tests,
46760         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46761         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46762         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46763         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46764         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46765         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46766         $(EXEEXT) to automake TESTS variable, for mingw32.
46767
46768 2006-01-17  Simon Josefsson  <jas@extundo.com>
46769
46770         * modules/socklen (Include): Need sys/socket.h.
46771
46772 2006-01-17  Bruno Haible  <bruno@clisp.org>
46773
46774         * modules/ssize_t (Include): Add <sys/types.h>.
46775
46776 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
46777
46778         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46779         it's not portable and it doesn't work with cross-compiles.
46780         Problem reported by Bruno Haible.  Fix missing-$ typo in
46781         'test "gl_cv_ignore_unused_libraries" ...' that prevented
46782         -zignore from being used with Sun's C compiler.
46783
46784 2006-01-12  Simon Josefsson  <jas@extundo.com>
46785
46786         * lib/base64.c: Fix warning, reported by Bruno Haible
46787         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46788
46789 2006-01-12  Bruno Haible  <bruno@clisp.org>
46790
46791         * modules/ldd: New file.
46792         * build-aux/ldd.sh.in: New file.
46793         * MODULES.html.sh (Support for building libraries and executables): Add
46794         ldd.
46795
46796 2006-01-12  Bruno Haible  <bruno@clisp.org>
46797
46798         * m4/ldd.m4: New file.
46799
46800 2006-01-12  Bruno Haible  <bruno@clisp.org>
46801
46802         * gnulib-tool (func_import, func_create_testdir): Don't go into an
46803         endless loop while replacing $auxdir with build-aux.
46804
46805 2006-01-11  Simon Josefsson  <jas@extundo.com>
46806
46807         * lib/stdint_.h (SIZE_MAX): Add missing (.
46808
46809 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
46810
46811         Sync from coreutils.
46812         * lib/md5.c: Fix commentary typos.
46813         (alignof, UNALIGNED_P): No need for a GCC-specific version.
46814         * lib/md5.h (__attribute__): Remove; unused.
46815         * lib/sha1.c: Fix commentary to match md5 better.
46816         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46817         so that we don't need to worry about alignment.  All uses changed.
46818         This merges the 2005-10-28 md5 change into sha1.
46819
46820 2006-01-11  Jim Meyering  <jim@meyering.net>
46821
46822         Sync from coreutils.
46823         * lib/md5.c (OP): Fix spacing.
46824
46825 2006-01-11  Bruno Haible  <bruno@clisp.org>
46826
46827         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46828         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46829         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46830
46831 2006-01-11  Bruno Haible  <bruno@clisp.org>
46832
46833         Ensure automatic ordering between gl_LOCK and gl_ARGP.
46834         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46835         the "early" section as well.
46836
46837 2006-01-11  Bruno Haible  <bruno@clisp.org>
46838
46839         Avoid "ar: no archive members specified" error on MacOS X.
46840         * gnulib-tool (func_modules_add_dummy): New function.
46841         (func_import, func_create_testdir): Invoke it.
46842
46843 2006-01-11  Bruno Haible  <bruno@clisp.org>
46844
46845         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46846         with $auxdir in AC_CONFIG_FILES statements.
46847
46848 2006-01-11  Bruno Haible  <bruno@clisp.org>
46849
46850         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46851         Initialize also noinst_HEADERS to empty.
46852
46853 2006-01-11  Bruno Haible  <bruno@clisp.org>
46854
46855         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46856         variables.
46857         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46858         autoreconf.
46859
46860 2006-01-11  Bruno Haible  <bruno@clisp.org>
46861
46862         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46863         overridable by the user.
46864         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46865
46866 2006-01-10  Simon Josefsson  <jas@extundo.com>
46867
46868         * modules/sys_socket: New file.
46869
46870 2006-01-10  Simon Josefsson  <jas@extundo.com>
46871
46872         * m4/sys_socket_h.m4: New file.
46873
46874 2006-01-10  Simon Josefsson  <jas@extundo.com>
46875
46876         * lib/socket_.h: New file.
46877
46878 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46879
46880         * modules/readutmp (Maintainer): Add myself.
46881
46882 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46883
46884         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46885         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
46886         People who are still concerned with buggy memcmp implementations
46887         can invoke gl_FUNC_MEMCMP themselves.
46888
46889 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46890
46891         * lib/regex_internal.h (BITSET_WORD_BITS):
46892         Work around a bug in 64-bit PGC (before version 6.1-2), where the
46893         preprocessor mishandles large unsigned values as if they were signed.
46894         Problem reported by Claudio Fontana in
46895         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46896
46897 2006-01-10  Jim Meyering  <jim@meyering.net>
46898
46899         Avoid the double-free (first in fts_read, second in fts_close) that
46900         would occur when an `active' directory is made inaccessible (e.g.,
46901         via chmod a-x) during a traversal.
46902         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46903         before returning.  Reproduce this failure by
46904         mkdir -p a/b; cd a; chmod a-x . b
46905         Reported by Stavros Passas.
46906
46907         Sync from coreutils.
46908         * lib/sha1.c: Tweak grammar in a comment.
46909
46910 2006-01-10  Jim Meyering  <jim@meyering.net>
46911
46912         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46913         Patch by Joerg Sonnenberger.
46914
46915 2006-01-10  Bruno Haible  <bruno@clisp.org>
46916
46917         * modules/readutmp: Depend on module free.
46918         * modules/strtok_r: Depend on module restrict.
46919
46920 2006-01-10  Bruno Haible  <bruno@clisp.org>
46921
46922         * modules/gettext (configure.ac): Add an invocation of
46923         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46924
46925 2006-01-10  Bruno Haible  <bruno@clisp.org>
46926
46927         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46928         Reported by Werner Lemberg <wl@gnu.org>.
46929
46930 2006-01-10  Bruno Haible  <bruno@clisp.org>
46931
46932         * lib/localcharset.c: Update from GNU gettext.
46933
46934 2006-01-10  Bruno Haible  <bruno@clisp.org>
46935
46936         * lib/argp.h (__const): Remove macro. Use const instead.
46937         * lib/argp-fmtstream.h (__const): Likewise.
46938         * lib/glob_.h (__const): Remove macro.
46939         * lib/glob-libc.h: Use const instead of __const.
46940
46941 2006-01-10  Bruno Haible  <bruno@clisp.org>
46942
46943         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46944         variable.
46945         Needed to avoid an automake error regarding the 'gettext' module.
46946
46947 2006-01-09  Simon Josefsson  <jas@extundo.com>
46948
46949         * modules/inet_ntop (Depends-on): Add restrict.
46950
46951 2006-01-09  Simon Josefsson  <jas@extundo.com>
46952
46953         * modules/gc-rijndael-tests (License): Put under LGPL.
46954
46955         * modules/gc-des-tests (License): Likewise.
46956
46957         * modules/gc-arcfour-tests (License): Likewise.
46958
46959         * modules/gc-arctwo-tests (License): Likewise.
46960
46961         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46962
46963         * modules/gc-hmac-sha1-tests (Files): Likewise.
46964
46965         * modules/gc-hmac-md5-tests (License): Likewise.
46966
46967         * modules/gc-sha1-tests (License): Likewise.
46968
46969         * modules/gc-md5-tests (License): Likewise.
46970
46971         * modules/gc-md4-tests (License): Likewise.
46972
46973         * modules/gc-md2-tests (License): Likewise.
46974
46975         * modules/gc-tests (License): Likewise.
46976
46977         * modules/des-tests (License): Likewise.
46978
46979         * modules/md4-tests (License): Likewise.
46980
46981         * modules/md2-tests (License): Likewise.
46982
46983 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46984
46985         Sync from coreutils:
46986
46987         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46988         * modules/lib-ignore: New file.
46989         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46990         chdir-safer.m4, lchmod.m4.
46991         * modules/openat: Add mkdirat.c, openat-priv.h.
46992
46993 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
46994
46995         Sync from coreutils.
46996         * m4/lib-ignore.m4: New file.
46997         * m4/lchmod.m4: New file.
46998
46999 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47000
47001         Sync from coreutils.
47002         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
47003         for write access: POSIX says that must fail.
47004         * lib/fts.c (diropen): Likewise.
47005         * lib/save-cwd.c (save_cwd): Likewise.
47006         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
47007         well, for minor improvements on hosts that lack O_DIRECTORY.
47008         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
47009         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
47010         Fall back on chown if open failed with EACCES.
47011
47012         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
47013         Report an error at compile-time if only a 1-second nominal clock
47014         resolution is found.
47015
47016         * lib/lchmod.h: New file.
47017         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
47018         (make_dir_parents): Use lchown rather than chown, and
47019         lchmod rather than chmod.
47020
47021         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
47022         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
47023         "proc" reported by n0dalus.
47024
47025         * lib/mountlist.c: Include <limits.h>.
47026         (dev_from_mount_options)
47027         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
47028         New function.  It no longer assumes "dev=" has the System V meaning
47029         on Linux (since it doesn't).  It also parses "dev=" more carefully.
47030         (read_file_system_list)
47031         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
47032         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
47033         dev= in that case.
47034
47035         * lib/posixtm.h (PDS_PRE_2000): New macro.
47036         * lib/posixtm.c (year): Arg is now syntax_bits rather than
47037         allow_century.  All usages changed.  Reject dates outside the range
47038         1969-1999 if PDS_PRE_2000 is used.
47039
47040 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
47041
47042         Sync from coreutils.
47043         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
47044         (Time of day items): Mention the possibility of leap seconds.
47045         Problem reported by Dr. David Alan Gilbert.
47046
47047 2006-01-09  Jim Meyering  <jim@meyering.net>
47048
47049         Sync from coreutils.
47050
47051         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
47052
47053         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
47054
47055         * lib/modechange.c (mode_compile): Reject an invalid mode string
47056         that starts with an octal digit.  From Andreas Gruenbacher.
47057
47058         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
47059         and dup to open_safer and dup_safer, respectively.
47060         (openat_permissive): Fix typo in comment.
47061
47062         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
47063         "gettext.h"; either no longer needed or are guaranteed by openat.h.
47064         (_): Remove; no longer needed.
47065         (openat): Renamed from rpl_openat; no need for rpl_openat
47066         since openat.h renames openat for us.
47067         Replace most of the body with a call to openat_permissive,
47068         to avoid duplicate code.
47069         Port to (probably hypothetical) environments were mode_t is
47070         wider than int.
47071         (openat_permissive): Require mode arg, so that we can check
47072         types better.  Put it just after flags.  Change cwd failure
47073         indicator from pointer-to-bool to pointer-to-errno-value.
47074         All callers changed.
47075         Invoke openat_save_fail and/or openat_restore_fail if
47076         cwd_errno is null, so that openat can call us.
47077         (openat_permissive, fdopendir, fstatat, unlinkat):
47078         Simplify errno handling to avoid some duplicate code,
47079         as it's OK to set errno on success.
47080         * lib/openat.h: Revamp code so that function macros depend on
47081         __OPENAT_PREFIX only, not also on AT_FDCWD.
47082         (openat_ro): Remove.  Caller changed to use openat_permissive.
47083         (openat_permissive): Now a macro, if not a function.
47084         (openat_restore_fail, openat_save_fail): Now always functions,
47085         since mkdirat needs them even if __OPENAT_PREFIX is defined.
47086
47087         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
47088         and openat.c.
47089         * lib/mkdirat.c: Include openat-priv.h.
47090         Remove definitions of macros defined therein.
47091         * lib/openat.c: Likewise.
47092
47093         * lib/mkdirat.c (mkdirat): New file and function.
47094         * lib/openat.h (mkdirat): Declare.
47095
47096         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
47097
47098         * lib/openat.h (openat_permissive): Declare.
47099         (openat_ro): Define.
47100
47101         * lib/openat.c (EXPECTED_ERRNO): New macro.
47102         (openat_permissive): New function -- used in remove.c rewrite.
47103         (all functions): Set errno just before returning, only if there
47104         was an actual failure.
47105         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
47106
47107         Emulate openat-family functions using Linux's procfs, if possible.
47108         Idea and some code based on Ulrich Drepper's glibc changes.
47109
47110         * lib/openat.c: (BUILD_PROC_NAME): New macro.
47111         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
47112         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
47113         before falling back on save_cwd and restore_cwd.
47114         (fdopendir, fstatat, unlinkat): Likewise.
47115
47116         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
47117         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
47118
47119         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
47120         as second argument to va_arg.  Otherwise, some versions of gcc
47121         warn that `if this code is reached, the program will abort'.
47122
47123 2006-01-09  Jim Meyering  <jim@meyering.net>
47124
47125         Sync from coreutils.
47126         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
47127         Require openat-priv.h.
47128
47129 2006-01-09  Bruno Haible  <bruno@clisp.org>
47130
47131         * modules/strnlen (Include): Use strnlen.h.
47132
47133 2006-01-09  Bruno Haible  <bruno@clisp.org>
47134
47135         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
47136
47137 2006-01-09  Bruno Haible  <bruno@clisp.org>
47138
47139         * lib/sysexit_.h (EX_OK): New macro.
47140         Suggested by Martin Lambers <marlam@marlam.de>.
47141
47142 2006-01-09  Bruno Haible  <bruno@clisp.org>
47143
47144         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
47145         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
47146
47147 2006-01-09  Bruno Haible  <bruno@clisp.org>
47148
47149         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
47150         numbers.
47151
47152 2006-01-09  Bruno Haible  <bruno@clisp.org>
47153
47154         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
47155         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
47156         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
47157         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
47158
47159 2006-01-09  Bruno Haible  <bruno@clisp.org>
47160
47161         * build-aux/javacomp.sh.in: New file, moved from lib/.
47162         * modules/javacomp-script (Files): Update.
47163         (configure.ac): Add AC_CONFIG_FILES invocation.
47164         (EXTRA_DIST): Remove variable.
47165
47166         * build-aux/javaexec.sh.in: New file, moved from lib/.
47167         * modules/javaexec (Files): Update.
47168         (configure.ac): Add AC_CONFIG_FILES invocation.
47169         (EXTRA_DIST): Remove javaexec.sh.in.
47170
47171         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
47172         * modules/csharpcomp-script (Files): Update.
47173         (configure.ac): Add AC_CONFIG_FILES invocation.
47174         (EXTRA_DIST): Remove variable.
47175
47176         * build-aux/csharpexec.sh.in: New file, moved from lib/.
47177         * modules/csharpexec (Files): Update.
47178         (configure.ac): Add AC_CONFIG_FILES invocation.
47179         (EXTRA_DIST): Remove csharpexec.sh.in.
47180
47181 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47182
47183         Sync from coreutils.
47184
47185         Add POSIX ACL support
47186         * lib/acl.h (copy_acl, set_acl): Add declarations.
47187         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
47188         systems other than Linux.
47189         (chmod_or_fchmod): New function: use fchmod when possible,
47190         and chmod otherwise.
47191         (file_has_acl): Add a POSIX ACL implementation, with a
47192         Linux-specific subcase.
47193         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
47194         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
47195         acls are unsupported.
47196         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
47197         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
47198         are unsupported.
47199
47200 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
47201
47202         Sync from coreutils.
47203         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
47204
47205 2006-01-07  Bruno Haible  <bruno@clisp.org>
47206
47207         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
47208         gl_EARLY.
47209
47210 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47211
47212         * lib/strftime.c (tzname): Don't declare if it is already #defined.
47213         Problem reported for Mingw by Mark Junker.
47214
47215 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47216
47217         * README: Gnulib normally doesn't generate a tarball.
47218
47219 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
47220
47221         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
47222         long int, not int, for nanosecond counts, so that people who are
47223         used to POSIX struct timespec won't be surprised.  Reported by Jim
47224         Meyering.
47225
47226 2005-12-28  Bruno Haible  <bruno@clisp.org>
47227
47228         * build-aux/config.rpath: Update from GNU gettext.
47229
47230 2005-12-16  Jim Meyering  <jim@meyering.net>
47231
47232         * modules/fprintftime: New module.
47233         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
47234
47235 2005-12-16  Jim Meyering  <jim@meyering.net>
47236
47237         * m4/fprintftime.m4: New file.
47238
47239 2005-12-16  Jim Meyering  <jim@meyering.net>
47240
47241         * lib/fprintftime.c, lib/fprintftime.h: New files.
47242
47243 2005-12-15  Simon Josefsson  <jas@extundo.com>
47244
47245         * modules/socklen (configure.ac): Fix M4 macro name, to align with
47246         new m4/socklen.m4.
47247
47248 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47249
47250         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
47251         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
47252
47253 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
47254
47255         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
47256         * lib/argp-help.c (fill_in_uparams): Check if the constructed
47257         struct uparams is valid. Fall back to the default values if it is
47258         not.
47259
47260 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47261
47262         * modules/argp (Files): Add argp-pin.c
47263         (Depends-on): dirname
47264         (lib_SOURCES): Add argp-pin.c
47265
47266 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47267
47268         * m4/argp.m4:  Check if program_invocation_name and
47269         program_invocation_short_name are declared and define appropriate
47270         macros if they are not.
47271
47272 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47273
47274         * lib/argp-help.c (__argp_base_name): New function
47275         (__argp_short_program_name): Rewrite using __argp_base_name
47276         * lib/argp-namefrob.h: Define program_invocation_name and
47277         program_invocation_short_name if requested
47278         (__argp_base_name): Add prototype
47279         * lib/argp-parse.c (argp_def): Use gettext wrappers
47280         (argp_default_parser): Use __argp_base_name
47281         * lib/argp-pin.c: New file. Defines program_invocation_name and
47282         program_invocation_short_name on systems that lack them.
47283
47284 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47285
47286         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
47287         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47288         porting problem reported by Georg Schwarz in
47289         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47290
47291 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
47292
47293         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
47294         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
47295         porting problem reported by Georg Schwarz in
47296         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
47297
47298 2005-12-05  Bruno Haible  <bruno@clisp.org>
47299
47300         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
47301         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
47302         Reported by Mark Junker <mjscod@gmx.de>.
47303
47304 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
47305
47306         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
47307         Use implementation from Albert Chin, with some
47308         comments/corrections by Stepan Kasal and myself.
47309
47310 2005-12-02  Bruno Haible  <bruno@clisp.org>
47311
47312         * gnulib-tool (func_import): Accept GPLed build tool modules when
47313         --lgpl is given.
47314         * modules/csharpcomp-script: New file.
47315         * modules/csharpcomp: Depend on it.
47316         * modules/javacomp-script: New file.
47317         * modules/javacomp: Depend on it.
47318         Suggested by Simon Josefsson.
47319
47320 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47321
47322         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
47323         statement, to work around an HP-UX 10.20 compiler bug reported by
47324         Peter O'Gorman.
47325
47326 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47327
47328         * modules/savedir (Depends-on): Add openat.
47329
47330 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
47331
47332         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
47333         (uintmax_t) [defined uintmax_t]: Do not declare.
47334         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
47335         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
47336         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
47337         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
47338         sake of portability to weird hosts that C allows (though we don't
47339         know of any practical examples).
47340
47341         * lib/savedir.h (fdsavedir): New decl.
47342         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
47343         contains most of the former guts of savedir.
47344         (savedir): Use savedirstream.
47345         Include "openat.h".
47346
47347 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47348
47349         * modules/obstack (Files): Add m4/ulonglong.m4.
47350         Problem reported by Davide Angelocola.
47351
47352 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47353
47354         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
47355         coreutils no longer futzes with rounding modes.
47356
47357 2005-11-14  Jim Meyering  <jim@meyering.net>
47358
47359         * lib/mkstemp-safer.c: Include <config.h>, required for possible
47360         replacement of mkstemp.
47361
47362 2005-11-10  Simon Josefsson  <jas@extundo.com>
47363
47364         * lib/readline.c: Remove EOL.
47365
47366 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47367
47368         * modules/gethrxtime (Depends-on): Add gettime.
47369
47370 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47371
47372         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
47373         or gettimeofday; no longer needed.
47374
47375 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
47376
47377         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
47378         time business.
47379         (gethrxtime) [! (HAVE_NANOUPTIME
47380         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
47381         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
47382         our own approximation.
47383
47384 2005-11-08  Eric Blake  <ebb9@byu.net>
47385
47386         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47387
47388 2005-11-08  Eric Blake  <ebb9@byu.net>
47389
47390         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
47391
47392 2005-11-04  Bruno Haible  <bruno@clisp.org>
47393
47394         * gnulib-tool: Implement --update mode.
47395
47396 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47397
47398         Fix porting problem reported by Theodoros V. Kalamatianos.
47399         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
47400         Don't assume that futimes failing means we must fail.
47401
47402 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47403
47404         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
47405         variables to suggest the intended function of the PATH_MAX check.
47406
47407 2005-10-30  Kean Johnston  <jkj@sco.com>
47408
47409         Trivial changes to support SCO systems.
47410         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
47411         as PATH_MAX.
47412         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
47413         where __ptr is null when no I/O is pending.
47414
47415 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
47416
47417         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
47418         leave errno alone.  Problem reported by Dmitry V. Levin.
47419
47420 2005-10-28  Simon Josefsson  <jas@extundo.com>
47421
47422         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
47423         Test more.
47424
47425         * tests/test-gc-md2.c, tests/test-md2.c: New files.
47426
47427         * modules/md2, modules/md2-tests: New files.
47428
47429 2005-10-28  Simon Josefsson  <jas@extundo.com>
47430
47431         * m4/inet_ntop.m4: More tests.
47432
47433         * m4/gc-md2.m4, md2.m4: New file.
47434
47435 2005-10-28  Simon Josefsson  <jas@extundo.com>
47436
47437         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
47438         "restrict" keywords, as per POSIX.  Protect the function
47439         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
47440         Don't use K&R prototypes.  Check the sprintf return values.
47441         Re-define EAFNOSUPPORT if not present.  Indent.
47442
47443         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
47444         suggested by Bruno Haible <bruno@clisp.org>.
47445
47446         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47447
47448         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
47449
47450         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47451         libgcrypt).
47452
47453         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
47454
47455         * lib/md2.h, lib/md2.c: New files.
47456
47457 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
47458
47459         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47460         errno alone.  Problem reported by Frederic Jolliton.
47461
47462 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47463
47464         * modules/verify (License): Change from GPL to LGPL.  This is a
47465         tiny module and there are apparently near-equivalents that are
47466         under the BSD license.
47467
47468 2005-10-24  Simon Josefsson  <jas@extundo.com>
47469
47470         * modules/sha1: Relicense to LGPL.
47471
47472 2005-10-24  Simon Josefsson  <jas@extundo.com>
47473
47474         * lib/md4.h: Shrink buffer size, now that we changed the type.
47475
47476 2005-10-23  Simon Josefsson  <jas@extundo.com>
47477
47478         * gnulib-tool (func_import): Fix --tests-base.
47479
47480 2005-10-22  Simon Josefsson  <jas@extundo.com>
47481
47482         * modules/arcfour (Depends-on): Need stdint.
47483
47484 2005-10-22  Simon Josefsson  <jas@extundo.com>
47485
47486         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47487         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
47488
47489 2005-10-22  Simon Josefsson  <jas@extundo.com>
47490
47491         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47492         suggested by Bruno Haible <bruno@clisp.org>.
47493
47494 2005-10-22  Simon Josefsson  <jas@extundo.com>
47495
47496         * lib/crc.h: Include stddef.h, for size_t.
47497
47498 2005-10-22  Simon Josefsson  <jas@extundo.com>
47499
47500         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47501         arcfour_context struct (simplify test vector testing in GNU
47502         Shishi).
47503
47504 2005-10-21  Simon Josefsson  <jas@extundo.com>
47505
47506         * modules/des, modules/des-tests: New files.
47507
47508         * modules/gc-des, modules/gc-des-tests: New files.
47509
47510         * tests/test-des.c, tests/test-gc-des.c: New file.
47511
47512 2005-10-21  Simon Josefsson  <jas@extundo.com>
47513
47514         * modules/arctwo, modules/arctwo-tests: New files.
47515
47516         * tests/test-arctwo.c: New file.
47517
47518         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47519
47520         * tests/test-gc-arctwo.c: New file.
47521
47522 2005-10-21  Simon Josefsson  <jas@extundo.com>
47523
47524         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47525         Bruno Haible <bruno@clisp.org>.
47526
47527         * m4/gc-des.m4: New file.
47528
47529 2005-10-21  Simon Josefsson  <jas@extundo.com>
47530
47531         * m4/arctwo.m4: New file.
47532
47533         * m4/gc-arctwo.m4: New file.
47534
47535 2005-10-21  Simon Josefsson  <jas@extundo.com>
47536
47537         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47538         block.
47539
47540 2005-10-21  Simon Josefsson  <jas@extundo.com>
47541
47542         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47543         <bruno@clisp.org>.
47544
47545         * lib/hmac-sha1.c (hmac_sha1): Likewise.
47546
47547         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47548         Bruno Haible <bruno@clisp.org>.
47549
47550         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47551         <bruno@clisp.org>.
47552
47553 2005-10-21  Simon Josefsson  <jas@extundo.com>
47554
47555         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47556
47557 2005-10-21  Simon Josefsson  <jas@extundo.com>
47558
47559         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47560
47561 2005-10-21  Simon Josefsson  <jas@extundo.com>
47562
47563         * lib/des.h, lib/des.c: New files.
47564
47565         * lib/gc-gnulib.c: Support DES.c
47566
47567 2005-10-21  Simon Josefsson  <jas@extundo.com>
47568
47569         * lib/arctwo.h, lib/arctwo.c: New files.
47570
47571         * lib/gc-gnulib.c: Support ARCTWO.
47572
47573 2005-10-21  Simon Josefsson  <jas@extundo.com>
47574
47575         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47576         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47577
47578 2005-10-21  Simon Josefsson  <jas@extundo.com>
47579
47580         * gnulib-tool (func_import, func_create_testdir): Define automake
47581         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47582         Makefile.am snippet),
47583         suggested by Bruno Haible <bruno@clisp.org>.
47584
47585         * modules/gc (Makefile.am): Use it.
47586
47587 2005-10-21  Bruno Haible  <bruno@clisp.org>
47588
47589         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47590         patch.
47591
47592 2005-10-19  Simon Josefsson  <jas@extundo.com>
47593
47594         * tests/test-gc-rijndael.c: New file.
47595
47596         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47597
47598 2005-10-19  Simon Josefsson  <jas@extundo.com>
47599
47600         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47601         interface too.
47602
47603 2005-10-19  Simon Josefsson  <jas@extundo.com>
47604
47605         * tests/test-gc-arcfour.c: New file.
47606
47607         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47608
47609 2005-10-19  Simon Josefsson  <jas@extundo.com>
47610
47611         * modules/gc-md4, modules/gc-md4-tests: New file.
47612
47613         * tests/test-gc-md4.c: New file.
47614
47615 2005-10-19  Simon Josefsson  <jas@extundo.com>
47616
47617         * m4/gc-md4.m4: New file.
47618
47619 2005-10-19  Simon Josefsson  <jas@extundo.com>
47620
47621         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47622         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47623         <kasal@ucw.cz>.
47624
47625 2005-10-19  Simon Josefsson  <jas@extundo.com>
47626
47627         * m4/gc-arcfour.m4: New file.
47628
47629         * m4/gc-rijndael.m4: New file.
47630
47631 2005-10-19  Simon Josefsson  <jas@extundo.com>
47632
47633         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47634
47635 2005-10-19  Simon Josefsson  <jas@extundo.com>
47636
47637         * lib/gc-gnulib.c: Support ARCFOUR.
47638
47639 2005-10-19  Simon Josefsson  <jas@extundo.com>
47640
47641         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47642         support.
47643
47644         * lib/gc.h: Add ECB enum type.
47645
47646         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47647
47648 2005-10-18  Simon Josefsson  <jas@extundo.com>
47649
47650         * tests/test-md5.c: New file.
47651
47652         * modules/md5-tests: New file.
47653
47654 2005-10-18  Simon Josefsson  <jas@extundo.com>
47655
47656         * tests/test-md4.c: New file.
47657
47658         * modules/md4, modules/md4-tests: New files.
47659
47660 2005-10-18  Simon Josefsson  <jas@extundo.com>
47661
47662         * m4/md4.m4: New file.
47663
47664 2005-10-18  Simon Josefsson  <jas@extundo.com>
47665
47666         * lib/md4.h, lib/md4.c: New files, based on md5.?.
47667
47668 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
47669
47670         * gnulib-tool (func_create_testdir): Omit the second check whether
47671         BUILT_SOURCES in nonempty.
47672
47673 2005-10-17  Simon Josefsson  <jas@extundo.com>
47674
47675         * tests/test-rijndael.c: New file.
47676
47677 2005-10-17  Simon Josefsson  <jas@extundo.com>
47678
47679         * modules/sha1: Depend on stdint instead of md5.
47680
47681         * modules/md5: Depend on stdint, remove uint32_t.
47682
47683 2005-10-17  Simon Josefsson  <jas@extundo.com>
47684
47685         * modules/gc-sha1-tests: New file.
47686
47687         * tests/test-gc-sha1.c: New file.
47688
47689 2005-10-17  Simon Josefsson  <jas@extundo.com>
47690
47691         * m4/md5.m4: Remove call to uint32_t.m4.
47692
47693 2005-10-17  Simon Josefsson  <jas@extundo.com>
47694
47695         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47696
47697         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47698         md5.h.
47699
47700         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
47701
47702         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
47703
47704 2005-10-17  Simon Josefsson  <jas@extundo.com>
47705
47706         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47707
47708 2005-10-17  Simon Josefsson  <jas@extundo.com>
47709
47710         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47711
47712 2005-10-17  Simon Josefsson  <jas@extundo.com>
47713
47714         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47715
47716         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47717
47718 2005-10-17  Bruno Haible  <bruno@clisp.org>
47719
47720         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47721         that it can also be used in a test.
47722
47723 2005-10-16  Bruno Haible  <bruno@clisp.org>
47724
47725         * gnulib-tool (func_emit_tests_Makefile_am): Also define
47726         TESTS_ENVIRONMENT, so that individual tests can augment it.
47727
47728         * gnulib-tool (func_create_testdir): Use an intermediate target for
47729         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47730         macros, like $(ALLOCA_H), which cannot be passed through the command
47731         line.
47732
47733 2005-10-15  Simon Josefsson  <jas@extundo.com>
47734
47735         * modules/rijndael-tests: New file.
47736
47737         * modules/rijndael: New file.
47738
47739 2005-10-15  Simon Josefsson  <jas@extundo.com>
47740
47741         * m4/rijndael.m4: New file.
47742
47743 2005-10-15  Simon Josefsson  <jas@extundo.com>
47744
47745         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47746
47747         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47748
47749 2005-10-14  Simon Josefsson  <jas@extundo.com>
47750
47751         * tests/test-arcfour.c: New file.
47752
47753         * modules/arcfour, modules/arcfour-tests: New files.
47754
47755 2005-10-14  Simon Josefsson  <jas@extundo.com>
47756
47757         * m4/arcfour.m4: New file.
47758
47759 2005-10-14  Simon Josefsson  <jas@extundo.com>
47760
47761         * lib/arcfour.h, lib/arcfour.c: New files.
47762
47763 2005-10-14  Roland McGrath  <roland@redhat.com>
47764
47765         Import from libc.  [BZ #1331]
47766         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47767         macro argument.
47768         Reported by Matej Vela <vela@debian.org>.
47769
47770 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47771
47772         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47773         include <wchar.h>; no longer needed.
47774
47775 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47776
47777         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47778
47779 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
47780         and  Ulrich Drepper  <drepper@redhat.com>
47781
47782         Import from libc.
47783         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47784         instead of inline stream orientation test and two separate
47785         function calls.  Pay no attention to USE_IN_LIBIO.
47786
47787 2005-10-13  Simon Josefsson  <jas@extundo.com>
47788
47789         * modules/gc-hmac-md5-tests: New file.
47790
47791         * tests/test-gc-hmac-sha1.c: New file.
47792
47793         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47794
47795         * modules/gc-hmac-md5-tests: New file.
47796
47797         * tests/test-gc-md5.c: New file.
47798
47799         * modules/gc-md5-tests: New file.
47800
47801 2005-10-13  Simon Josefsson  <jas@extundo.com>
47802
47803         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47804         Move memory allocation outside of loop.
47805
47806 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
47807
47808         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47809         intermediate directory is in a read-only file system.  Problem
47810         reported by Eric Blake.
47811
47812 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
47813
47814         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47815
47816 2005-10-12  Simon Josefsson  <jas@extundo.com>
47817
47818         * tests/test-hmac-sha1.c: New file.
47819
47820         * modules/hmac-sha1-tests: New file.
47821
47822         * modules/hmac-sha1: New file.
47823
47824 2005-10-12  Simon Josefsson  <jas@extundo.com>
47825
47826         * modules/gc-sha1: New file.
47827
47828 2005-10-12  Simon Josefsson  <jas@extundo.com>
47829
47830         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47831
47832         * tests/test-gc-pbkdf2-sha1.c: New file.
47833
47834 2005-10-12  Simon Josefsson  <jas@extundo.com>
47835
47836         * modules/gc-md5, modules/gc-hmac-md5: New files.
47837
47838         * modules/gc (Files): Remove md5, memxor and hmac files.
47839
47840 2005-10-12  Simon Josefsson  <jas@extundo.com>
47841
47842         * m4/gc-pbkdf2-sha1.m4: New file.
47843
47844         * m4/gc-hmac-sha1.m4: New file.
47845
47846         * m4/gc-sha1: New file.
47847
47848         * m4/hmac-sha1.m4: New file.
47849
47850 2005-10-12  Simon Josefsson  <jas@extundo.com>
47851
47852         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47853
47854         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47855
47856 2005-10-12  Simon Josefsson  <jas@extundo.com>
47857
47858         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47859         suggested by Bruno Haible <bruno@clisp.org>.
47860
47861 2005-10-12  Simon Josefsson  <jas@extundo.com>
47862
47863         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47864
47865 2005-10-12  Simon Josefsson  <jas@extundo.com>
47866
47867         * lib/gc-pbkdf2-sha1.c: New file.
47868
47869         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47870
47871 2005-10-12  Simon Josefsson  <jas@extundo.com>
47872
47873         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47874
47875         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47876
47877 2005-10-12  Simon Josefsson  <jas@extundo.com>
47878
47879         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47880         GC_USE_HMAC_MD5, respectively.
47881
47882         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47883         (gc_md5): Fix typo.
47884
47885         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47886
47887         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47888
47889         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47890
47891 2005-10-12  Bruno Haible  <bruno@clisp.org>
47892
47893         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47894         Reported by Stepan Kasal <kasal@ucw.cz>.
47895
47896 2005-10-11  Simon Josefsson  <jas@extundo.com>
47897
47898         * tests/test-crc.c: New file.
47899
47900         * modules/crc, modules/crc-tests: New files.
47901
47902 2005-10-11  Simon Josefsson  <jas@extundo.com>
47903
47904         * m4/crc.m4: New file.
47905
47906 2005-10-11  Simon Josefsson  <jas@extundo.com>
47907
47908         * lib/gc.h: Add gc_hash and gc_hash_buffer.
47909
47910         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
47911
47912         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47913
47914 2005-10-11  Simon Josefsson  <jas@extundo.com>
47915
47916         * lib/crc.h, lib/crc.c: New files.
47917
47918         * lib/gc.h (gc_hash_buffer): Add doc.
47919
47920 2005-10-11  Bruno Haible  <bruno@clisp.org>
47921
47922         * modules/c-strcasestr: New file.
47923         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47924
47925 2005-10-11  Bruno Haible  <bruno@clisp.org>
47926
47927         * modules/c-strcase: New file.
47928         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47929
47930 2005-10-11  Bruno Haible  <bruno@clisp.org>
47931
47932         * lib/strcasecmp.c: Include limits.h.
47933         (strcasecmp): Avoid integer overflow on exotic platforms.
47934         * lib/strncasecmp.c: Include limits.h.
47935         (strncasecmp): Avoid integer overflow on exotic platforms.
47936         Reported by Paul Eggert.
47937
47938 2005-10-11  Bruno Haible  <bruno@clisp.org>
47939
47940         * lib/c-strcasestr.h: New file, from GNU gettext.
47941         * lib/c-strcasestr.c: New file, from GNU gettext.
47942
47943 2005-10-11  Bruno Haible  <bruno@clisp.org>
47944
47945         * lib/c-strcase.h: New file, from GNU gettext.
47946         * lib/c-strcasecmp.c: New file, from GNU gettext.
47947         * lib/c-strncasecmp.c: New file, from GNU gettext.
47948
47949 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47950
47951         * modules/mempcpy (License): GPL -> LGPL.
47952         * modules/strchrnul (License): Likewise.
47953         * modules/sysexits (License): Likewise.
47954
47955 2005-10-08  Simon Josefsson  <jas@extundo.com>
47956
47957         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47958
47959 2005-10-07  Simon Josefsson  <jas@extundo.com>
47960
47961         * m4/memxor.m4: Remove gl_C_RESTRICT call.
47962
47963 2005-10-06  Simon Josefsson  <jas@extundo.com>
47964
47965         * tests/test-hmac-md5.c: New file.
47966
47967         * modules/hmac-md5-tests: New file.
47968
47969         * modules/hmac-md5: New file.
47970
47971 2005-10-06  Simon Josefsson  <jas@extundo.com>
47972
47973         * m4/hmac-md5.m4: New file.
47974
47975         * m4/memxor.m4: Require gl_C_RESTRICT.
47976
47977 2005-10-06  Simon Josefsson  <jas@extundo.com>
47978
47979         * lib/memxor.c (memxor): Avoid casts and warnings.
47980
47981 2005-10-06  Simon Josefsson  <jas@extundo.com>
47982
47983         * lib/hmac-md5.c: New file.
47984
47985         * lib/hmac.h: New file.
47986
47987 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47988
47989         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47990         promotes to int, not unsigned int, to catch the AIX 5.3
47991         compiler bug.
47992
47993 2005-10-05  Simon Josefsson  <jas@extundo.com>
47994
47995         * modules/memxor: New file.
47996
47997         * modules/iconv (Files): Move config.rpath to havelib, it is used
47998         there.
47999
48000         * modules/havelib (Files): Add config.rpath.
48001
48002 2005-10-05  Simon Josefsson  <jas@extundo.com>
48003
48004         * m4/memxor.m4: New file.
48005
48006 2005-10-05  Simon Josefsson  <jas@extundo.com>
48007
48008         * lib/memxor.c (memxor): Fix compiler error.
48009
48010         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
48011         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
48012
48013         * lib/memxor.h, lib/memxor.c: New files.
48014
48015         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
48016         we assume all systems have it, suggested by Jim Meyering
48017         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
48018         any systems lack sys/socket.h; mingw32 is known to lack it, but we
48019         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
48020         same reasons.
48021
48022 2005-10-05  Simon Josefsson  <jas@extundo.com>
48023
48024         * config/srclist.txt: Add glibc bug 1423 for md5.h.
48025
48026 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48027
48028         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
48029         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
48030         needed, since the source code now assumes these .h files.
48031
48032 2005-10-05  Derek Price  <derek@ximbiot.com>
48033
48034         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
48035
48036 2005-10-05  Bruno Haible  <bruno@clisp.org>
48037
48038         * modules/stdint (License): Change to LGPL.
48039
48040 2005-10-04  Simon Josefsson  <jas@extundo.com>
48041
48042         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
48043         D. Baushke" <mdb@gnu.org>.
48044
48045 2005-10-04  Bruno Haible  <bruno@clisp.org>
48046
48047         * lib/verify.h (verify_true): Provide alternative definition for C++.
48048
48049 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48050
48051         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
48052         (SSIZE_MAX): New macro, if not already defined.
48053         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
48054         than 2 GiB.
48055
48056 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48057
48058         Sync from coreutils.
48059         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
48060         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
48061         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
48062         ULLONG_MAX doesn't work with 2.7.2.1.
48063
48064 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48065
48066         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
48067         From Ben Pfaff.
48068
48069         * modules/exclude (Depends-on): Depend on verify.
48070         * modules/strtoimax (Depends-on): Likewise.
48071         * modules/utimecmp (Depends-on): Likewise.
48072
48073 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
48074
48075         * lib/exclude.c: Include verify.h.
48076         (verify): Remove.  All callers changed to use verify.h's version.
48077         * lib/strtoimax.c: Likewise.
48078         * lib/utimecmp.c: Likewis.e
48079
48080         Sync from coreutils.
48081         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
48082         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
48083         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
48084         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
48085         bother returning ENOSYS if settimeofday or stime fails; just let
48086         them return whatever errno they want to return.
48087         * lib/utimens.c: Include unistd.h, for dup2.
48088         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
48089         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
48090
48091 2005-10-02  Jim Meyering  <jim@meyering.net>
48092
48093         Sync from coreutils.
48094         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
48095         from glibc-2.2.5 that fails for read-only files.
48096
48097 2005-10-02  Jim Meyering  <jim@meyering.net>
48098
48099         Sync from coreutils.
48100         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
48101         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
48102         `#if HAVE_CONFIG_H'.
48103         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
48104         Remove AT_FDCWD test.
48105         Do not consume the fd unless successful.
48106         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
48107         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
48108         block, so that we don't even try to compile it if settimeofday is
48109         available.  This works around a compilation failure on OSF1 V5.1,
48110         due to stime requiring a `long int*' while tv_sec is `int'.
48111
48112 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
48113
48114         Sync from coreutils.
48115         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
48116         against `yes', rather than just testing for nonempty.
48117
48118 2005-10-01  Simon Josefsson  <jas@extundo.com>
48119
48120         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
48121         and Darwin.
48122
48123         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
48124         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
48125         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
48126         freeaddrinfo and gai_strerror are declared by the POSIX headers.
48127         Check if struct addrinfo is declared.
48128
48129 2005-10-01  Simon Josefsson  <jas@extundo.com>
48130
48131         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
48132         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
48133         AI_* and EAI_* definitions.  Protect function declarations.
48134
48135 2005-10-01  Jim Meyering  <jim@meyering.net>
48136
48137         Sync from coreutils.
48138
48139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
48140         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
48141         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
48142         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
48143         in the inet and nsl libraries.  Required on Solaris 5.7.
48144
48145 2005-10-01  Jim Meyering  <jim@meyering.net>
48146
48147         Sync from coreutils.
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  Eric Blake  <ebb9@byu.net>  (tiny change)
48152
48153         * lib/getdelim.c (getdelim): Remove unused variables.
48154
48155 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48156
48157         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
48158         so that the code works even with ancient cpp.  Portability problem
48159         with GCC 2.7.2.1 reported by Thomas M.Ott.
48160
48161 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48162
48163         * modules/regex (Depends-on): Add strcase.
48164
48165         * modules/gethostname (Licence): Change from GPL to LGPL, since
48166         gethostname.c is a trivial implementation of a standard library
48167         function.
48168         * modules/poll (License): Change from GPL to LGPL, since it's
48169         derived from LGPL code.
48170
48171 2005-09-27  Jim Meyering  <jim@meyering.net>
48172
48173         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
48174         HAVE_CONFIG_H.
48175
48176         * lib/intprops.h (signed_type_or_expr__): Define.
48177         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
48178         for unsigned types.
48179
48180 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48181
48182         * lib/verify.h (verify_expr): Remove, replacing with:
48183         (verify_true): New macro that returns true instead of void.
48184         (verify_type__): Remove.
48185         (verify): Use verify_true rather than verify_type__.
48186
48187 2005-09-26  Bruno Haible  <bruno@clisp.org>
48188
48189         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
48190         is necessary.
48191         (lib_SOURCES): Remove mbchar.c.
48192         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
48193         (Files): Add m4/mbrtowc.m4.
48194         * modules/mbiter: Likewise.
48195         * modules/mbuiter: Likewise.
48196
48197 2005-09-26  Bruno Haible  <bruno@clisp.org>
48198
48199         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
48200         compile mbchar.c if they are not both present.
48201         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
48202         * m4/mbiter.m4 (gl_MBITER): Likewise.
48203         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
48204         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
48205         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
48206
48207 2005-09-25  Jim Meyering  <jim@meyering.net>
48208
48209         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
48210         also uses socklen_t.
48211
48212 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48213
48214         * lib/utimens.c (ENOSYS): Define if not already defined.
48215         (futimens): Support having a null PATH if the file descriptor
48216         is nonnegative.
48217
48218         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
48219         Remove.
48220         (__attribute): Define to empty unless GCC 3.1 or later.
48221         This works around a core dump on OpenBSD 3.4, which has GCC
48222         2.95.3, which dumps core when given __attribute__(()).  It also
48223         simplifies other tests, since we really don't want to bother with
48224         worrying about which ancient version of GCC supported what.
48225         Original problem reported by Yoann Vandoorselaere, with part of
48226         the fix suggested by Derek Price.
48227
48228 2005-09-24  Jim Meyering  <jim@meyering.net>
48229
48230         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
48231         so we can once again use a positive bitfield width of 1 -- now we
48232         don't have to explain why we were using a bitfield width of 2.
48233
48234 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48235
48236         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
48237         and similarly for the other external symbols.  Problem reported
48238         by James Gallager.
48239
48240         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
48241         bug reported by Jim Meyering.
48242
48243         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
48244         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
48245         not needed, since socklen is a prerequisite module.
48246
48247 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48248
48249         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
48250         Problem reported by Eric Blake.
48251         (getaddrinfo): Initialize se so that it's not garbage.
48252         Redo internal storage allocation so that it doesn't make unportable
48253         assumptions about alignment.
48254         Fix a memory leak.
48255
48256         * lib/utimens.c (futimens): Use futimesat if available.
48257         Prefer it to futimes since it doesn't have the futimes bug.
48258
48259         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
48260         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
48261         Instead, declare a function that returns a pointer to an array,
48262         and use verify_type__ to declare the size of the array.
48263         Problem and germ of a solution reported by Bruno Haible.
48264         (verify_type__): Use 2, not 1, for bitfield size, to avoid
48265         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
48266
48267 2005-09-23  Jim Meyering  <jim@meyering.net>
48268
48269         Sync from coreutils.
48270         Correct build failure (socklen_t not defined) on at least
48271         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
48272         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
48273
48274 2005-09-23  Jim Meyering  <jim@meyering.net>
48275
48276         * modules/getaddrinfo (Depends-on): Add socklen.
48277
48278 2005-09-23  Bruno Haible  <bruno@clisp.org>
48279
48280         * tests/test-verify.c: New file.
48281
48282 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48283
48284         Sync from coreutils.
48285
48286         * modules/argmatch (Depends-on): Add verify.
48287         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
48288         unistd-safer.
48289         * modules/save-cwd (Depends-on): Likewise.
48290
48291         * modules/openat (Files): Add lib/openat-die.c.
48292         (Depends-on): Remove error, exitfail.
48293         Add dirname.
48294
48295         * modules/verify: New file.
48296         * MODULES.html.sh (Diagnostics <assert.h>): New section,
48297         with "verify" module.
48298
48299 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48300
48301         Sync from coreutils.
48302
48303         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
48304         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
48305         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
48306         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
48307         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
48308         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
48309         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
48310         Don't bother checking for string.h, stdlib.h, unistd.h.
48311         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
48312         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
48313         module's job.
48314         * m4/jm-macros.m4 (gl_MACROS): Likewise.
48315         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
48316
48317         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
48318         (gl_GETDATE): Use it.
48319
48320         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
48321
48322 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48323
48324         Sync from coreutils.
48325
48326         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
48327         stat-time.h.
48328         * lib/argmatch.h: Include verify.h
48329         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
48330         (ARGMATCH_ASSERT): Remove; unused.
48331         * lib/canonicalize.c: Assume STDC_HEADERS.
48332         * lib/exclude.c: Include "strcase.h".
48333         * lib/regex_internal.h [!defined _LIBC]: Likewise.
48334         * lib/getusershell.c: Include stdio--.h rather than stdio.h
48335         and stdio-safer.h.
48336         (getusershell): Call fopen, not fopen_safer.
48337         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
48338         Do not include unistd-safer.h.
48339         (save_cwd): Don't call fd_safer; no longer needed
48340         now that we include fcntl--.h.
48341
48342         * lib/getdate.y (relative_time): New type.
48343         (RELATIVE_TIME_0): New constant.
48344         (parser_control): Use relative_time instead of doing it ourselves.
48345         (%union): Add new relative_time rel member.
48346         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
48347         Now typeless.
48348         (relunit, relunit_snumber): Now of type rel.
48349         (zone, rel, relunit, get_date): Adjust to above changes.
48350
48351         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
48352         Do not include unistd-safer.h.
48353         (getloadavg): Don't call fd_safer; no longer needed
48354         now that we include fcntl--.h.
48355
48356         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
48357         (make_dir_parents): Treat ENOSYS like EEXIST.
48358
48359         Improve quality of diagnostics on restore_cwd failure.
48360         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
48361         (make_dir_parents): Last arg is now int * (for errno), not bool *.
48362         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
48363         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
48364         each time through the loop.  Do not diagnose restore_cwd failure;
48365         that is the caller's job (and perhaps the caller does not care).
48366
48367         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
48368         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
48369         If the file already exists but is not a directory, don't bother
48370         to try to make its parents.
48371         Close potential file descriptor leak if we can't chdir("/") (!).
48372         Don't always return true if chdir($PWD) fails; return true only
48373         if the requested action was done successfully (except for the
48374         chdir($PWD)).
48375         Don't log final directory unless we actually made it.
48376         Refactor to avoid duplicate code to fix up permissions.
48377         Don't attempt to fix up parent permissions if chdir($PWD) fails.
48378
48379         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
48380         to make it a bit faster and (I hope) clearer.
48381         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
48382         Fix bug in formats like %2N.
48383
48384         * lib/verify.h: New file.
48385
48386 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
48387
48388         Sync from coreutils.
48389         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
48390
48391 2005-09-22  Jim Meyering  <jim@meyering.net>
48392
48393         Sync from coreutils.
48394
48395         * m4/lstat.m4 (gl_FUNC_LSTAT):
48396         Use AC_LIBSOURCES to require lstat.c and lstat.h.
48397         Remove obsolete comment.
48398         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
48399         * m4/xstrtod.m4: Likewise.
48400
48401         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
48402
48403 2005-09-22  Jim Meyering  <jim@meyering.net>
48404
48405         Sync from coreutils.
48406
48407         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
48408
48409         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
48410         the .tm_year member, since otherwise gcc-4.0 would now warn about
48411         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
48412
48413         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
48414         order to avoid an unsuppressible warning from gcc on 64-bit systems.
48415
48416         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
48417         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
48418         when run in a time zone for which daylight savings time is in effect
48419         for the starting date.
48420
48421         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
48422         stop us from restricting permissions of just-created absolute-named
48423         directories.
48424         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
48425         to restore initial working directory.
48426         * lib/mkdir-p.c (make_dir_parents): New parameter:
48427         different_working_dir, to tell caller if/when we change the working
48428         directory and are unable to return to the initial one.
48429         * lib/mkdir-p.h (make_dir_parents): Update prototype.
48430         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
48431         `return false'.  This fixes a bug introduced on 2004-07-30.
48432
48433         * lib/openat.c (fdopendir): Be sure to close the supplied
48434         file descriptor before returning.  This makes our replacement
48435         implementation a little closer to Solaris's, where fdopendir
48436         ties the file descriptor to the returned DIR* pointer.
48437         * lib/openat.c (unlinkat): New function.
48438         * lib/openat.h (unlinkat): Add prototype.
48439         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
48440         (openat_restore_fail): Rename from openat_restore_die.
48441         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
48442
48443         Provide an alternative to exiting immediately upon save_cwd or
48444         restore_cwd failure.  Now, an application can arrange e.g.,
48445         to perform a longjump in that case.
48446         * lib/openat.c: Include dirname.h.
48447         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48448         (rpl_openat, fdopendir, fstatat): Call openat_save_die
48449         and openat_restore_die rather than calling error directly.
48450         Don't include "error.h" or "exitfail.h"; they're no longer needed.
48451
48452         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48453         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48454         define.
48455
48456         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48457         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48458                             int utc, int nanoseconds);
48459         Background:
48460         date should not have to allocate a megabyte of virtual memory to
48461         handle a format argument like +%1048575T.  When implemented with
48462         strftime, it must allocate such a buffer, use strftime to fill it
48463         in, print it, then free it.
48464         With fprintftime, it simply prints everything and exits.
48465         With no need for memory allocation, that's one fewer way to fail.
48466         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48467         optional field width, not before, so we accept %9:z, not %:9z.
48468         (my_strftime): Be sure to use L_('x') for literals.
48469
48470         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48471         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48472         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48473         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48474         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48475         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48476         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48477         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48478         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48479         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48480         * lib/xgethostname.c, lib/xreadlink.c:
48481         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48482
48483         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48484         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48485         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48486         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48487         and don't include <sys/file.h>).
48488
48489 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
48490
48491         Sync from coreutils.
48492
48493         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48494         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48495         [!LDAV_DONE]: Avoid unused variable warning.
48496
48497 2005-09-21  Bruno Haible  <bruno@clisp.org>
48498
48499         * lib/unicodeio.h (unicode_to_mb): New declaration.
48500
48501 2005-09-20  Derek Price  <derek@ximbiot.com>
48502
48503         * lib/getaddrinfo.c: Don't include <netdb.h> included from
48504         getaddrinfo.h.
48505
48506 2005-09-20  Bruno Haible  <bruno@clisp.org>
48507
48508         * gnulib-tool: Remove trailing slashes from the values specified for
48509         --source-base, --m4-base, --tests-base, --aux-dir.
48510         Suggested by Simon Josefsson <jas@extundo.com>.
48511
48512 2005-09-20  Bruno Haible  <bruno@clisp.org>
48513
48514         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48515         func_modules_to_filelist, func_import, func_create_testdir): Make all
48516         sorting results locale-independent, so that gnulib-cache.m4 doesn't
48517         change when gnulib-tool is invoked in a different locale.
48518
48519 2005-09-19  Simon Josefsson  <jas@extundo.com>
48520
48521         * m4/socklen.m4: Fix typo.
48522
48523 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48524
48525         Use a consistent style for including <config.h>.
48526         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48527         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48528         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48529         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48530         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48531         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48532         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48533         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48534         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48535         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48536         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48537         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48538         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48539         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48540         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48541         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48542         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48543         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48544         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48545         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48546         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48547         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48548         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48549         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48550         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48551         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48552         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48553         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48554         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48555         lib/xstrtoumax.c, lib/yesno.c:
48556         Standardize inclusion of config.h.
48557         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48558         lib/inttostr.h:  Removed inclusion of config.h from header files.
48559         * lib/inttostr.c:  Adjusted in-tree users.
48560         * lib/timespec.h: Remove superfluous warning to include config.h.
48561         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48562         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48563         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48564         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48565         config.h with HAVE_CONFIG_H.
48566
48567 2005-09-19  Jim Meyering  <jim@meyering.net>
48568
48569         * modules/pathmax (License): Change to LGPL.
48570
48571 2005-09-19  Derek Price  <derek@ximbiot.com>
48572
48573         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48574
48575 2005-09-19  Bruno Haible  <bruno@clisp.org>
48576
48577         * gnulib-tool (import): Provide default for --tests-base.
48578
48579 2005-09-19  Bruno Haible  <bruno@clisp.org>
48580
48581         * doc/quote.texi: New file, extracted from gnulib.texi.
48582         * doc/ctime.texi: New file, extracted from gnulib.texi.
48583         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48584         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48585         * doc/gnulib.texi: Include them.
48586
48587 2005-09-18  Bruno Haible  <bruno@clisp.org>
48588
48589         Portability fix.
48590         * gnulib-tool (func_readlink): New function.
48591         (func_ln_if_changed): Use it.
48592
48593 2005-09-18  Bruno Haible  <bruno@clisp.org>
48594
48595         * gnulib-tool: Support --with-tests also with --import.
48596         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48597         (func_import): Use variables $testsbase and $inctests. Emit a
48598         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48599         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48600         SUBDIRS += $testsdir.
48601         (func_create_testdir): Update.
48602
48603 2005-09-18  Bruno Haible  <bruno@clisp.org>
48604
48605         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48606         instead of $dry_run.
48607         (func_cp_if_changed, func_mv_if_changed): Remove functions.
48608         (func_ln_if_changed): Don't handle dry-run here.
48609         (func_import): In dry-run mode, detect more precisely which actions
48610         would be performed, and don't use "...ing" verbs.
48611
48612 2005-09-18  Bruno Haible  <bruno@clisp.org>
48613
48614         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48615         (func_import): Use join on two temporary files instead of three nested
48616         loops, in order to determine which files are new or old.
48617
48618 2005-09-18  Bruno Haible  <bruno@clisp.org>
48619
48620         * gnulib-tool (func_import): Comment out code that spits out the
48621         new files with --dry-run.
48622
48623 2005-09-18  Bruno Haible  <bruno@clisp.org>
48624
48625         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48626
48627 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48628
48629         * lib/stat-time.h: New file.
48630         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48631         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
48632         in a different way.
48633         (timespec_cmp): New function.
48634         * lib/utimecmp.c: Include stat-time.h.
48635         (SYSCALL_RESOLUTION): Depend on whether various struct stat
48636         members exist, not on the obsolescent ST_MTIM_NSEC.
48637         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48638
48639 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48640
48641         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48642
48643 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
48644
48645         * MODULES.html.sh (File system functions): Add stat-time.
48646         * modules/stat-time: New file.
48647         * modules/timespec (Files): Remove m4/st_mtim.m4; this
48648         is now done in a different way, by the stat-time module.
48649         * modules/utimecmp (Depends-on): Add stat-time.
48650
48651 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48652
48653         * m4/st_mtim.m4: Remove.  Superseded by...
48654         * m4/stat-time.m4: New file.
48655         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48656         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48657
48658 2005-09-15  Derek Price  <derek@ximbiot.com>
48659
48660         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48661
48662 2005-09-15  Derek Price  <derek@ximbiot.com>
48663
48664         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48665         * lib/regex_internal.c: Ditto, using this...
48666         (__GNUC_PREREQ): ...new macro.
48667         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48668         using...
48669         (__GNUC_PREREQ): ...this new macro.
48670
48671         * lib/strstr.h: Include string.h. Define strstr as a macro here.
48672
48673 2005-09-15  Derek Price  <derek@ximbiot.com>
48674             Paul Eggert  <eggert@cs.ucla.edu>
48675
48676         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48677         changes, consolidating in...
48678         * lib/regex_internal.h: ...this file.
48679
48680 2005-09-13  Jim Meyering  <jim@meyering.net>
48681
48682         * lib/canon-host.c: Filter through gnu indent and reword comments
48683         slightly.
48684         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48685
48686 2005-09-13  Derek Price  <derek@ximbiot.com>
48687
48688         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48689         failure.
48690         Reported by Jim Meyering  <jim@meyering.net>.
48691
48692 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
48693
48694         * lib/base64.c: Typo.
48695         (base64_encode): Put b64str in initialized data section.
48696
48697 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
48698
48699         Merge glibc and coreutils changes into gnulib, plus a few
48700         extra fixes.
48701         * lib/md5.c: Use #error rather than a string.
48702         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
48703         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48704         (__attribute__): Define to empty for non recent-GCC.
48705         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48706         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48707         Renamed from their non-__ counterparts, with new macros replacing
48708         them if not _LIBC.  Add __THROW attribute.
48709         (rol): Remove.
48710         (struct md5_ctx): Align buffer if using GCC.
48711         * lib/sha1.h (struct sha1_ctx): Likewise.
48712         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
48713         The old name was backwards.
48714         (NOTSWAP): Remove; not used.
48715         (rol): New macro, moved here from md5.h.
48716         (sha1_process_block): Remove a FIXME that doesn't make sense.
48717
48718 2005-09-12  Derek Price  <derek@ximbiot.com>
48719
48720         Return usable errors from canon-host.
48721         * lib/canon-host.h: New file.
48722         * lib/canon-host.c (canon_host): Wrap...
48723         (canon_host_r): ...this new function, which now relies exclusively on
48724         getaddrinfo.
48725         (ch_strerror): New function.
48726         (last_cherror): New global.
48727         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48728         interface.
48729         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
48730         void *.
48731         (freeaddrinfo): Free ai->ai_canonname when set.
48732
48733 2005-09-12  Derek Price  <derek@ximbiot.com>
48734
48735         Make canon-host require getaddrinfo.
48736         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48737         AC_LIBSOURCE canon-host.h.  Call...
48738         (gl_PREREQ_CANON_HOST): ...this new function, which requires
48739         gl_GETADDRINFO.
48740         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48741
48742 2005-09-12  Derek Price  <derek@ximbiot.com>
48743
48744         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
48745         LGPL.
48746         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
48747
48748 2005-09-12  Derek Price  <derek@ximbiot.com>
48749
48750         * lib/gai_strerror.c: Include config.h when available.  Include
48751         getaddrinfo.h before other headers to test interface.
48752         Reported by Larry Jones <lawrence.jones@ugs.com>.
48753
48754 2005-09-12  Derek Price  <derek@ximbiot.com>
48755             Paul Eggert  <eggert@cs.ucla.edu>
48756
48757         * modules/glob (Files): Add glob-libc.h.
48758
48759 2005-09-12  Derek Price  <derek@ximbiot.com>
48760             Paul Eggert  <eggert@cs.ucla.edu>
48761
48762         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48763         glob_.h, glob-libc.h.
48764         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48765
48766 2005-09-12  Derek Price  <derek@ximbiot.com>
48767             Paul Eggert  <eggert@cs.ucla.edu>
48768
48769         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
48770         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48771         protecting things that should be done only in gnulib contexts.
48772         * lib/glob_.h: New file, containing only the glob things needed for
48773         gnulib.
48774         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
48775         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48776         (glob, globfree, glob_pattern_p): Now defined simply in terms of
48777         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48778         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48779         and to respect the namespace rules better.
48780
48781 2005-09-08  Simon Josefsson  <jas@extundo.com>
48782
48783         * modules/socklen: New file.
48784
48785 2005-09-08  Simon Josefsson  <jas@extundo.com>
48786
48787         * m4/socklen.m4: New file.
48788
48789 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48790
48791         * modules/utimens (Files): Add m4/utimbuf.m4, since
48792         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48793         Reported by Sergey Poznyakoff.
48794
48795 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48796
48797         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48798         definitions, since that's the preferred style in glibc.
48799         Fix a minor spacing issue, and update copyright notice to match
48800         glibc's.
48801
48802 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48803
48804         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48805
48806 2005-09-06  Simon Josefsson  <jas@extundo.com>
48807
48808         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48809         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
48810
48811 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48812
48813         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48814         warning.
48815
48816 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48817
48818         * config/srclist.txt: Add glibc bug 1302.
48819
48820 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48821
48822         Change bitset word type from unsigned int to unsigned long int,
48823         as this has better performance on typical 64-bit hosts.
48824         Port bitset code to hosts with unusual word sizes.
48825         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48826         (build_collating_symbol):
48827         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48828         argument is a bitset.  This is merely a style issue, but it makes
48829         it clearer that an entire array is expected.
48830         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48831         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48832         Port to the case where bitset_word is not the same as unsigned int.
48833         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48834         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48835         Likewise.
48836         * lib/regexec.c (check_dst_limits_calc_pos_1,
48837         check_subexp_matching_top):
48838         (build_trtable, group_nodes_into_DFAstates):
48839         Likewise.
48840         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48841         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48842         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48843         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48844         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48845         * lib/regcomp.c (optimize_subexps, lower_subexp):
48846         Work even if bitset_word has holes in its bitwise representation.
48847         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48848         * lib/regexec.c (check_dst_limits_calc_pos_1,
48849         check_subexp_matching_top):
48850         Likewise.
48851         * lib/regex_internal.c (re_string_reconstruct):
48852         Don't assume UCHAR_MAX == 255.
48853         * lib/regex_internal.h (bitset_set_all): Likewise.
48854         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48855         All uses changed.
48856         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
48857         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48858         All uses changed.
48859         (BITSET_WORD_MAX): New macro.
48860         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48861         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
48862         (bitset_empty, bitset_copy):
48863         Prefer sizeof (bitset) to multiplying it out ourselves.
48864         (bitset_not_merge): Remove; unused.
48865         (bitset_contain): Return bool, not unsigned int with one bit on.
48866         All callers changed.
48867         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48868         alignment than re_node_set; do this by defining a new internal
48869         type struct dests_alloc and using it to allocate memory.
48870
48871 2005-09-05  Bruno Haible  <bruno@clisp.org>
48872
48873         * gnulib-tool (func_import): Fix comparison in handling of symbolic
48874         links.
48875
48876 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
48877
48878         * modules/size_max (Makefile.am): Add size_max.h
48879
48880 2005-09-04  Derek Price  <derek@ximbiot.com>
48881
48882         * gnulib-tool (func_import): Fix reversed $symbolic logic.
48883
48884 2005-09-03  Simon Josefsson  <jas@extundo.com>
48885
48886         * gnulib-tool: Fix typo.
48887
48888 2005-09-03  Simon Josefsson  <jas@extundo.com>
48889
48890         * config/srclist.txt: Add glibc bug 1293.
48891
48892 2005-09-03  Derek Price  <derek@ximbiot.com>
48893
48894         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48895         From Larry Jones <lawrence.jones@ugs.com>.
48896
48897 2005-09-02  Simon Josefsson  <jas@extundo.com>
48898
48899         * modules/socklen: New file.
48900
48901 2005-09-02  Simon Josefsson  <jas@extundo.com>
48902
48903         * modules/havelib: New module.
48904
48905         * modules/gettext, modules/iconv, modules/lock, modules/readline:
48906         Use havelib.
48907
48908 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48909
48910         Check for arithmetic overflow when calculating sizes, to prevent
48911         some buffer-overflow issues.  These patches are conservative, in the
48912         sense that when I couldn't determine whether an overflow was possible,
48913         I inserted a run-time check.
48914         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48915         macros.
48916         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48917         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48918         (re_xnrealloc, re_x2nrealloc): New inline functions.
48919         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48920         parse_bracket_exp):
48921         (build_equiv_class, build_charclass): Check for arithmetic overflow
48922         in size expression calculations.
48923         * lib/regex_internal.c (re_string_realloc_buffers):
48924         (build_wcs_upper_buffer, re_node_set_add_intersect):
48925         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48926         (re_dfa_add_node, register_state): Likewise.
48927         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48928         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48929         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48930         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48931
48932 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
48933
48934         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48935         m4/ulonglong.m4.  Problem reported by Martin Lambers.
48936
48937 2005-09-02  Bruno Haible  <bruno@clisp.org>
48938
48939         Support for lib vs. lib64 distinction on biarch platforms.
48940         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48941         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48942         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48943
48944 2005-09-02  Bruno Haible  <bruno@clisp.org>
48945
48946         * gnulib-tool (import): In the other first-use case, provide defaults
48947         as well.
48948
48949 2005-09-02  Bruno Haible  <bruno@clisp.org>
48950
48951         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48952         patches not yet found in the latest gettext release.
48953
48954 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48955
48956         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48957         to avoid a collision with bits/local_lim.h in glibc.
48958         All uses changed.  Problem reported by Dmitry V. Levin in
48959         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48960
48961         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48962         bugs in int versus size_t comparisons.
48963         (re_string_context_at): Fix bug where the code assumed that
48964         Idx is signed.
48965
48966         Use bool where appropriate.
48967         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48968         All callers changed.
48969         (calc_eclosure_iter): Likewise, for ROOT arg.
48970         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48971         (build_charclass_op): Likewise, for NON_MATCH arg.
48972         * lib/regex_internal.c (re_string_allocate, re_string_construct):
48973         (re_string_construct_common): Likewise, for ICASE arg.
48974         * lib/regexec.c (re_search_2_stub, re_search_stub):
48975         Likewise, for RET_LEN arg.
48976         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48977         (set_regs): Likewise, for FL_BACKTRACK arg.
48978         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48979         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48980         (calc_eclosure_iter, parse_bracket_exp):
48981         Use bool for internal variables that are booleans.
48982         * lib/regexec.c (re_search_internal, check_matching,
48983         proceed_next_node):
48984         (set_regs, build_sifted_states, sift_states_bkref):
48985         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48986         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48987         (find_collation_sequence_value):
48988         Likewise.
48989         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48990         (re_node_set_compare):
48991         Return bool, not int. All callers changed.
48992         * lib/regexec.c (check_halt_node_context, check_dst_limits):
48993         (build_trtable, check_node_accept): Likewise.
48994         * lib/regex_internal.h: Include stdbool.h.
48995
48996         Fix bugs uncovered when converting to bool.
48997         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48998         failure instead of charging ahead blindly.
48999         * lib/regex_internal.c (register_state): Likewise.
49000         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
49001         for freeing internal storage.
49002         (group_nodes_into_DFA_states): Use unsigned int, not int, for
49003         bitset pieces used as boolean, to avoid undefined behavior
49004         on hosts that do int overflow checking.
49005
49006 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49007
49008         * config/srclist.txt: Add glibc bugs 1285-1287.
49009
49010 2005-09-01  Jim Meyering  <jim@meyering.net>
49011
49012         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
49013         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
49014         Require gl_STAT_MACROS, too.
49015
49016 2005-09-01  Bruno Haible  <bruno@clisp.org>
49017
49018         * gnulib-tool (import): In the first-use case, provide defaults.
49019
49020 2005-09-01  Bruno Haible  <bruno@clisp.org>
49021
49022         * gnulib-tool (func_import): Remove the .tmp files.
49023
49024 2005-09-01  Bruno Haible  <bruno@clisp.org>
49025
49026         * gnulib-tool (func_import): Fix handling of symbolic links.
49027
49028 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49029
49030         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
49031         old glibc regex code mishandles strings longer than 2**31 bytes.
49032         This patch fixes this when the regex code is used in gnulib
49033         (i.e., outside glibc).
49034
49035         This patch should not affect the use of the regex code inside
49036         glibc.  No doubt this problem also needs to be handled for glibc
49037         as well, but the result will be an incompatible change to the
49038         glibc ABI, and the old ABI will have to be supported too.  That
49039         can be the the subject for another patch.
49040
49041         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
49042         governing whether the rest of this patch is active.  By default,
49043         the macro is disabled and the patch has no effect.
49044         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
49045         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
49046         (struct re_pattern_buffer, re_search, re_search_2, re_match):
49047         (re_match_2, re_set_registers): Use the new types.
49048         * lib/regex_internal.h (Idx, re_hashval_t): New types.
49049         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
49050         New macros.
49051         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
49052         (re_string_context_at, bin_tree_t, re_dfastate_t):
49053         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
49054         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
49055         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
49056         (re_string_char_size_at, re_string_wchar_at):
49057         (re_string_elem_size_at):
49058         Use the new types and macros to port to 64-bit hosts.
49059         Use unsigned types for internal values, so that the code
49060         mostly works even for arrays larger than SSIZE_MAX.
49061         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
49062         (search_duplicated_node, calc_eclosure_iter, fetch_number):
49063         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
49064         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
49065         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
49066         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
49067         (calc_inveclosure, parse_dup_op, build_range_exp):
49068         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
49069         (fetch_number, create_token_tree, mark_opt_subexp):
49070         Likewise.
49071         * lib/regex_internal.c (re_string_construct_common,
49072         create_ci_newstate):
49073         (create_cd_newstate, re_string_allocate, re_string_construct):
49074         (re_string_realloc_buffers, build_wcs_upper_buffer):
49075         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49076         (re_string_reconstruct, re_string_peek_byte_case):
49077         (re_string_fetch_byte_case, re_string_context_at):
49078         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49079         (re_node_set_init_copy, re_node_set_add_intersect):
49080         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49081         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49082         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49083         (re_acquire_state, re_acquire_state_context, register_state):
49084         Likewise.
49085         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
49086         search_cur_bkref_entry):
49087         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
49088         (re_search_internal, re_search_2_stub, re_search_stub)
49089         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
49090         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
49091         (update_cur_sifted_state, check_dst_limits):
49092         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49093         (check_subexp_limits, sift_states_bkref, merge_state_array):
49094         (check_subexp_matching_top, get_subexp, get_subexp_sub):
49095         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
49096         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49097         (expand_bkref_cache, check_node_accept_bytes):
49098         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
49099         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
49100         (acquire_init_state_context, check_halt_node_context):
49101         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
49102         (sift_states_backward, clean_state_log_if_needed):
49103         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
49104         (find_recover_state, transit_state_sb, transit_state_mb):
49105         (transit_state_bkref, build_trtable, match_ctx_clean):
49106         Likewise.
49107         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
49108         to work around an assumption that REG_MISSING is negative.
49109
49110         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
49111         (seek_collating_symbol_entry) [defined _LIBC]:
49112         (lookup_collation_sequence_value) [defined _LIBC]:
49113         (build_range_exp, build_collating_symbol) [defined _LIBC]:
49114         Use prototypes rather than old-style function definitions.
49115         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
49116         (transit_state_sb) [0]:
49117         (find_collation_sequence_value) [defined _LIBC]: Likewise.
49118
49119         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
49120         rm_eo.
49121
49122         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
49123         (optimize_subexps, lower_subexp):
49124         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
49125         since the signed shift might overflow.  Use 1u<<31 instead.
49126         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
49127         Likewise.
49128         * lib/regexec.c (check_dst_limits_calc_pos_1,
49129         check_subexp_matching_top): Likewise.
49130
49131         * lib/regcomp.c (optimize_subexps, lower_subexp):
49132         Use CHAR_BIT rather than 8, for clarity.
49133         * lib/regexec.c (check_dst_limits_calc_pos_1):
49134         (check_subexp_matching_top): Likewise.
49135         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
49136         have to worry about portability issues when shifting it left.
49137         Remove no-longer-needed test for table_size > 0.
49138         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
49139         in a word, as the resulting behavior is undefined.
49140         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
49141         in one case, a <= should have been an <, and in another case the
49142         whole test was missing.
49143         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
49144         the standard name CHAR_BIT.
49145         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
49146         this is not true on one's complement and signed-magnitude hosts.
49147
49148         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
49149         next_last_offset.
49150         (struct re_dfa_t): Remove unused member states_alloc.
49151         * lib/regcomp.c (init_dfa): Don't initialize unused members.
49152
49153 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49154
49155         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
49156         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
49157         and large-file glibc and in 32-bit large-file Solaris.
49158
49159 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49160
49161         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
49162         lengths fit in regoff_t; this isn't true if regoff_t is the same
49163         width as size_t.
49164         * lib/regex.c (re_search_internal): 5th arg is LAST_START
49165         (= START + RANGE) instead of RANGE.  This avoids overflow
49166         problems when regoff_t is the same width as size_t.
49167         All callers changed.
49168         (re_search_2_stub): Check for overflow when adding the
49169         sizes of the two strings.
49170         (re_search_stub): Check for overflow when adding START
49171         to RANGE; if it occurs, substitute the extreme value.
49172
49173 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
49176
49177 2005-08-31  Jim Meyering  <jim@meyering.net>
49178
49179         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
49180         a pointer-to-const.
49181         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
49182         (register_state): Likewise.
49183         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
49184         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
49185         (group_nodes_into_DFAstates): Likewise.
49186
49187 2005-08-31  Jim Meyering  <jim@meyering.net>
49188
49189         * check-module: Add a FIXME comment.
49190
49191 2005-08-31  Eric Blake  <ebb9@byu.net>
49192
49193         * modules/unistd-safer (Files): Add unistd--.h.
49194         * modules/stdio-safer (Files): Add stdio--.h.
49195
49196 2005-08-31  Derek Price  <derek@ximbiot.com>
49197
49198         * lib/getdelim.c (getdelim): Return EOF on EOF.
49199         Reported by Larry Jones <lawrence.jones@ugs.com>.
49200
49201 2005-08-31  Bruno Haible  <bruno@clisp.org>
49202
49203         Avoid unnecessary diffs in the generated lib/Makefile.am.
49204         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
49205         the generated files.
49206         (func_import): Don't set cmd.
49207
49208 2005-08-31  Bruno Haible  <bruno@clisp.org>
49209
49210         * lib/strstr.c: Include <stddef.h>, for NULL.
49211         * lib/strcasestr.c: Likewise.
49212         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49213
49214 2005-08-31  Bruno Haible  <bruno@clisp.org>
49215
49216         * gnulib-tool: New option --macro-prefix.
49217         (func_import): Use macro_prefix.
49218         (import): Handle option --macro-prefix.
49219
49220 2005-08-31  Bruno Haible  <bruno@clisp.org>
49221
49222         * gnulib-tool (import): Rename most ac_* variables to cached_*.
49223         Also use new variables cached_lgpl, cached_libtool.
49224
49225 2005-08-31  Bruno Haible  <bruno@clisp.org>
49226
49227         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
49228         always instantiating them.
49229
49230 2005-08-31  Bruno Haible  <bruno@clisp.org>
49231
49232         * gnulib-tool (func_import): Read the previous cached settings
49233         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
49234         earlier added by gnulib but are now dropped. Warn when a gnulib file
49235         overwrites a non-gnulib file.
49236
49237 2005-08-31  Bruno Haible  <bruno@clisp.org>
49238
49239         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
49240         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
49241         projects that don't keep autogenerated files in CVS. Put into
49242         actioncmd only the specified modules, not the transitive closure.
49243
49244 2005-08-31  Bruno Haible  <bruno@clisp.org>
49245
49246         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
49247         Create directories that shall be filled.
49248         (import): Don't look for gl_* macros in configure.ac. Recurse across
49249         all directories containing a gnulib-cache.m4 files, if meaningful.
49250
49251 2005-08-31  Bruno Haible  <bruno@clisp.org>
49252
49253         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
49254         (import): Set seen_libtool when we see gl_LIBTOOL.
49255
49256 2005-08-31  Bruno Haible  <bruno@clisp.org>
49257
49258         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
49259         declaration macro definitions from generated gnulib.m4.
49260
49261 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
49262
49263         * lib/iconvme.h: Add prototype for iconv_alloc.
49264
49265 2005-08-29  Simon Josefsson  <jas@extundo.com>
49266
49267         * lib/iconvme.c: Fix errno.
49268
49269 2005-08-29  Bruno Haible  <bruno@clisp.org>
49270
49271         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
49272         that it works when the directory contains spaces.
49273
49274 2005-08-29  Bruno Haible  <bruno@clisp.org>
49275
49276         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
49277
49278 2005-08-29  Bruno Haible  <bruno@clisp.org>
49279
49280         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
49281         Emit more advice.
49282
49283 2005-08-29  Bruno Haible  <bruno@clisp.org>
49284         and Stepan Kasal  <kasal@ucw.cz>
49285
49286         * check-module: If more parameters are given, check each of them
49287         separately; add more exceptions, as noted by Jim Meyering.
49288         (check_module): New procedure.
49289         (%exempt_header): Now contains all exceptions.
49290
49291 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
49292
49293         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
49294
49295 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
49296
49297         * lib/iconvme.c: Split iconv_string into iconv_alloc.
49298
49299 2005-08-28  Bruno Haible  <bruno@clisp.org>
49300
49301         * m4/gnulib-tool.m4: New file.
49302
49303 2005-08-27  Jim Meyering  <jim@meyering.net>
49304
49305         * modules/unistd-safer (Files): Add pipe-safer.c.
49306         * modules/fcntl-safer (Files): Add creat-safer.c.
49307
49308 2005-08-27  Jim Meyering  <jim@meyering.net>
49309
49310         * m4/stdlib-safer.m4: New file.  From coreutils.
49311         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
49312         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
49313         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
49314         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
49315         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
49316
49317 2005-08-27  Jim Meyering  <jim@meyering.net>
49318
49319         * lib/fopen-safer.c: Merge minor changes from coreutils.
49320         * lib/dup-safer.c: Likewise.
49321         * lib/fd-safer.c: Likewise.
49322
49323         Merge from coreutils.
49324         * lib/stdio--.h: New file.
49325         * lib/stdlib--.h: New file.
49326         * lib/mkstemp-safer.c: New file.
49327
49328         GNU tar needs these.
49329         * lib/pipe-safer.c: New file.
49330         * lib/creat-safer.c: New file.
49331         * lib/fcntl--.h (creat): Define to creat_safer.
49332         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
49333         * lib/unistd--.h (pipe): Define to pipe_safer.
49334         * lib/unistd-safer.h: Declare pipe_safer.
49335
49336 2005-08-26  Simon Josefsson  <jas@extundo.com>
49337
49338         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
49339         Haible <bruno@clisp.org>.
49340
49341 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
49342
49343         * lib/regex_internal.h: Remove all references to
49344         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
49345         or better.
49346         (bitset_not, bitset_merge, bitset_not_merge):
49347         (bitset_mask, re_string_allocate, re_string_construct):
49348         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
49349         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
49350         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
49351         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
49352         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49353         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49354         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
49355         (re_acquire_state_context):
49356         Remove unnecessary forward decls.
49357         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
49358         Put __attribute at function definition,
49359         now that the function decl has been removed.
49360         * lib/regex_internal.c (re_string_peek_byte_case):
49361         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
49362         Likewise.
49363
49364 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
49365
49366         * m4/regex.m4: Add AC_PREREQ(2.50).
49367         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
49368
49369 2005-08-25  Simon Josefsson  <jas@extundo.com>
49370
49371         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
49372         __fsetlocking.
49373
49374 2005-08-25  Simon Josefsson  <jas@extundo.com>
49375
49376         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
49377         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
49378         GLIBC specific code.
49379
49380 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49381
49382         Make regex safe for g++.  This fixes one real bug (an "err"
49383         that should have been "*err").  g++ problem reported by
49384         Sam Steingold.
49385         * lib/regex_internal.h (re_calloc): New macro, consistent with
49386         re_malloc etc.  All callers of calloc changed to use re_calloc.
49387         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
49388         not int.  All callers changed.
49389         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
49390         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
49391         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
49392         (find_recover_state): Change "err" to "*err"; this fixes what
49393         appears to be a real bug.
49394         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
49395         versus int.
49396
49397 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49398
49399         * modules/regex (Depends-on): Add malloc, since the code
49400         assumes that !malloc(0) means failure.
49401
49402 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49403
49404         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
49405
49406         alloca modernization/simplification for regex.
49407         * lib/regex.c: Remove portability cruft for alloca.  This no longer
49408         needs to be at the start of the file, and can be moved into
49409         regex_internal.h and simplified.
49410         * lib/regex_internal.h: Include <alloca.h>.
49411         (__libc_use_alloca) [!defined _LIBC]: New macro.
49412         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
49413         now works outside glibc.
49414
49415 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49416
49417         * config/srclist.txt: Add glibc bugs 1241, 1245.
49418
49419 2005-08-25  Jim Meyering  <jim@meyering.net>
49420
49421         * lib/open-safer.c: Include <config.h>.
49422         Otherwise, we'd lose LARGEFILE support in any file using
49423         e.g. "fcntl--.h"
49424
49425 2005-08-25  Bruno Haible  <bruno@clisp.org>
49426
49427         * m4/minmax.m4: Require autoconf 2.52.
49428         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
49429         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
49430         alternatives of translit over the alphabet.
49431         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
49432
49433 2005-08-24  Simon Josefsson  <jas@extundo.com>
49434
49435         * tests/test-getpass.c: New file.
49436
49437 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49438
49439         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
49440         for GNU regex features.
49441
49442 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49443
49444         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
49445         * lib/regex.h (regerror): Likewise.
49446
49447         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49448         requires this.  (The code never needed it.)
49449
49450         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49451         All uses of recently-renamed identifiers changed to use the new,
49452         POSIX-compliant names.  The code will build and run just fine
49453         without these changes, but it's better to eat our own dog food
49454         and use the standard-conforming names.
49455
49456         * lib/regex.h: Fix a multitude of POSIX name space violations.
49457         These changes have an effect only for programs that define
49458         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49459         do not change anything for programs compiled in the normal way.
49460         Also, there is no effect on the ABI.
49461
49462         (_REGEX_SOURCE): New macro.
49463         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49464         defined and _GNU_SOURCE is not; this fixes a name space violation.
49465
49466         Rename the following macros to obey POSIX requirements.
49467         The old names are still visible as macros if _REGEX_SOURCE is defined.
49468         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49469         RE_BACKSLASH_ESCAPE_IN_LISTS.
49470         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49471         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49472         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49473         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49474         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49475         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49476         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49477         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49478         (REG_INTERVALS): renamed from RE_INTERVALS.
49479         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49480         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49481         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49482         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49483         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49484         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49485         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49486         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49487         RE_UNMATCHED_RIGHT_PAREN_ORD.
49488         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49489         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49490         (REG_DEBUG): renamed from RE_DEBUG.
49491         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49492         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
49493         unusual, since we can't clash with the POSIX REG_ICASE.
49494         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49495         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49496         (REG_NO_SUB): renamed from RE_NO_SUB.
49497         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49498         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49499         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49500         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49501         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49502         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49503         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49504         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49505         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49506         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49507         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49508         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49509         RE_SYNTAX_POSIX_MINIMAL_BASIC.
49510         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49511         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49512         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49513         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
49514         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49515         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49516         (REG_FIXED): Renamed from REGS_FIXED.
49517         (REG_NREGS): Renamed from RE_NREGS.
49518
49519         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49520         of other REG_* macros, since POSIX says the user is allowed to
49521         #undef these macros selectively.
49522
49523         (reg_errcode_t): Update comment stating what other tables need
49524         to be consistent.
49525
49526         Rename the following enum values to obey POSIX requirements.
49527         The old names are still visible as macros.
49528         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
49529         is not defined, since GNU is supposed to be a superset of POSIX as
49530         much as possible, and since we want reg_errcode_t to be a signed
49531         type for implementation consistency.
49532         (_REG_NOERROR): Renamed from REG_NOERROR.
49533         (_REG_NOMATCH): Renamed from REG_NOMATCH.
49534         (_REG_BADPAT): Renamed from REG_BADPAT.
49535         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49536         (_REG_ECTYPE): Renamed from REG_ECTYPE.
49537         (_REG_EESCAPE): Renamed from REG_EESCAPE.
49538         (_REG_ESUBREG): Renamed from REG_ESUBREG.
49539         (_REG_EBRACK): Renamed from REG_EBRACK.
49540         (_REG_EPAREN): Renamed from REG_EPAREN.
49541         (_REG_EBRACE): Renamed from REG_EBRACE.
49542         (_REG_BADBR): Renamed from REG_BADBR.
49543         (_REG_ERANGE): Renamed from REG_ERANGE.
49544         (_REG_ESPACE): Renamed from REG_ESPACE.
49545         (_REG_BADRPT): Renamed from REG_BADRPT.
49546         (_REG_EEND): Renamed from REG_EEND.
49547         (_REG_ESIZE): Renamed from REG_ESIZE.
49548         (_REG_ERPAREN): Renamed from REG_ERPAREN.
49549         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49550         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49551         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49552         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49553
49554         (_REG_RE_NAME, _REG_RM_NAME): New macros.
49555         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
49556         changed.  But support the old name if the new one is not defined
49557         and if _REGEX_SOURCE.
49558
49559         Change the following member names in struct re_pattern_buffer.
49560         The old names are still supported if !_REGEX_SOURCE.
49561         The new names are always supported, regardless of _REGEX_SOURCE.
49562         (re_buffer): Renamed from buffer.
49563         (re_allocated): Renamed from allocated.
49564         (re_used): Renamed from used.
49565         (re_syntax): Renamed from syntax.
49566         (re_fastmap): Renamed from fastmap.
49567         (re_translate): Renamed from translate.
49568         (re_can_be_null): Renamed from can_be_null.
49569         (re_regs_allocated): Renamed from regs_allocated.
49570         (re_fastmap_accurate): Renamed from fastmap_accurate.
49571         (re_no_sub): Renamed from no_sub.
49572         (re_not_bol): Renamed from not_bol.
49573         (re_not_eol): Renamed from not_eol.
49574         (re_newline_anchor): Renamed from newline_anchor.
49575
49576         Change the following member names in struct re_registers.
49577         The old names are still supported if !_REGEX_SOURCE.
49578         The new names are always supported, regardless of _REGEX_SOURCE.
49579         (rm_num_regs): Renamed from num_regs.
49580         (rm_start): Renamed from start.
49581         (rm_end): Renamed from end.
49582
49583         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49584         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49585         Prepend __ to parameter names.
49586
49587         Undo yesterday's changes.
49588
49589 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49590
49591         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49592         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
49593         lib/regex.c.
49594
49595 2005-08-24  Jim Meyering  <jim@meyering.net>
49596
49597         Sync from coreutils.
49598         * m4/fcntl-safer.m4: New file.
49599
49600         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49601         and object files for this module.
49602
49603 2005-08-24  Jim Meyering  <jim@meyering.net>
49604
49605         Sync from coreutils.
49606         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49607
49608 2005-08-24  Jim Meyering  <jim@meyering.net>
49609
49610         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49611         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49612
49613 2005-08-24  Jim Meyering  <jim@meyering.net>
49614
49615         * modules/fcntl-safer: New module.
49616         * modules/fts (Depends-on): Add fcntl-safer.
49617         * MODULES.html.sh (File descriptor based Input/Output):
49618         Add fcntl-safer.
49619
49620 2005-08-24  Bruno Haible  <bruno@clisp.org>
49621
49622         Support for unit test modules.
49623         * modules/README: Mention tests modules.
49624         * modules/TEMPLATE-TESTS: New file.
49625         * gnulib-tool: New options --extract-tests-module, --with-tests and
49626         --tests-base (unused for the moment).
49627         (testsbase, inctests): New variables.
49628         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49629         (func_verify_module): Exclude TEMPLATE-TESTS.
49630         (func_verify_nontests_module, func_verify_tests_module): New functions.
49631         (func_get_dependencies): Add implicit dependency for tests modules.
49632         (func_get_tests_module): New function.
49633         (func_modules_transitive_closure): When --with-tests was specified,
49634         include the unit tests as well, unless explicitly avoided.
49635         (func_emit_lib_Makefile_am): Ignore the tests modules here.
49636         (func_emit_tests_Makefile_am): New function.
49637         (func_create_testdir): When --with-tests was specified, emit a
49638         tests/ directory.
49639         * MODULES.html.sh (Future developments): Update.
49640
49641 2005-08-24  Bruno Haible  <bruno@clisp.org>
49642
49643         * modules/tls-tests: New file.
49644         * tests/test-tls.c: New file, from GNU gettext.
49645
49646 2005-08-24  Bruno Haible  <bruno@clisp.org>
49647
49648         * modules/lock-tests: New file.
49649         * tests/test-lock.c: New file, from GNU gettext.
49650
49651 2005-08-24  Bruno Haible  <bruno@clisp.org>
49652
49653         * lib/lock.h: Add multiple inclusion guard.
49654         * lib/tls.h: Add multiple inclusion guard.
49655
49656 2005-08-24  Bruno Haible  <bruno@clisp.org>
49657
49658         * gnulib-tool: Add support for the --aux-dir option to
49659         --create-testdir, --create-megatestdir, --test, --megatest.
49660         (func_create_testdir, func_create_megatestdir): Optionally emit a
49661         AC_CONFIG_AUX_DIR directive.
49662         (create-testdir, create-megatestdir, test, megatest): Provide a
49663         default value for $auxdir.
49664
49665 2005-08-24  Bruno Haible  <bruno@clisp.org>
49666
49667         * gnulib-tool (import): Use compound statement instead of subshell
49668         where possible.
49669
49670 2005-08-24  Bruno Haible  <bruno@clisp.org>
49671
49672         * gnulib-tool (import): Change --aux-dir default to "build-aux".
49673
49674 2005-08-24  Bruno Haible  <bruno@clisp.org>
49675
49676         * gnulib-tool (func_version): Update.
49677
49678 2005-08-24  Bruno Haible  <bruno@clisp.org>
49679
49680         * gnulib-tool (func_import, func_create_testdir,
49681         func_create_megatestdir): Quote all autoconf macro arguments.
49682
49683 2005-08-24  Bruno Haible  <bruno@clisp.org>
49684
49685         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49686         option --force, because --force causes the aclocal.m4 of each
49687         subdirectory to be newer than the corresponding config.h.in.
49688
49689 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49690
49691         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49692         All contents moved to gl_REGEX.
49693         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49694         assume that it does.
49695
49696 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49697
49698         * lib/regex.h (REG_NOSYS)
49699         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49700         Define, since POSIX requires it as of 2001.
49701         (_REG_ENOSYS)
49702         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49703         New private symbol, used to keep the enum signed in all cases.
49704         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49705         Youngman in
49706         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49707
49708         * lib/regex_internal.c (re_string_skip_chars, register_state):
49709         (calc_state_hash):
49710         Remove forward decls; no longer needed now that we use prototypes.
49711         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49712         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49713         (clean_state_log_if_needed): Likewise.
49714
49715 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49716
49717         * config/srclist.txt: Add glibc bugs 1231-1233.
49718
49719 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49720
49721         Fix problems reported by Sam Steingold in
49722         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49723         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49724         assumed that reg_errcode_t is a signed type, which is not
49725         necessarily true if _XOPEN_SOURCE is not defined.
49726         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49727         since some compilers warn about it otherwise.
49728
49729 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49730
49731         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49732         (init_word_char, create_initial_state, duplicate_node_closure):
49733         (fetch_token, peek_token_bracket, build_range_exp):
49734         (build_collating_symbol): Remove forward decls; no longer needed
49735         now that we use prototypes.
49736
49737         * lib/regcomp.c:
49738         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49739         (re_compile_fastmap_iter, regcomp, regerror, regfree):
49740         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49741         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49742         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49743         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49744         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49745         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49746         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49747         (build_range_exp, build_collating_symbol, parse_bracket_exp):
49748         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49749         (build_charclass, build_charclass_op, fetch_number, create_tree):
49750         (create_token_tree, mark_opt_subexp, duplicate_tree):
49751         Use prototypes rather than old-style definitions.
49752
49753         * lib/regex_internal.c:
49754         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49755         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49756         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49757         (re_string_reconstruct, re_string_peek_byte_case):
49758         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49759         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49760         (re_node_set_init_copy, re_node_set_add_intersect):
49761         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49762         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49763         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49764         (re_acquire_state, re_acquire_state_context, register_state):
49765         (create_ci_newstate, create_cd_newstate, free_state):
49766         Likewise.
49767         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49768         re_search_2):
49769         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49770         (re_search_internal, prune_impossible_nodes):
49771         (acquire_init_state_context, check_matching, static):
49772         (check_halt_node_context, check_halt_state_context, proceed_next_node):
49773         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49774         (update_regs, sift_states_backward, build_sifted_states):
49775         (clean_state_log_if_needed, merge_state_array):
49776         (update_cur_sifted_state, add_epsilon_src_nodes):
49777         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49778         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49779         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49780         (find_recover_state, check_subexp_matching_top, transit_state_mb):
49781         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49782         (check_arrival, check_arrival_add_next_nodes):
49783         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49784         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49785         (check_node_accept_bytes, check_node_accept, extend_buffers):
49786         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49787         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49788         (sift_ctx_init):
49789         Likewise.
49790
49791         * lib/regex_internal.h:
49792         (re_string_allocate, re_string_construct, re_string_reconstruct):
49793         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49794         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49795         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49796         (re_string_context_at, re_string_peek_byte_case):
49797         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49798         is defined, since we now use prototypes always.
49799
49800         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
49801         C89 or better.  All uses removed.
49802
49803 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49804
49805         * config/srclist.txt: Add glibc bugs 1220-1227.
49806
49807 2005-08-20  Jim Meyering  <jim@meyering.net>
49808
49809         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49810         of unused local, dfa.
49811
49812 2005-08-20  Bruno Haible  <bruno@clisp.org>
49813
49814         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49815
49816 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49817
49818         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49819         (re_node_set_insert_last, re_dfa_add_node):
49820         Rename local variables to avoid GCC shadowing warnings.
49821
49822 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49825         [defined lint]: Suppress bogus uninitialized-variable warnings.
49826
49827         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49828         and let the caller return REG_ESPACE if out of space.  This
49829         removes an uninitialied-variable warning with GCC 4.0.1, and also
49830         avoids taking the address of a local variable.  All callers
49831         changed.
49832
49833 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49834
49835         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49836         $LIBCSRC/posix/regexec.c.
49837         Add glibc bug 1217 for regcomp.c.
49838
49839 2005-08-19  Jim Meyering  <jim@meyering.net>
49840
49841         * lib/regexec.c (proceed_next_node): Redo local variables to
49842         avoid GCC shadowing warnings.
49843
49844 2005-08-18  Bruno Haible  <bruno@clisp.org>
49845
49846         * lib/strstr.c (strstr): Fix return value in multibyte case.
49847         * lib/strcasestr.c (strcasestr): Likewise.
49848
49849 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49850
49851         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
49852
49853 2005-08-17  Jim Meyering  <jim@meyering.net>
49854
49855         Make the %s format (seconds since the epoch) work for a negative
49856         number and when used with a zero-padded field width, e.g. %015s.
49857
49858         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49859         label so that it precedes the code to set `digits'.  Otherwise,
49860         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
49861         print `00-22'.  Now, it prints `-0022', as it should.
49862
49863 2005-08-17  Bruno Haible  <bruno@clisp.org>
49864
49865         * modules/strstr (Files): Add m4/mbrtowc.m4.
49866         (Depends-on): Add mbuiter.
49867
49868 2005-08-17  Bruno Haible  <bruno@clisp.org>
49869
49870         * modules/strcasestr: New file.
49871         * MODULES.html.sh (String handling, based on ANSI C 89): Add
49872         strcasestr.
49873
49874 2005-08-17  Bruno Haible  <bruno@clisp.org>
49875
49876         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49877
49878 2005-08-17  Bruno Haible  <bruno@clisp.org>
49879
49880         * modules/mbuiter: New file.
49881         * MODULES.html.sh (Extended multibyte and wide character utilities):
49882         Add mbuiter.
49883
49884 2005-08-17  Bruno Haible  <bruno@clisp.org>
49885
49886         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49887         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49888
49889 2005-08-17  Bruno Haible  <bruno@clisp.org>
49890
49891         * m4/strcasestr.m4: New file.
49892
49893 2005-08-17  Bruno Haible  <bruno@clisp.org>
49894
49895         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49896         * lib/strstr.c: Completely rewritten, with multibyte locale support.
49897
49898 2005-08-17  Bruno Haible  <bruno@clisp.org>
49899
49900         * lib/strcasestr.h: New file.
49901         * lib/strcasestr.c: New file.
49902
49903 2005-08-17  Bruno Haible  <bruno@clisp.org>
49904
49905         * lib/strcasecmp.c: Use mbuiter.h.
49906
49907 2005-08-17  Bruno Haible  <bruno@clisp.org>
49908
49909         * lib/mbuiter.h: New file.
49910
49911 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
49912
49913         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49914         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
49915         and gl_GETOPT are both invoked via different paths (as happens
49916         with GNU tar CVS because it uses both argp and getopt), the former
49917         wins.
49918
49919 2005-08-16  Bruno Haible  <bruno@clisp.org>
49920
49921         * modules/tls: New file.
49922         * MODULES.html.sh (Multithreading): Add tls.
49923
49924 2005-08-16  Bruno Haible  <bruno@clisp.org>
49925
49926         * modules/strnlen1: New file.
49927         * MODULES.html.sh (String handling): Add strnlen1.
49928
49929 2005-08-16  Bruno Haible  <bruno@clisp.org>
49930
49931         * modules/strcase (Files): Add m4/mbrtowc.m4.
49932         (Depends-on): Add strnlen1, mbchar.
49933
49934 2005-08-16  Bruno Haible  <bruno@clisp.org>
49935
49936         * modules/mbiter: New file.
49937         * MODULES.html.sh (Extended multibyte and wide character utilities):
49938         Add mbiter.
49939
49940 2005-08-16  Bruno Haible  <bruno@clisp.org>
49941
49942         * modules/mbfile: New file.
49943         * MODULES.html.sh (Extended multibyte and wide character utilities):
49944         Add mbfile.
49945
49946 2005-08-16  Bruno Haible  <bruno@clisp.org>
49947
49948         * modules/mbchar: New file.
49949         * MODULES.html.sh (Extended multibyte and wide character utilities):
49950         New section.
49951
49952 2005-08-16  Bruno Haible  <bruno@clisp.org>
49953
49954         * m4/tls.m4: New file, from GNU gettext.
49955
49956 2005-08-16  Bruno Haible  <bruno@clisp.org>
49957
49958         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49959         always.
49960         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49961
49962 2005-08-16  Bruno Haible  <bruno@clisp.org>
49963
49964         * m4/mbiter.m4: New file.
49965
49966 2005-08-16  Bruno Haible  <bruno@clisp.org>
49967
49968         * m4/mbfile.m4: New file.
49969
49970 2005-08-16  Bruno Haible  <bruno@clisp.org>
49971
49972         * m4/mbchar.m4: New file.
49973
49974 2005-08-16  Bruno Haible  <bruno@clisp.org>
49975
49976         * lib/tls.h: New file, from GNU gettext.
49977         * lib/tls.c: New file, from GNU gettext.
49978
49979 2005-08-16  Bruno Haible  <bruno@clisp.org>
49980
49981         * lib/strnlen1.h: New file.
49982         * lib/strnlen1.c: New file.
49983
49984 2005-08-16  Bruno Haible  <bruno@clisp.org>
49985
49986         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49987         (mbi_init): Update.
49988         (mbi_avail, mbi_advance): Let the iteration end before the terminating
49989         NUL byte, not after it.
49990
49991 2005-08-16  Bruno Haible  <bruno@clisp.org>
49992
49993         * lib/strcase.h (strcasecmp): Add note in comments.
49994         * lib/strncasecmp.c: Use code from strcasecmp.c.
49995         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49996         (strcasecmp): Work correctly in multibyte locales.
49997
49998 2005-08-16  Bruno Haible  <bruno@clisp.org>
49999
50000         * lib/mbiter.h: New file.
50001
50002 2005-08-16  Bruno Haible  <bruno@clisp.org>
50003
50004         * lib/mbfile.h: New file.
50005
50006 2005-08-16  Bruno Haible  <bruno@clisp.org>
50007
50008         * lib/mbchar.h: New file.
50009         * lib/mbchar.c: New file.
50010
50011 2005-08-16  Bruno Haible  <bruno@clisp.org>
50012
50013         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
50014         the valid ones. Makes the comparison operations transitive:
50015         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
50016         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
50017
50018 2005-08-15  Simon Josefsson  <jas@extundo.com>
50019
50020         * modules/ssize_t (License): Change to 'unlimited'.
50021
50022         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
50023
50024 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50025
50026         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
50027         Add comments for each pending glibc patch.
50028
50029 2005-08-15  Bruno Haible  <bruno@clisp.org>
50030
50031         * lib/regex.h (__restrict_arr): Don't define to __restrict if
50032         __cplusplus is defined.
50033
50034 2005-08-14  Jim Meyering  <jim@meyering.net>
50035
50036         Sync from coreutils.
50037
50038         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
50039         Use the hash-table-based cycle-detection code not just when
50040         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
50041         Reported by James Youngman in
50042         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
50043         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
50044         FTS_TIGHT_CYCLE_CHECK.
50045         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
50046         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
50047         once again.
50048         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
50049         * lib/fts.c (fd_safer): Remove decl.
50050         Include fcntl--.h rather than unistd-safer.h
50051         (fts_safe_changedir): Don't call fd_safer; no longer needed
50052         now that we include fcntl--.h.
50053
50054 2005-08-12  Simon Josefsson  <jas@extundo.com>
50055
50056         * modules/getndelim2: Use ssize_t module.
50057         * modules/getnline: Likewise.
50058         * modules/safe-read: Likewise.
50059         * modules/xreadlink: Likewise.
50060
50061         * modules/ssize_t: New file.
50062
50063 2005-08-12  Simon Josefsson  <jas@extundo.com>
50064
50065         * m4/readline.m4: Look for termcap, curses or ncurses if required.
50066
50067 2005-08-12  Simon Josefsson  <jas@extundo.com>
50068
50069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50070         ssize_t.
50071
50072 2005-08-12  Simon Josefsson  <jas@extundo.com>
50073
50074         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
50075         readline, getdelim and check_version.
50076         (Support for systems lacking ISO C 99: Sizes of integer types):
50077         Add size_max.
50078
50079 2005-08-12  Bruno Haible  <bruno@clisp.org>
50080
50081         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
50082
50083 2005-08-11  Simon Josefsson  <jas@extundo.com>
50084
50085         * modules/readline: New file.
50086
50087         * modules/strnlen (Files): Add strnlen.h.
50088
50089 2005-08-11  Simon Josefsson  <jas@extundo.com>
50090
50091         * m4/readline.m4: New file.
50092
50093 2005-08-11  Simon Josefsson  <jas@extundo.com>
50094
50095         * lib/readline.h, readline.c: New file.
50096
50097 2005-08-11  Simon Josefsson  <jas@extundo.com>
50098
50099         * doc/gnulib.texi (Initial import, Finishing touches): Mention
50100         gl_AVOID.
50101
50102 2005-08-11  Bruno Haible  <bruno@clisp.org>
50103
50104         * lib/strnlen.h (strnlen): Change parameter name to match comment.
50105
50106 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
50107
50108         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
50109
50110 2005-08-10  Simon Josefsson  <jas@extundo.com>
50111
50112         * tests/test-iconvme.c: New file.
50113
50114 2005-08-10  Simon Josefsson  <jas@extundo.com>
50115
50116         * m4/strnlen.m4: New file.
50117
50118         * m4/strndup.m4: Don't check for strnlen declaration, done in
50119         strnlen.m4.
50120
50121 2005-08-10  Simon Josefsson  <jas@extundo.com>
50122
50123         * lib/strndup.c: Use strnlen.h.
50124
50125         * lib/strnlen.h: New file.
50126
50127 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
50128
50129         * README: Typos.
50130
50131 2005-08-02  Simon Josefsson  <jas@extundo.com>
50132
50133         * modules/readline: New file.
50134
50135 2005-08-02  Simon Josefsson  <jas@extundo.com>
50136
50137         * modules/getdelim: New file.
50138
50139         * modules/getline: Rewrite, don't use getndelim2.
50140
50141 2005-08-02  Simon Josefsson  <jas@extundo.com>
50142
50143         * m4/getline.m4: Separate out getdelim stuff into separate module.
50144
50145         * m4/getdelim.m4: New file.
50146
50147 2005-08-02  Simon Josefsson  <jas@extundo.com>
50148
50149         * lib/getline.h, getline.c: Rewrite.
50150
50151         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
50152
50153 2005-07-31  Bruno Haible  <bruno@clisp.org>
50154
50155         * lib/lock.h (gl_lock_initializer): New macro.
50156         (gl_lock_define_initialized): Use it.
50157         (gl_rwlock_initializer): New macro.
50158         (gl_rwlock_define_initialized): Use it.
50159         (gl_recursive_lock_initializer): New macro.
50160         (gl_recursive_lock_define_initialized): Use it.
50161
50162 2005-07-30  Karl Berry  <karl@gnu.org>
50163
50164         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
50165         Report from Ben Pfaff, regarding getopt.
50166
50167 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
50168
50169         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
50170         normal way.
50171         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
50172         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
50173         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
50174         (gl_GETOPT): Use the new macros.  Most of the implementation
50175         is moved to the new macros.  This is for programs like Emacs
50176         that don't want all the functionality of gl_GETOPT.
50177
50178 2005-07-26  Bruno Haible  <bruno@clisp.org>
50179
50180         * m4/lock.m4: Update from GNU gettext.
50181
50182 2005-07-26  Bruno Haible  <bruno@clisp.org>
50183
50184         * lib/lock.h: Update from GNU gettext.
50185         * lib/lock.c: Update from GNU gettext.
50186
50187 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50188
50189         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
50190         obsolescent AC_TRY_RUN.  Include the default includes files, for
50191         'exit'.
50192
50193 2005-07-24  Bruno Haible  <bruno@clisp.org>
50194
50195         * modules/visibility: New file.
50196         * MODULES.html.sh (Misc): Add visibility.
50197
50198 2005-07-24  Bruno Haible  <bruno@clisp.org>
50199
50200         * m4/visibility.m4: New file.
50201
50202 2005-07-24  Bruno Haible  <bruno@clisp.org>
50203
50204         * doc/visibility.texi: New file.
50205
50206 2005-07-22  Bruno Haible  <bruno@clisp.org>
50207
50208         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
50209         $(ALLOCA_H), redundant through BUILT_SOURCES.
50210         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
50211         redundant through BUILT_SOURCES.
50212         * modules/byteswap (Makefile.am): Remove explicit dependency on
50213         $(BYTESWAP_H), redundant through BUILT_SOURCES.
50214         * modules/fnmatch (Makefile.am): Remove explicit dependency on
50215         $(FNMATCH_H), redundant through BUILT_SOURCES.
50216         * modules/getopt (Makefile.am): Remove explicit dependency on
50217         $(GETOPT_H), redundant through BUILT_SOURCES.
50218         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
50219         redundant through BUILT_SOURCES.
50220         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
50221         redundant through BUILT_SOURCES.
50222         * modules/stdbool (Makefile.am): Remove explicit dependency on
50223         $(STDBOOL_H), redundant through BUILT_SOURCES.
50224         * modules/stdint (Makefile.am): Remove explicit dependency on
50225         $(STDINT_H), redundant through BUILT_SOURCES.
50226         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
50227         Remove explicit dependency on $(SYSEXITS_H).
50228         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
50229
50230 2005-07-18  Simon Josefsson  <jas@extundo.com>
50231
50232         * lib/check-version.c (check_version): Accept identical versions too.
50233
50234 2005-07-18  Bruno Haible  <bruno@clisp.org>
50235
50236         * modules/lock: New file.
50237         * MODULES.html.sh (Multithreading): New section.
50238
50239 2005-07-18  Bruno Haible  <bruno@clisp.org>
50240
50241         * m4/lock.m4: New file, from GNU gettext.
50242
50243 2005-07-18  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/lock.h: New file, from GNU gettext.
50246         * lib/lock.c: New file, from GNU gettext.
50247
50248 2005-07-18  Bruno Haible  <bruno@clisp.org>
50249
50250         * lib/lock.h (gl_once_t): New type.
50251         (gl_once_define, gl_once): New macros.
50252         * lib/lock.c (fresh_once): New variable.
50253         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
50254         functions.
50255
50256 2005-07-16  Simon Josefsson  <jas@extundo.com>
50257
50258         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
50259         workaround, suggested by Bruno.
50260
50261 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50262
50263         * modules/xalloc (Depends-on): Add xalloc-die.
50264         * modules/xvasprintf (Depends-on): Add xalloc-die.
50265
50266 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50267
50268         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
50269         with a minor change.
50270
50271 2005-07-15  Bruno Haible  <bruno@clisp.org>
50272
50273         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
50274         When using lib/poll.c, define poll as rpl_poll.
50275
50276 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
50277
50278         * modules/argp (Depends-on): Remove unlocked-io.
50279
50280 2005-07-14  Derek Price  <derek@ximbiot.com>
50281
50282         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
50283         for glob symlink bug.
50284
50285 2005-07-14  Bruno Haible  <bruno@clisp.org>
50286
50287         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
50288         Instead, test for *_unlocked function declarations directly.
50289
50290 2005-07-11  Simon Josefsson  <jas@extundo.com>
50291
50292         * modules/size_max: New file.
50293
50294         * modules/xsize: Depend on size_max module for size_max.m4.
50295
50296 2005-07-11  Simon Josefsson  <jas@extundo.com>
50297
50298         * lib/size_max.h: New file.
50299
50300 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
50301
50302         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
50303         copyright symbol and the year.
50304         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
50305         (version_etc_va): Use parameterized copyright notice.
50306         Reword to conform to the current GNU coding standards.
50307
50308 2005-07-11  Karl Berry  <karl@gnu.org>
50309
50310         * doc/gnulib.texi (Quoting): new node.
50311         (Initial import): more info, from Patrice.
50312
50313 2005-07-11  Bruno Haible  <bruno@clisp.org>
50314
50315         * gnulib-tool (func_usage): Document option --avoid.
50316         (Command line options): Handle --avoid.
50317         (func_acceptable): New function.
50318         (func_modules_transitive_closure): Use it.
50319
50320 2005-07-11  Bruno Haible  <bruno@clisp.org>
50321
50322         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
50323         Reported by Jim Meyering.
50324
50325 2005-07-10  Bruno Haible  <bruno@clisp.org>
50326
50327         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
50328         Needed when size_t is smaller than 'unsigned int'.
50329         Reported by Paul Eggert.
50330
50331 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50332
50333         * modules/argp (Depends-on): Add unlocked-io
50334
50335 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50336
50337         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
50338         block of defines.
50339
50340 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
50341
50342         * config/srclist.txt: Comment out regcomp.c, since we have a porting
50343         fix now.
50344
50345 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
50346         and Paul Eggert  <eggert@cs.ucla.edu>
50347
50348         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
50349         in wint_t, not wchar_t.  Remove now-unnecessary cast.
50350
50351 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50352
50353         * modules/regex (Files): Add lib/regex_internal.c,
50354         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
50355         (Depends-on): Add extensions.
50356         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
50357
50358 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50359
50360         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
50361         pathconf.
50362         * m4/same.m4 (gl_SAME): Likewise.
50363         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
50364
50365         * m4/regex.m4: Adjust to new libc regex implementation.
50366         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
50367         all the .c and .h parts of (the new) regex.
50368         Quote the m4 stuff better.
50369         Check for RE_ICASE bug of old gnulib.
50370         Check for REG_STARTEND of recent libc.
50371         Rename local variables from jm_* to gl_*.
50372         Quote operand of "test -f".
50373         Say "recent enough" version of libc, not "version 2".
50374         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
50375         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
50376         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
50377         Remove check for btowc, isascii.
50378         Require AM_LANGINFO_CODESET.
50379
50380 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50381
50382         * lib/regex.c, regex.h: Sync from libc.
50383         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
50384         * lib/regexec.c:
50385         New files, synced from libc, except that regex_internal.h
50386         currently has a small porting fix.
50387
50388 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
50389
50390         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
50391         regex_internal.c, regexec.c.
50392         Add regex_internal.h too, but as a comment, since the libc version
50393         is currently broken in gnulib mode.
50394
50395 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50396
50397         Support programs like Emacs that use gnulib but not gettext.
50398         * MODULES.html.sh (Internationalization functions): Add gettext-h.
50399         * modules/gettext-h: New file.
50400         * modules/gettext (Files): Remove lib/gettext.h.
50401         (Depends-on): Add gettext-h.
50402         (Makefile.am): Remove lib_SOURCES.
50403         * modules/argmatch, modules/c-stack, modules/closeout:
50404         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
50405         * modules/execute, modules/file-type, modules/getaddrinfo:
50406         * modules/getopt, modules/human, modules/javacomp:
50407         * modules/javaexec, modules/mkdir-p, modules/obstack:
50408         * modules/openat, modules/pagealign_alloc, modules/pipe:
50409         * modules/quotearg, modules/regex, modules/rpmatch:
50410         * modules/unicodeio, modules/userspec, modules/version-etc:
50411         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
50412         * modules/xsetenv:
50413         Depend on gettext-h, not gettext.
50414
50415 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50416
50417         * gnulib-tool (func_import): Add support for 'public domain' license.
50418         * modules/alloca, modules/atexit, modules/memmove:
50419         Now public domain, not GPL.
50420         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
50421         * modules/realloc, modules/strerror, modules/strtod:
50422         Now LGPL, not GPL.
50423
50424 2005-07-05  Bruno Haible  <bruno@clisp.org>
50425
50426         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
50427         autoconf CVS. Needed for mingw.
50428
50429 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50430
50431         Remove the dependency of the strftime module on the tzset module.
50432         * modules/strftime (Depends-on): Remove dependency on tzset.
50433
50434 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
50435
50436         Remove the dependency of the strftime module on the tzset module.
50437         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
50438         gl_FUNC_TZSET_CLOBBER.
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         * lib/strftime.c (my_strftime)
50444         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
50445         Copy the input structure, to work around some of the bug with
50446         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
50447         Solaris releases, you should also use the tzset module, but we won't
50448         require it as a dependency any more since we don't want LGPLed code
50449         to depend on GPLed code.
50450
50451 2005-07-02  Jim Meyering  <jim@meyering.net>
50452
50453         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50454         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50455         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50456         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50457
50458 2005-07-02  Jim Meyering  <jim@meyering.net>
50459
50460         * lib/backupfile.c (backup_args): Change a `0' to NULL.
50461
50462 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
50463
50464         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50465         declares only 'struct timespec;' (!).
50466
50467 2005-07-01  Jim Meyering  <jim@meyering.net>
50468
50469         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50470         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50471         * lib/save-cwd.c, tempname.c:
50472         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50473         and don't include <sys/file.h>).
50474
50475 2005-06-29  Jim Meyering  <jim@meyering.net>
50476
50477         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50478         type name.  Use the variable name instead.
50479         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50480         Likewise.
50481
50482 2005-06-28  Simon Josefsson  <jas@extundo.com>
50483
50484         * modules/check-version (Files): Add check-version.m4.
50485
50486 2005-06-28  Simon Josefsson  <jas@extundo.com>
50487
50488         * m4/check-version.m4: New file, suggested by Jim Meyering
50489         <jim@meyering.net>.
50490
50491 2005-06-28  Simon Josefsson  <jas@extundo.com>
50492
50493         * lib/check-version.h, lib/check-version.c: New files.
50494
50495 2005-06-28  Simon Josefsson  <jas@extundo.com>
50496
50497         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
50498         collision with global variable.  Better indentation.  Don't
50499         increment buffer pointer beyond buffer end.  Based on comments
50500         from Paul Eggert <eggert@cs.ucla.edu>.
50501
50502         * lib/base64.h: Indent.
50503
50504 2005-06-28  Simon Josefsson  <jas@extundo.com>
50505
50506         * doc/gnulib.texi (Library version handling): New section.
50507
50508 2005-06-28  Jim Meyering  <jim@meyering.net>
50509
50510         * check-module (find_included_lib_files): Hard-code another
50511         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50512         but modules/fts-lgpl (correctly) does not list those files.
50513
50514         * modules/canonicalize (Files): Add lib/pathmax.h.
50515
50516 2005-06-25  Simon Josefsson  <jas@extundo.com>
50517
50518         * modules/check-version: New file.
50519
50520 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
50521
50522         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50523         initializer of struct addrinfo, as an indication that we don't
50524         care how many members the structure has.
50525
50526 2005-06-24  Derek Price  <derek@ximbiot.com>
50527         and Bruno Haible  <bruno@clisp.org>
50528
50529         Remove stat module & update lstat.
50530         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50532         * m4/stat.m4: Remove this file.
50533
50534 2005-06-24  Derek Price  <derek@ximbiot.com>
50535         and Bruno Haible  <bruno@clisp.org>
50536
50537         Remove stat module & update lstat.
50538         * lib/stat.c: Remove this file...
50539         (slash_aware_lstat): ...moving this content and its support...
50540         * lib/lstat.c (rpl_lstat): ...into here.
50541         * lib/lstat.h: New file.
50542
50543 2005-06-24  Derek Price  <derek@ximbiot.com>
50544         and Bruno Haible  <bruno@clisp.org>
50545
50546         Remove stat module & update lstat.
50547         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
50554         * MODULES.html: Regenerated.
50555         * modules/lstat (Description): Correct function name.
50556         (Files): Add "lstat.h".
50557         (Depends-on): Remove stat, add xalloc, stat-macros.
50558         * modules/stat: Remove this file.
50559         (Include): Add "lstat.h", remove <sys/stat.h>.
50560
50561 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
50562
50563         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
50564         (ranged_convert): Don't save conversion in a temporary struct.
50565         This causes a warning with GCC 4.0.0, and anyway in the typical
50566         case it's not worth the extra 100 bytes or so of code.
50567         (ranged_convert, __mktime_internal): When calling a function via a
50568         pointer P, use P () rather than (*P) (), as we now assume C89 or
50569         better.
50570
50571 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
50572
50573         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50574         "who -r" failed to give output.  Problem reported by Tim Waugh.
50575
50576         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50577         (xcalloc): Use it to avoid needless tests.
50578         Problem reported by Jim Meyering.
50579
50580 2005-06-20  Derek Price  <derek@ximbiot.com>
50581
50582         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50583         unnecessary for Autoconfs > 2.59c.
50584
50585 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50586
50587         * lib/argp.h (__option_is_short): Check upper limit of
50588         __key. Isprint() requires its argument to have the value
50589         of an unsigned char or EOF.
50590
50591 2005-06-16  Jim Meyering  <jim@meyering.net>
50592
50593         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50594         when either N or S is zero.
50595
50596 2005-06-16  Derek Price  <derek@ximbiot.com>
50597
50598         * m4/bison.m4: Declare YACC & YFLAGS precious.
50599
50600 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
50601
50602         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50603         multibyte string or pattern, fall back on unibyte matching.
50604         Problem reported by James Youngman.
50605
50606 2005-06-08  Bruno Haible  <bruno@clisp.org>
50607
50608         * modules/csharpcomp: New file.
50609         * MODULES.html.sh (C#): Add csharpcomp.
50610
50611 2005-06-08  Bruno Haible  <bruno@clisp.org>
50612
50613         * m4/csharpcomp.m4: New file, from GNU gettext.
50614
50615 2005-06-08  Bruno Haible  <bruno@clisp.org>
50616
50617         * lib/csharpcomp.h: New file, from GNU gettext.
50618         * lib/csharpcomp.c: New file, from GNU gettext.
50619         * lib/csharpcomp.sh.in: New file, from GNU gettext.
50620
50621 2005-06-08  Bruno Haible  <bruno@clisp.org>
50622
50623         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50624         warning on mingw.
50625
50626 2005-06-07  Derek Price  <derek@ximbiot.com>
50627
50628         Sync from CVS.
50629         * lib/glob_.h: Indent nested #ifdef.
50630
50631 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50632
50633         Sync from coreutils.
50634         Use "file name" when talking about file names, instead of "filename"
50635         or "path", as per the GNU coding standards.
50636         * lib/mkdir-p.c: Renamed from makepath.c.
50637         (make_dir_parents): Renamed from make_path.  All callers changed.
50638         * lib/mkdir-p.h: Likewise.  All includers changed.
50639         * lib/filenamecat.c: Renamed from path-concat.c.
50640         (file_name_concat): Renamed from path_concat.  All callers changed.
50641         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50642         * lib/filenamecat.h: Likewise.  All includers changed.
50643         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50644         in comments or local variable names.
50645         * lib/basename.c: Likewise.
50646         * lib/canonicalize.c, canonicalize.h: Likewise.
50647         * lib/dirname.c, dirname.h: Likewise.
50648         * lib/euidaccess.c: Likewise.
50649         * lib/exclude.c: Likewise
50650         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50651         * lib/fsusage.c, fsuage.h: Likewise.
50652         * lib/fts.c, fts_.h: Likewise.
50653         * lib/getcwd.c: Likewise.
50654         * lib/getloadavg.c: Likewise.
50655         * lib/mkstemp.c: Likewise.
50656         * lib/mountlist.c, mountlist.h: Likewise.
50657         * lib/openat.c, openat.h: Likewise.
50658         * lib/readlink-stub.c: Likewise.
50659         * lib/readutmp.c, readutmp.h: Likewise.
50660         * lib/rename.c: Likewise.
50661         * lib/rmdir.c: Likewise.
50662         * lib/same.c: Likewise.
50663         * lib/savedir.c: Likewise.
50664         * lib/stripslash.c: Likewise.
50665         * lib/tempname.c: Likewise.
50666         * lib/xreadlink.c: Likewise.
50667         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50668         All uses changed.
50669         * lib/exclude.h: Likewise.
50670
50671         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50672         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50673         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50674         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50675         * lib/pathmax.h: Include <limits.h> unconditionally, since other
50676         files have been getting away with it for years (MORE/BSD 4.3
50677         is extinct now).
50678         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50679         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50680
50681         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50682         Define to 256, not 255, as per modern POSIX.
50683
50684 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50685
50686         Sync from coreutils.
50687         Use "file name" when talking about file names, instead of "filename"
50688         or "path", as per the GNU coding standards.
50689         * MODULES.html.sh: mkdir-p renamed from makepath.
50690         filenamecat renamed from path-concat.
50691         * modules/filenamecat: Renamed from modules/path-concat.
50692         (Files): filenamecat.h and filenamecat.c renamed from
50693         path-concat.h and path-concat.c.
50694         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50695         (Include): filenamecat.h, not path-concat.h.
50696         * modules/mkdir-p: Renamed from modules/makepath.
50697         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50698         makepath.c.
50699         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50700         (Include): mkdir-p.h, not makepath.h.
50701
50702 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
50703
50704         Sync from coreutils.
50705         * m4/mkdir-p.m4: Renamed from makepath.m4.
50706         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
50707         Rename files from makepath.c to mkdir-p.c, and from
50708         makepath.h to mkdir-p.h.
50709         * m4/filenamecat.m4: Renamed from path-concat.m4.
50710         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
50711         Rename files from path-concat.c to filenamecat.c,
50712         and from path-concat.h to filenamecat.h.
50713         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50714         "file name" in local variables or comments.
50715         * m4/rename.m4: Likewise.
50716
50717 2005-06-01  Bruno Haible  <bruno@clisp.org>
50718
50719         * modules/csharpexec: New file.
50720         * MODULES.html.sh (C#): New section.
50721
50722 2005-06-01  Bruno Haible  <bruno@clisp.org>
50723
50724         * m4/csharp.m4: New file, from GNU gettext.
50725         * m4/csharpexec.m4: New file, from GNU gettext.
50726
50727 2005-06-01  Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/csharpexec.h: New file, from GNU gettext.
50730         * lib/csharpexec.c: New file, from GNU gettext.
50731         * lib/csharpexec.sh.in: New file, from GNU gettext.
50732
50733 2005-05-31  Derek Price  <derek@ximbiot.com>
50734             Paul Eggert  <eggert@cs.ucla.edu>
50735
50736         Sync from cvs.
50737         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50738
50739 2005-05-31  Derek Price  <derek@ximbiot.com>
50740             Paul Eggert  <eggert@cs.ucla.edu>
50741
50742         Sync from cvs.
50743         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50744
50745 2005-05-29  Derek Price  <derek@ximbiot.com>
50746
50747         * config/srclist.txt (glob_.h, glob.c): Add these files.
50748
50749 2005-05-29  Derek Price  <derek@ximbiot.com>
50750
50751         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50752         * modules/glob: New file.
50753         * modules/getlogin_r: Add link to POSIX spec in description.
50754
50755 2005-05-29  Derek Price  <derek@ximbiot.com>
50756             Paul Eggert  <eggert@cs.ucla.edu>
50757
50758         * m4/glob.m4: New file.
50759
50760 2005-05-29  Derek Price  <derek@ximbiot.com>
50761             Paul Eggert  <eggert@cs.ucla.edu>
50762
50763         * lib/glob_.h, lib/glob.c: New files.
50764
50765 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50766
50767         * modules/fts (Files): Remove m4/inttypes-pri.m4.
50768         * modules/fts-lgpl (Depends-on): Remove gettext.
50769
50770 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50771
50772         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50773         and don't require gt_INTTYPES_PRI.
50774
50775 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
50776
50777         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50778
50779         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50780         the configuration hassle isn't worth it.
50781         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50782         (LONGEST_MODIFIER, PRIuMAX): Remove.
50783
50784 2005-05-27  Bruno Haible  <bruno@clisp.org>
50785
50786         * lib/getlogin_r.h: Remove second include of <stddef.h>.
50787
50788 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
50789
50790         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50791         _POSIX_PTHREAD_SEMANTICS for Solaris.
50792
50793 2005-05-25  Derek Price  <derek@ximbiot.com>
50794
50795         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50796
50797 2005-05-25  Derek Price  <derek@ximbiot.com>
50798             Paul Eggert  <eggert@cs.ucla.edu>
50799
50800         * modules/getlogin_r, m4/getlogin_r.m4: New files.
50801         * lib/getlogin_r.c, getlogin_r.h: New files.
50802
50803 2005-05-25  Bruno Haible  <bruno@clisp.org>
50804             Derek Price  <derek@ximbiot.com>
50805
50806         * lib/getlogin_r.h: Simplify API documentation.
50807
50808 2005-05-23  Derek Price  <derek@ximbiot.com>
50809
50810         * modules/minmax (Files): Add m4/minmax.m4.
50811         (configure.ac): Add gl_MINMAX.
50812
50813 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
50814
50815         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50816         so that unistd-safer.h (GPL'ed code) need not be included.
50817
50818 2005-05-22  Bruno Haible  <bruno@clisp.org>
50819
50820         * m4/minmax.m4: New file.
50821         Based on a patch by Derek Price <derek@ximbiot.com>.
50822
50823 2005-05-22  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50826         (INT64_MIN): Fix definition.
50827         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50828
50829         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50830         NEED_SIGNED_INT_TYPES.
50831
50832         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50833         HAVE_SYSTEM_INTTYPES.
50834
50835 2005-05-22  Bruno Haible  <bruno@clisp.org>
50836
50837         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50838         Also include <sys/param.h> if it defines MIN, MAX.
50839         Based on a patch by Derek Price <derek@ximbiot.com>.
50840
50841 2005-05-21  Jim Meyering  <jim@meyering.net>
50842
50843         * modules/fts (Files): Add m4/inttypes-pri.m4.
50844         (Depends-on): Add lstat and remove gettext.  Alphabetize.
50845
50846 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50847
50848         New fts module.
50849         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50850         (setup_dir, free_dir): New functions.
50851         (enter_dir, leave_dir): Define trivial
50852         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
50853         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
50854         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50855         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50856         Move to fts-cycle.c.
50857         (fts_open): Use setup_dir.
50858         (fts_close): Use free_dir.
50859         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50860         This adds a label and some gotos, but the alternatives were messier.
50861         Check for memory allocation failure when entering a dir.
50862         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50863         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50864         (FTS): New member fts_cycle, that is a union that contains the
50865         old active_dir_ht and cycle_state.  All uses changed to mention
50866         fts_cycle.ht and fts_cycle.state.
50867         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50868         fts.c, with the following changes:
50869         (setup_dir, free_dir): New functions.
50870         (enter_dir): Now returns bool.  Return true if successful, false
50871         if memory exhausted.  All callers changed.
50872         Do not bother partly cleaning up on
50873         memory allocation failure; that is free_dir's job.
50874         However, free ad if hash_insert fails, to avoid memory leak.
50875         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50876         fts->fts_options to see which union member to use.
50877
50878 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50879
50880         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50881         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50882
50883 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
50884
50885         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50886
50887 2005-05-20  Jim Meyering  <jim@meyering.net>
50888
50889         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50890         Now a macro, to pacify GCC.
50891
50892 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50893
50894         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50895         of -1.
50896
50897 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
50898
50899         * lib/chown.c (rpl_chown): Return -1 on failure.
50900
50901 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50902
50903         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50904         Don't check for stddef.h.
50905         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50906         don't use its results.
50907         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50908         since we include them unconditionally.  Don't require
50909         AM_STDBOOL_H, since stdbool is a prerequisite.
50910         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50911         since we assume C89 or better.
50912         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50913         as we don't use their results.
50914         Don't check for fchdir, memmove, memset, strrchr, as we use
50915         them unconditionally.
50916         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50917         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50918
50919 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
50920
50921         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50922         Include <stddef.h> unconditionally, since we assume C89 now.
50923         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50924         * lib/fts.c: Include fts_.h first, to check interface.
50925         Do not include intprops.h; no longer needed.
50926         Include cycle-check.h and hash.h, since fts_.h no longer does.
50927         Remove unnecessary casts of closedir to void.
50928         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50929         decide whether to decrement nlinks.
50930         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50931         (FTS): Use struct hash_table * instead of Hash_table, so that
50932         we no longer need to include hash.h here.
50933
50934 2005-05-18  Jim Meyering  <jim@meyering.net>
50935
50936         * modules/dirfd (License): Change to LGPL.  Most of the code
50937         is already in the public domain.
50938
50939 2005-05-18  Jim Meyering  <jim@meyering.net>
50940
50941         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50942         Reported by Yoann Vandoorselaere.
50943
50944 2005-05-17  Jim Meyering  <jim@meyering.net>
50945
50946         * m4/fts.m4: New file, from coreutils.
50947
50948 2005-05-17  Jim Meyering  <jim@meyering.net>
50949
50950         * lib/fts.c, lib/fts_.h: New files, from coreutils.
50951
50952 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50953
50954         Sync from coreutils.
50955         * m4/unlinkdir.m4: New file.
50956
50957 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50958
50959         Sync from coreutils.
50960         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50961         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50962         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50963         White space changes only.
50964         * lib/makepath.c (make_path): Port to hosts where leading "//" is
50965         special.
50966         * lib/yesno.c: Include getline.h, not ctype.h.
50967         (yesno): Don't remove leading white space; POSIX doesn't allow it.
50968         Use getline to remove arbitrary restriction on response length.
50969
50970 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
50971
50972         * config/srclist-update: Spell out "Street" in FSF postal
50973         mail address; this is the style the FSF seems to prefer.
50974
50975         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50976         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50977         this updates FSF postal mail address.
50978
50979         Sync from coreutils.
50980         * modules/unlinkdir: New file.
50981         * modules/yesno (Depends-on): Add getline.
50982         * MODULES.html.sh (File system functions): Add unlinkdir.
50983
50984 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
50985
50986         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50987         lib/strsep.h:
50988         Change the initial comment to refer to GPL, not LGPL.
50989         gnulib-tool will change it to LGPL as needed.
50990
50991         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50992         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50993         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50994         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50995         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50996         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50997         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50998         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50999         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
51000         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
51001         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
51002         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
51003         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
51004         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
51005         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
51006         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
51007         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
51008         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
51009         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
51010         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
51011         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
51012         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
51013         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
51014         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
51015         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
51016         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
51017         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
51018         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
51019         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
51020         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
51021         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
51022         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
51023         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
51024         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
51025         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
51026         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
51027         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
51028         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
51029         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
51030         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
51031         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
51032         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
51033         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
51034         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
51035         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
51036         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
51037         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
51038         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
51039         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
51040         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
51041         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51042         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
51043         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
51044         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
51045         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
51046         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
51047         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
51048         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
51049         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
51050         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
51051         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
51052         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
51053         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
51054         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
51055         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
51056         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
51057         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
51058         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
51059         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
51060         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
51061         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
51062         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
51063         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
51064         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
51065         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
51066         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
51067         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
51068         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
51069         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
51070         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
51071         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
51072         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
51073         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
51074         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
51075         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
51076         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
51077         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
51078         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
51079         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
51080         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
51081         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
51082         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
51083         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
51084         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
51085         lib/yesno.c, lib/yesno.h:
51086         Update FSF postal mail address.
51087
51088 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51089
51090         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
51091         tests/test-memmem.c, tests/test-stpncpy.c:
51092         Update FSF postal mail address.
51093
51094 2005-05-13  Bruno Haible  <bruno@clisp.org>
51095
51096         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
51097         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
51098         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
51099         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
51100         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
51101         Add support for 64-bit integers in the MSVC compiler.
51102
51103 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51104
51105         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
51106
51107 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
51108
51109         * gnulib-tool (func_import): Sort and uniquify recommended includes.
51110
51111 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
51112
51113         * doc/getdate.texi (General date syntax): Don't say that date
51114         date --iso-8601=ns generates acceptable dates; it doesn't yet.
51115         Problem reported by Nic Ferrier.
51116
51117 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51118
51119         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
51120         specified in ai_socktype. Fix invalid ai_protocol
51121         check. ai_protocol is usually set to 0 or depending on
51122         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
51123         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
51124         ai_socktype / ai_protocol in the returned addrinfo structure.
51125
51126 2005-05-10  Simon Josefsson  <jas@extundo.com>
51127
51128         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
51129         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51130
51131 2005-05-10  Karl Berry  <karl@gnu.org>
51132
51133         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
51134         (from http://www.gnu.org/licenses).
51135         * doc/COPYING.LIB: also rename to COPYING.LESSER.
51136         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
51137         fdl.texi suffices.
51138
51139 2005-05-10  Karl Berry  <karl@gnu.org>
51140
51141         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
51142         (COPYING.DOC): remove.
51143
51144         * config/srclist-update: new FSF address.
51145
51146 2005-05-10  Derek Price  <derek@ximbiot.com>
51147
51148         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
51149         possible.
51150
51151 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51152             Bruno Haible  <bruno@clisp.org>
51153
51154         * modules/inet_ntop: New file.
51155         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51156         inet_ntop.
51157
51158 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51159             Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/inet_ntop.m4: New file.
51162
51163 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51164             Bruno Haible  <bruno@clisp.org>
51165
51166         * lib/inet_ntop.h: New file.
51167         * lib/inet_ntop.c: New file, from glibc with modifications.
51168
51169 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
51170
51171         * modules/time_r (License): Change to LGPL.
51172         * modules/extensions (License): Change to LGPL.  Actually,
51173         the license is more permissive than that, but currently gnulib-tool
51174         doesn't know how to handle more-permissive licenses.
51175
51176         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
51177         Problem reported by Dave Love.
51178
51179 2005-05-08  Jim Meyering  <jim@meyering.net>
51180
51181         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
51182         blank.
51183
51184 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51185
51186         * modules/argmatch (Depends-on): Add stdbool.
51187         * modules/backupfile (Depends-on): Likewise.
51188         * modules/chdir-long (Depends-on): Likewise.
51189         * modules/closeout (Depends-on): Likewise.
51190         * modules/cycle-check (Depends-on): Likewise.
51191         * modules/dirname (Depends-on): Likewise.
51192         * modules/fnmatch (Depends-on): Likewise.
51193         * modules/fsusage (Depends-on): Likewise.
51194         * modules/fwriteerror (Depends-on): Likewise.
51195         * modules/getcwd (Depends-on): Likewise.
51196         * modules/getloadavg (Depends-on): Likewise.
51197         * modules/hard-locale (Depends-on): Likewise.
51198         * modules/makepath (Depends-on): Likewise.
51199         * modules/mountlist (Depends-on): Likewise.
51200         * modules/nanosleep (Depends-on): Likewise.
51201         * modules/posixtm (Depends-on): Likewise.
51202         * modules/quotearg (Depends-on): Likewise.
51203         * modules/readtokens (Depends-on): Likewise.
51204         * modules/readtokens0 (Depends-on): Likewise.
51205         * modules/readutmp (Depends-on): Likewise.
51206         * modules/save-cwd (Depends-on): Likewise.
51207         * modules/strftime (Depends-on): Likewise.
51208         * modules/userspec (Depends-on): Likewise.
51209         * modules/utimecmp (Depends-on): Likewise.
51210         * modules/xgetcwd (Depends-on): Likewise.
51211         * modules/xnanosleep (Depends-on): Likewise.
51212         * modules/xstrtod (Depends-on): Likewise.
51213         * modules/yesno (Depends-on): Likewise.
51214
51215 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
51216
51217         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
51218         needless checks.
51219
51220 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51221
51222         Merge from coreutils.  Among other things,
51223         add bulletproofing for cases where stdin, stdout, or stderr are closed.
51224         * lib/fd-safer.c: New file.
51225         * lib/fcntl-safer.h, open-safer.c: Remove.
51226         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
51227         * lib/dup-safer.c: Include unistd-safer.h first.
51228         Don't include errno.h.
51229         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
51230         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
51231         * lib/file-type.c: Rely on file-type.h change.
51232         * lib/getloadavg.c: Include unistd-safer.h.
51233         (getloadavg): Use safer open.
51234         * lib/getusershell.c: Include "stdio-safer.h".
51235         (getusershell): Use safer fopen.
51236         * lib/long-options.c (long_options): Use NULL rather than 0.
51237         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
51238         'free'.
51239         * lib/modechange.c: Likewise.
51240         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
51241         (MODE_DONE): New constant.
51242         (struct mode_change): Remove 'next' member.
51243         (make_node_op_equals): New function; like the old one of the
51244         same name, except it allocates an array.
51245         (mode_compile, mode_create_from_ref): Use it.
51246         (mode_compile): Allocate result as an array, not a linked list.
51247         Parse octal string ourself, so that we catch mistakes like "+0".
51248         (mode_adjust): Arg is an array, not a linked list.
51249         * lib/modechange.c: Include stat-macros.h, xalloc.h.
51250         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
51251         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
51252         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
51253         Remove.  This is now stat-macros.h's job.
51254         (talloc): Remove.  All callers replaced by xalloc, so that
51255         our invokers don't have to worry about reporting memory failures.
51256         (make_node_op_equals): Remove.
51257         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51258         New constants.
51259         (struct mode_change): Moved here from modechange.h.
51260         (mode_append_entry): Remove.
51261         (mode_compile): Remove MASKED_OPS arg, since it encouraged
51262         apps to have incorrect behavior.  Use simpler algorithm for head
51263         and tail.  Don't futz with umask; that's now the job of mode_adjust.
51264         Detect more invalid usages rather than having somewhat-random behavior.
51265         Don't insert an "a=" action, as that leads to incorrect behavior.
51266         (mode_compile, mode_create_from_ref): Return NULL on error instead
51267         of an enum, since now there's only one way to have an error.  All
51268         callers changed.
51269         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
51270         at the correct time.  Simplify calculation of "+u" and its ilk.
51271         Don't mishandle "+X".
51272         (mode_free): Remove "register" and localize decls.
51273         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
51274         (struct mode_change): Move to modechange.c; callers don't
51275         need to see this stuff.
51276         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
51277         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
51278         (mode_change, mode_adjust): Reflect the new signatures noted above.
51279         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
51280         that might redefine system include files.
51281         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
51282         (my_usleep): Use NULL rather than (void *) 0.
51283         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
51284         Use siginterrupt to specify that system calls should be interrupted.
51285         (rpl_nanosleep): Move initialization of suspended closer to call of
51286         my_usleep.
51287         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
51288         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
51289         (desirable_utmp_entry): New function.
51290         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
51291         using x2nrealloc, to simplify logic.
51292         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
51293         size calculation.  Do not assume utmp file is a regular file.
51294         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
51295         (READ_UTMP_CHECK_PIDS): New constant.
51296         * lib/save-cwd.c: Include unistd-safer.h.
51297         (save_cwd): Use fd_safer.
51298         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
51299         [!_LIBC] Include "stat-macros.h" instead.
51300         * lib/unistd-safer.h (fd_safer): New decl.
51301
51302 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51303
51304         * modules/getloadavg (Depends-on): Add unistd-safer.
51305         * modules/getusershell (Depends-on): Add stdio-safer.
51306         * modules/lstat (Depends-on): Remove xalloc.
51307         * modules/mkstemp (Depends-on): Add stat-macros.
51308         * modules/modechange (Depends-on): Remove xstrtol.
51309         Add stat-macros, xalloc.
51310         * modules/save-cwd (Depends-on): Add unistd-safer.
51311         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
51312         * modules/unistd-safer (Files): Add lib/fd-safer.c
51313         (Makefile.am): Remove lib_SOURCES.
51314
51315         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
51316         Remove fcntl-safer; unistd-safer supersedes it.
51317
51318 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51319
51320         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
51321         AC_HEADER_STAT.
51322         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
51323         (gl_PREREQ_CHOWN): Remove.
51324         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
51325         it.  Don't require AC_HEADER_STAT.
51326         (gl_PREREQ_LSTAT): Remove.
51327         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
51328         Don't require AC_HEADER_STAT.
51329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
51330         (gl_PREREQ_RMDIR): Remove.
51331         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
51332         mention stat-macros.h or AC_HEADER_STAT, since we'll make
51333         the stat-macros module a prerequisite.
51334         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
51335         * m4/filemode.m4 (gl_FILEMODE): Likewise.
51336         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
51337         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
51338         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
51339         variable names.
51340         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
51341         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
51342         variable prefixes.
51343         * m4/fcntl-safer.m4: Remove.
51344         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
51345         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
51346         Invoke gl_PREREQ_FD_SAFER.
51347         (gl_PREREQ_FD_SAFER): New macro.
51348         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
51349         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
51350         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
51351         Remove duplicate call to AC_LIBOBJ(readutmp).
51352         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
51353
51354         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
51355         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
51356
51357 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
51358
51359         * MODULES.html.sh (Misc): Add byteswap.
51360
51361 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51362
51363         * modules/getcwd (Depends-on): Add extensions.
51364         * modules/openat (Depends-on): Likewise.
51365
51366 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51367
51368         * modules/byteswap: New file.
51369
51370 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51371
51372         * m4/byteswap.m4: New file.
51373
51374 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
51375
51376         * lib/byteswap_.h: New file.
51377
51378 2005-04-25  Karl Berry  <karl@gnu.org>
51379
51380         * m4/gettext.m4: Update from GNU gettext 0.14.4.
51381
51382 2005-04-25  Albert Chin  <china@thewrittenword.com>
51383
51384         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
51385         Toolkit C bug.
51386
51387 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
51388
51389         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
51390         (func_ln_if_changed) Remove forcibly for no error message
51391         in case file does not exist.
51392
51393 2005-04-19  Simon Josefsson  <jas@extundo.com>
51394
51395         * gnulib-tool (Options): Make --symlink mean --symbolic.
51396
51397 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
51398
51399         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
51400
51401 2005-04-16  Simon Josefsson  <jas@extundo.com>
51402
51403         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
51404
51405 2005-04-15  Simon Josefsson  <jas@extundo.com>
51406
51407         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
51408
51409 2005-04-15  Simon Josefsson  <jas@extundo.com>
51410
51411         * gnulib-tool: Rename --symlink to --symbolic.
51412
51413 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
51414
51415         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
51416         symbolic links to files instead of copying/moving.  Add --aux-dir,
51417         specifying directory relative --dir where auxiliary build tools
51418         are placed.
51419
51420 2005-04-14  Bruno Haible  <bruno@clisp.org>
51421
51422         * modules/allocsa (License): Change to LGPL.
51423         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51424
51425 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51426
51427         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
51428         that "UTC +1 second" continues to work.  Problem reported
51429         by Dmitry V. Levin.
51430         (relunit_snumber): New rule.
51431         (relunit): Use it.
51432
51433 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51434
51435         * lib/getdate.y (universal_time_zone_table): New constant.
51436         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
51437         universal_time_zone_table.
51438         (lookup_zone): Prefer universal_time_zone_table to
51439         local_time_zone_table, so that "GMT" time stamps are allowed in
51440         London during the summer.  Problem reported by Ian Abbott.
51441
51442 2005-04-12  Jim Meyering  <jim@meyering.net>
51443
51444         * lib/human.c (humblock): Set *options even when returning due to
51445         xstrtoumax conversion failure.  Thanks to a used-uninitialized
51446         warning from gcc-4.
51447
51448 2005-04-09  Jim Meyering  <jim@meyering.net>
51449
51450         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51451         -Wuninitialized: initialize tm0.tm_year.
51452
51453 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51454
51455         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51456         count, since there's no maximum.  All uses changed.
51457         Add member dsts_seen.
51458         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51459         not being INT_MAX.
51460         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51461         Use pc_rels_seen to decide whther a date is absolute.
51462
51463         * lib/getdate.y (number): Don't overwrite year.
51464         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51465         check.
51466
51467 2005-04-02  Simon Josefsson  <jas@extundo.com>
51468
51469         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51470         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51471
51472 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
51473
51474         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51475         where no absolute path name can be longer than PATH_MAX.
51476
51477 2005-03-27  Jim Meyering  <jim@meyering.net>
51478
51479         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51480
51481 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
51482
51483         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51484         "one's complement" -> "ones' complement" in comment, as per Knuth.
51485         "value of type" -> "type or expression" in comment.
51486         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51487
51488 2005-03-26  Jim Meyering  <jim@meyering.net>
51489
51490         Comment nits.
51491         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51492         Correct typos: s/or/of/.
51493
51494 2005-03-26  Jim Meyering  <jim@meyering.net>
51495
51496         * modules/check-include-files: Move to ../ and rename to...
51497         * check-module: ...this.
51498
51499 2005-03-25  Jim Meyering  <jim@meyering.net>
51500
51501         * modules/xvasprintf (Files): Add xalloc.h.
51502
51503 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
51504
51505         * modules/gettext (Files): config/config.rpath ->
51506         build-aux/config.rpath
51507         * modules/iconv (Files): Likewise.
51508         Problem reported by Oskar Liljeblad.
51509
51510 2005-03-23  Jim Meyering  <jim@meyering.net>
51511
51512         * modules/check-include-files: New script to check for
51513         missing dependencies, multiple includes, etc.
51514
51515         * modules/c-strtold (Depends-on): Add xalloc.
51516         * modules/c-strtod (Depends-on): Add xalloc.
51517         * modules/hash (Depends-on): Add xalloc.
51518         (Files): Remove lib/xalloc.h.
51519
51520         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51521         * modules/userspec (Files): Add lib/inttostr.h.
51522
51523 2005-03-23  Jim Meyering  <jim@meyering.net>
51524
51525         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51526
51527 2005-03-22  Jim Meyering  <jim@meyering.net>
51528
51529         * modules/stat-macros: New module.
51530         * modules/canonicalize, modules/euidaccess, modules/file-type,
51531         * modules/filemode, modules/lchown, modules/makepath,
51532         * modules/rmdir, modules/stat: Depend on new stat-macros module
51533         rather than listing lib/stat-macros.h manually.
51534         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51535
51536 2005-03-22  Jim Meyering  <jim@meyering.net>
51537
51538         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51539
51540 2005-03-22  Bruno Haible  <bruno@clisp.org>
51541
51542         * config/srclist.txt: Replace target directory 'config' with
51543         'build-aux'.
51544         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51545         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51546         ../build-aux/.
51547
51548 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
51549
51550         * modules/chdir-long (Depends-on): Add mempcpy.
51551
51552         * modules/acl, modules/backupfile, modules/c-strtod,
51553         modules/c-strtold, modules/canon-host, modules/canonicalize,
51554         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51555         modules/exclude, modules/exitfail, modules/file-type,
51556         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51557         modules/getdate, modules/getline, modules/getpagesize,
51558         modules/getpass, modules/getugroups, modules/group-member,
51559         modules/hard-locale, modules/hash, modules/human, modules/idcache,
51560         modules/inttostr, modules/long-options, modules/makepath,
51561         modules/md5, modules/memcasecmp, modules/memcoll,
51562         modules/modechange, modules/mountlist, modules/path-concat,
51563         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51564         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51565         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51566         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51567         modules/strftime, modules/strndup, modules/strverscmp,
51568         modules/timespec, modules/unlocked-io, modules/userspec,
51569         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51570         modules/yesno:
51571         Remove lib_SOURCES line from Makefile.am section, as this is now
51572         done automatically by the corresponding Autoconf macro.
51573
51574 2005-03-21  Jim Meyering  <jim@meyering.net>
51575
51576         Changes imported from coreutils.
51577
51578         * lib/cycle-check.c: Don't include xalloc.h.
51579
51580         * lib/path-concat.c: Don't include assert.h.
51581         (path_concat): Remove assertion that would have triggered
51582         for ABASE starting with more than one slash.
51583         Reported by Andreas Schwab.
51584
51585         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51586         properly when ABASE is an absolute file name.
51587         Correct the description of this function.
51588         Include <assert.h>.
51589         Add an assertion and a test driver.
51590         This fixes a bug introduced on 2004-07-02.
51591         Andreas Schwab reported the resulting failure of cp --parents:
51592         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51593
51594 2005-03-21  Jim Meyering  <jim@meyering.net>
51595
51596         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51597         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51598
51599 2005-03-21  Jim Meyering  <jim@meyering.net>
51600         and  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51603         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51604         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51605         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51606         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51607         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51608         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51609         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51610         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51611         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51612         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51613         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51614         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51615         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51616         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51617         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51618         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51619         for these modules.
51620
51621 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
51622
51623         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51624         (which shouldn't happen), generate nothing instead of returning 0
51625         immediately, so that nstrftime (NULL, ...) doesn't return 0.
51626
51627 2005-03-16  Bruno Haible  <bruno@clisp.org>
51628
51629         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51630         HAVE_LONGLONG_64BIT.
51631
51632 2005-03-16  Bruno Haible  <bruno@clisp.org>
51633
51634         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51635         HAVE_LONGLONG_64BIT.
51636
51637 2005-03-16  Bruno Haible  <bruno@clisp.org>
51638
51639         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51640         HAVE_LONGLONG_64BIT.
51641
51642 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51643
51644         * lib/strftime.c (my_strftime): Prepend space to format so that we can
51645         reliably distinguish strftime failure from empty output on POSIX
51646         hosts.
51647
51648 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
51649
51650         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51651         (iconv_string): Don't guess a size-zero buffer, as that might cause
51652         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
51653         result would be 'too large', where 'too large' is (heuristically)
51654         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51655         overflow concerns.  This will prevent some unwanted malloc failures
51656         when the inputs are very large.
51657
51658 2005-03-15  Karl Berry  <karl@gnu.org>
51659
51660         * config/srclist.txt (config.rpath): from gettext.
51661         * config/config.rpath: update.
51662
51663 2005-03-15  Bruno Haible  <bruno@clisp.org>
51664
51665         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51666         to 'negate'.
51667
51668         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51669         variable.
51670
51671         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51672         results.
51673
51674 2005-03-14  Simon Josefsson  <jas@extundo.com>
51675
51676         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51677         <fx@gnu.org>.
51678
51679 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
51680
51681         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51682         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51683         intprops.h.
51684         * lib/strtol.c: Likewise.
51685
51686 2005-03-14  Jim Meyering  <jim@meyering.net>
51687
51688         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51689         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51690         to be nonzero so that we (and caller) can detect the difference
51691         between a valid zero-length expansion and an error return, even
51692         when the underlying strftime fails before writing anything into
51693         that location.
51694
51695 2005-03-14  Bruno Haible  <bruno@clisp.org>
51696
51697         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51698         Update from GNU gettext 0.14.3.
51699
51700 2005-03-10  Jim Meyering  <jim@meyering.net>
51701
51702         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51703
51704 2005-03-10  Jim Meyering  <jim@meyering.net>
51705
51706         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51707         so that this module works on systems without fchdir.
51708
51709 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
51710
51711         Factor int-properties macros into a single file, except for
51712         glibc-related files.
51713         * lib/intprops.h: New file.
51714         * lib/getloadavg.c: Include it instead of limits.h.
51715         (INT_STRLEN_BOUND): Remove.
51716         * lib/human.c: Include intprops.h.
51717         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51718         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51719         302/1000.
51720         * lib/inttostr.h: Include intprops.h instead of limits.h.
51721         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51722         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51723         for consistency with intprops.h.
51724         (time_t_is_integer, twos_complement_arithmetic): Use them.
51725         * lib/sig2str.h: Include <signal.h>, intprops.h.
51726         (INT_STRLEN_BOUND): Remove.
51727         * lib/strftime.c (TYPE_SIGNED): Remove.
51728         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51729         * lib/strtol.c: Adjust comments to match intprops.h.
51730         * lib/userspec.c: Include intprops.h.
51731         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51732         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51733         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51734         instead of rolling our own expressions.
51735         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51736
51737         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
51738         instead of int.
51739         (my_strftime): Do not mishandle years close to INT_MAX, by doing
51740         the right thing even if adding 1900 would overflow.  Similarly
51741         for tm_mon + 1 and tm_yday + 1.
51742         Make %Y always equivalent to %C%y, and similarly for %G and %g.
51743         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51744         (DO_SIGNED_NUMBER): New macro.
51745         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51746
51747 2005-03-07  Bruno Haible  <bruno@clisp.org>
51748
51749         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51750
51751 2005-03-07  Bruno Haible  <bruno@clisp.org>
51752
51753         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51754
51755 2005-03-04  Derek R. Price  <derek@ximbiot.com>
51756
51757         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51758         (func_import): Only replace files via --import when they have actually
51759         changed.
51760
51761 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51762
51763         * m4/mmap-anon.m4: New file.
51764         * m4/pagealign_alloc.m4: New file.
51765
51766 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51767             Bruno Haible  <bruno@clisp.org>
51768
51769         * modules/pagealign_alloc: New file.
51770         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51771
51772 2005-03-03  Derek R. Price  <derek@ximbiot.com>
51773             Bruno Haible  <bruno@clisp.org>
51774
51775         * lib/pagealign_alloc.h: New file.
51776         * lib/pagealign_alloc.c: New file.
51777
51778 2005-03-03  Bruno Haible  <bruno@clisp.org>
51779
51780         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51781         Use an all-permissive copyright notice, recommended by RMS.
51782
51783 2005-03-02  Bruno Haible  <bruno@clisp.org>
51784
51785         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51786         of AIX, the replacement has to be done only after <string.h> is
51787         included, therefore not in config.h. stpncpy.h does the replacement,
51788         and stpncpy.c uses it.
51789
51790 2005-03-02  Bruno Haible  <bruno@clisp.org>
51791
51792         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51793         stpncpy.c uses it.
51794
51795 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51796
51797         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51798         The workaround isn't strictly needed for POSIX conformance, and
51799         it's too much of a pain to configure and maintain.  We'll ask
51800         people to fix their kernels instead.
51801         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51802         (NANOSLEEP_BUG_WORKAROUND): Remove.
51803         (xnanosleep): Remove the workaround.
51804
51805 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51806
51807         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51808         Reported by Derek Price.
51809         (Include): Add "timespec.h".
51810
51811         * modules/xnanosleep (Depends-on): Remove gethrxtime.
51812
51813 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
51814
51815         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51816         to detect nanosleep bug.
51817
51818 2005-03-01  Bruno Haible  <bruno@clisp.org>
51819
51820         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51821
51822 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
51823
51824         * modules/gethrxtime: New file.
51825         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51826         (Depends-on): Add gethrxtime.
51827         (configure.ac): Add gl_XNANOSLEEP.
51828         (Makefile.am): Remove lib_SOURCES line.
51829
51830 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51831
51832         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51833         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51834
51835 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
51836
51837         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51838         * lib/timespec.h (gettime): Return void, since it always
51839         succeeds now.  All uses changed.
51840         * lib/gettime.c (gettime) Likewise.
51841         [HAVE_NANOTIME]: Prefer nanotime.
51842         Assume gettimeofday succeeds, as POSIX requires.
51843         Assime time () succeeds, since other code already does.
51844         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51845         (timespec_subtract): Remove.
51846         (NANOSLEEP_BUG_WORKAROUND): New constant.
51847         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51848         things considerably.  Use it only on GNU/Linux hosts, since the
51849         workaround shouldn't be needed elsewhere.
51850
51851 2005-02-24  Bruno Haible  <bruno@clisp.org>
51852
51853         * modules/gettext (Files): Add m4/glibc2.m4.
51854
51855 2005-02-24  Bruno Haible  <bruno@clisp.org>
51856
51857         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51858         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51859         * m4/progtest.m4:
51860         Update from GNU gettext 0.14.2.
51861         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51862
51863 2005-02-24  Bruno Haible  <bruno@clisp.org>
51864
51865         * lib/localcharset.c: Update from GNU gettext 0.14.2.
51866         * lib/config.charset: Update from GNU gettext 0.14.2.
51867
51868 2005-02-24  Bruno Haible  <bruno@clisp.org>
51869
51870         * lib/gettext.h: Update from GNU gettext 0.14.2.
51871
51872 2005-02-23  Simon Josefsson  <jas@extundo.com>
51873
51874         * m4/iconvme.m4: New file.
51875
51876 2005-02-23  Jim Meyering  <jim@meyering.net>
51877
51878         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51879         change.
51880         Thanks to Bruno Haible for catching it.
51881
51882 2005-02-22  Simon Josefsson  <jas@extundo.com>
51883
51884         * modules/iconvme: New file.
51885
51886         * MODULES.html.sh: Add iconvme.
51887
51888 2005-02-22  Simon Josefsson  <jas@extundo.com>
51889
51890         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51891
51892 2005-02-22  Simon Josefsson  <jas@extundo.com>
51893
51894         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51895
51896 2005-02-22  Jim Meyering  <jim@meyering.net>
51897
51898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51899         s/ifndef/ifdef/.
51900
51901 2005-02-20  Neil Conway  <neilc@samurai.com>
51902
51903         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51904         returned by OSX/Darwin if the specified buffer is not large
51905         enough for the hostname.
51906
51907 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51908
51909         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51910         pass it to _help, otherwise the latter coredumps trying to
51911         dereference state.root_argp.
51912
51913 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51914
51915         * modules/chdir-long (Depends-on): Add memrchr.
51916         * modules/memrchr (Files): Add lib/memrchr.h.
51917         (Include): "memrchr.h".
51918
51919 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51920
51921         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51922
51923 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
51924
51925         * lib/memrchr.h: New file.
51926         * lib/chdir-long.c: Include it.
51927         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51928         Don't bother including stddef.h.
51929
51930 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
51931
51932         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51933         inclusion.
51934         Include <sys/types.h>, for dev_t.
51935         (ME_DUMMY, ME_REMOTE): Move from here....
51936         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51937         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
51938         Dmitry V. Levin.
51939         Include mountlist.h first, to test the interface.
51940
51941 2005-01-29  Bruno Haible  <bruno@clisp.org>
51942
51943         * lib/progname.c (program_name): Initialize.
51944         Needed when linking statically on MacOS X.
51945
51946 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51947
51948         Sync from coreutils.
51949         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51950         (Depends-on): Add c-strtod.
51951         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51952
51953 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
51954
51955         Sync from coreutils.
51956         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51957
51958         Remove files that are specific to coreutils.
51959         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51960
51961 2005-01-28  Bruno Haible  <bruno@clisp.org>
51962
51963         * modules/javacomp: New file.
51964         * MODULES.html.sh (Java): Add javacomp.
51965
51966 2005-01-28  Bruno Haible  <bruno@clisp.org>
51967
51968         * m4/javacomp.m4: New file, from GNU gettext.
51969
51970 2005-01-28  Bruno Haible  <bruno@clisp.org>
51971
51972         * lib/javacomp.sh.in: New file, from GNU gettext.
51973         * lib/javacomp.h: New file, from GNU gettext.
51974         * lib/javacomp.c: New file, from GNU gettext.
51975
51976 2005-01-26  Simon Josefsson  <jas@extundo.com>
51977
51978         * lib/gai_strerror.c: Use GPL in header.
51979
51980 2005-01-26  Bruno Haible  <bruno@clisp.org>
51981
51982         * modules/javaexec: New file.
51983         * MODULES.html.sh (Java): Add javaexec.
51984
51985 2005-01-26  Bruno Haible  <bruno@clisp.org>
51986
51987         * m4/javaexec.m4: New file, from GNU gettext.
51988
51989 2005-01-26  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/javaexec.sh.in: New file, from GNU gettext.
51992         * lib/javaexec.h: New file, from GNU gettext.
51993         * lib/javaexec.c: New file, from GNU gettext.
51994
51995 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
51996
51997         * modules/lchown (Depends-on): Remove lchown.h
51998
51999 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52000
52001         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
52002         must be defined if the header file was not found, in order
52003         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
52004
52005 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52006
52007         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
52008         initializers for struct pentry_state.
52009         (__argp_error): Check return value of __asprintf
52010         (__argp_failure): Translate error message
52011
52012         * lib/argp-parse.c: Removed braces around the expansion of N_()
52013
52014 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
52015
52016         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
52017         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
52018         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
52019         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
52020         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
52021         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
52022         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
52023         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
52024         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
52025         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
52026         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
52027         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
52028         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
52029         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
52030         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
52031         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
52032         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
52033         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
52034         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
52035         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
52036         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
52037         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
52038         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
52039         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
52040         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
52041         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
52042         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
52043         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
52044         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
52045         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
52046         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
52047         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
52048         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
52049         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
52050         xstrtol.m4, xstrtoumax.m4, yesno.m4:
52051         Use an all-permissive copyright notice, recommended by RMS.
52052
52053 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
52054
52055         * modules/chdir-long (Depends-on): Remove mempcpy.
52056
52057 2005-01-21  Jim Meyering  <jim@meyering.net>
52058
52059         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
52060         same value as for Solaris 9.
52061
52062         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
52063         component length.  This included changing the parameter to be
52064         of type `char *' rather than `char const *'.
52065         * lib/chdir-long.h (chdir_long): Update prototype.
52066
52067         * lib/openat.c (fdopendir, fstatat): New functions.
52068         * lib/openat.h: Include headers required for use of DIR and struct
52069         stat.
52070         [AT_SYMLINK_NOFOLLOW]: Define.
52071         (fdopendir, fstatat): Add prototypes.
52072
52073 2005-01-21  Bruno Haible  <bruno@clisp.org>
52074
52075         * modules/classpath: New file.
52076         * MODULES.html.sh (Java): Add classpath.
52077
52078 2005-01-21  Bruno Haible  <bruno@clisp.org>
52079
52080         * lib/classpath.h: New file, from GNU gettext.
52081         * lib/classpath.c: New file, from GNU gettext.
52082
52083 2005-01-20  Simon Josefsson  <jas@extundo.com>
52084
52085         * modules/version-etc-fsf: New file.
52086
52087 2005-01-20  Simon Josefsson  <jas@extundo.com>
52088
52089         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
52090         * lib/version-etc.c: Remove version_etc_copyright.
52091         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
52092         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
52093
52094 2005-01-20  Simon Josefsson  <jas@extundo.com>
52095
52096         * lib/base64.h (isbase64): Add.
52097
52098         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
52099         using a unsigned prototype, don't inline.
52100         (base64_decode): Use it.
52101
52102 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52103
52104         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
52105         it.
52106
52107 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52108
52109         * lib/save-cwd.c (save_cwd): Remove code to support the case
52110         where fchdir is missing or flaky.
52111
52112 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
52113
52114         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
52115
52116 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
52117
52118         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
52119         AC_LIBSOURCES now does this.
52120         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
52121         with new ullong_max module.
52122
52123 2005-01-19  Bruno Haible  <bruno@clisp.org>
52124
52125         * modules/sh-quote: New file.
52126         * MODULES.html.sh (Executing programs): Add sh-quote.
52127
52128 2005-01-19  Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/sh-quote.h: New file, from GNU gettext.
52131         * lib/sh-quote.c: New file, from GNU gettext.
52132
52133 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52134
52135         Merge from coreutils.
52136         * m4/ullong_max.m4: New file.
52137         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
52138         (gl_MACROS): Assume localeconv exists.
52139
52140 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         Merge changes from coreutils, as described below in several
52143         changelogs dated today.
52144
52145         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
52146         (O_DIRECTORY): Remove; not needed here, since "." must be
52147         a directory.  All uses removed.
52148         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
52149         universal on Suns, and we also need to test for IRIX.
52150         Revamp code to use 'if' rather than '#if'.
52151         Avoid unnecessary comparison of cwd->desc to 0.
52152
52153         * lib/utimens.c (futimens): Robustify the previous patch, by checking
52154         for known valid error numbers rather than observed invalid ones.
52155
52156 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
52157
52158         * modules/ullong_max: New file.
52159
52160         * modules/chdir-long, modules/openat: New files.
52161         * modules/save-cwd (Depends-on): Depend on chdir-long.
52162         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
52163
52164 2005-01-18  Jim Meyering  <jim@meyering.net>
52165
52166         Merge from coreutils.
52167         * m4/chdir-long.m4, m4/openat.m4: New files.
52168         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
52169         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
52170         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
52171         is sane and DOES follow symlinks.  Besides, testing 20 different
52172         systems found no broken chown implementations.
52173         Prompted by a change in rsync's copy of this macro.
52174         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
52175
52176         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
52177
52178         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
52179         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
52180         NULL-means-set-to-current-time semantics.
52181         Remove temporary file immediately, rather than waiting
52182         for configure's at-exit trap code to do it.
52183
52184 2005-01-18  Jim Meyering  <jim@meyering.net>
52185
52186         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52187
52188         * lib/utimens.c (futimens): Account for the fact that futimes
52189         can also fail with errno == ENOSYS or errno == ENOENT.
52190         Patch from Dmitry V. Levin.
52191
52192         Change the name of the robust chdir function from chdir to chdir_long.
52193         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
52194         (restore_cwd): Use chdir_long, not chdir.
52195         * lib/chdir-long.c: Renamed from chdir.c.
52196         * lib/chdir-long.h: Renamed from chdir.h.
52197         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
52198         Hurd.
52199
52200 2005-01-18  Bruno Haible  <bruno@clisp.org>
52201
52202         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
52203         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
52204         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
52205         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
52206         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
52207         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
52208         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
52209         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
52210         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
52211         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
52212         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
52213         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
52214         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
52215         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
52216         Use an all-permissive copyright notice, recommended by RMS.
52217
52218 2005-01-18  Bob Proulx  <bob@proulx.com>
52219
52220         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
52221         simplify offsetof() macro construct to avoid compile failure with
52222         native HP-UX 11.0 ANSI C compiler.
52223
52224 2005-01-17  Bruno Haible  <bruno@clisp.org>
52225
52226         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
52227         redundant because stpncpy.m4 takes care of it.
52228
52229 2005-01-17  Bruno Haible  <bruno@clisp.org>
52230
52231         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
52232
52233 2005-01-17  Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
52236         used.
52237
52238 2005-01-17  Bruno Haible  <bruno@clisp.org>
52239
52240         * lib/fwriteerror.h (fwriteerror): Change specification to include
52241         fclose.
52242         * lib/fwriteerror.c: Include <stdbool.h>.
52243         (fwriteerror): At the end, close the file stream. Record whether
52244         stdout was already closed.
52245
52246 2005-01-17  Bruno Haible  <bruno@clisp.org>
52247
52248         * lib/execute.c (environ): Declare if needed.
52249         * lib/pipe.c (environ): Likewise.
52250         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
52251
52252 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52253
52254         * modules/argp: Depend on vsnprintf
52255
52256 2005-01-10  Jim Meyering  <jim@meyering.net>
52257
52258         * modules/closeout (Depends-on): Add atexit.
52259
52260 2005-01-06  Bruno Haible  <bruno@clisp.org>
52261
52262         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
52263
52264 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
52265
52266         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
52267         definitions to be after all include files, to avoid collisions.
52268         Problem reported by Bob Proulx.
52269
52270 2005-01-04  Jim Meyering  <jim@meyering.net>
52271
52272         Changes imported from coreutils.
52273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
52274         as the mkstemp template, use a temporary directory and an
52275         8.3-friendly template to avoid trouble on systems like DJGPP.
52276         Reported by Juan M. Guerrero via Stepan Kasal.
52277         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
52278         close. Remove the temporary directory right away, rather than waiting
52279         for configure's at-exit trap code to do it.
52280         Suggestion from Stepan Kasal.
52281
52282 2005-01-01  Simon Josefsson  <jas@extundo.com>
52283
52284         * gnulib-tool: Print #include directives when --import'ing.
52285
52286 2004-12-28  Simon Josefsson  <jas@extundo.com>
52287
52288         * tests/test-base64.c: Include required header files.  Remove
52289         unused variables.
52290
52291 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52292
52293         * modules/error (Depends-on): Remove gettext.
52294
52295 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
52296
52297         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
52298         not needed.  This removes a dependency on the gettext module.
52299         [defined _LIBC]: Do not include <libintl.h>; not needed.
52300
52301 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52302
52303         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
52304         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
52305
52306 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
52307
52308         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
52309         HAVE_DECL_STRTOLD.
52310
52311 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52312
52313         * modules/getdate (Depends-on): Remove alloca-opt.
52314
52315 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52316
52317         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
52318
52319 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52320
52321         * lib/argp-parse.c: Include <stddef.h>.
52322         (alignof, alignto): New macros.
52323         (parser_init): Don't assume that void * is aligned sufficiently
52324         for struct option.
52325
52326         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
52327         need to extend the stack.
52328         (YYINITDEPTH): New macro, so that the initial stack isn't overly
52329         large.
52330
52331 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52332
52333         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
52334
52335 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52336
52337         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
52338         (2004-10-24) change.  Apparently this was a false alarm.
52339
52340         * modules/getdate: Depend on alloca-opt, not alloca.
52341
52342 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52343
52344         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
52345         Remove now-obsolete comment about AIX.
52346         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
52347         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
52348         (YYMAXDEPTH): New macro.
52349
52350 2004-12-18  Simon Josefsson  <jas@extundo.com>
52351
52352         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
52353
52354 2004-12-18  Bruno Haible  <bruno@clisp.org>
52355
52356         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
52357
52358 2004-12-18  Bruno Haible  <bruno@clisp.org>
52359
52360         * lib/fatal-signal.c (fatal_signals): Make non-const.
52361         (init_fatal_signals): New function.
52362         (uninstall_handlers, install_handlers): Ignore signals that were set to
52363         SIG_IGN.
52364         (at_fatal_signal): Call init_fatal_signals.
52365         (init_fatal_signal_set): Likewise. Ignore signals that were set to
52366         SIG_IGN.
52367         Reported by Paul Eggert.
52368
52369 2004-12-18  Bruno Haible  <bruno@clisp.org>
52370
52371         * doc/alloca.texi: New file.
52372         * doc/alloca-opt.texi: New file.
52373
52374 2004-12-17  Jim Meyering  <jim@meyering.net>
52375
52376         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
52377         Otherwise, install-sh could exit with improper exit status when
52378         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
52379
52380 2004-12-16  Simon Josefsson  <jas@extundo.com>
52381
52382         * tests/test-base64.c: Add license.
52383
52384 2004-12-15  Stepan Kasal  <address@hidden>
52385
52386         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
52387
52388 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
52389
52390         * modules/getcwd (Files): Add m4/d-ino.m4.
52391         Suggested by Mark D. Baushke.
52392
52393 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52394
52395         * lib/getdate.y (textint): New member "negative".
52396         (time_zone_hhmm): New function.
52397         Expect 14 shift-reduce conflicts, not 13.
52398         (o_colon_minutes): New rule.
52399         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
52400         (yylex): Set the "negative" member of signed numbers.
52401
52402 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
52403
52404         * doc/getdate.texi (Time of day items, Time zone items):
52405         Describe new formats +00:00, UTC+00:00.
52406
52407 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
52408
52409         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
52410         spurious "-l"s.  Problem reported by Stepan Kasal.
52411
52412 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
52413
52414         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
52415         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
52416
52417 2004-12-04  Simon Josefsson  <jas@extundo.com>
52418
52419         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
52420         Vandoorselaere <yoann@prelude-ids.org>.
52421
52422 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52423
52424         Changes imported from coreutils.
52425         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
52426         exist.
52427         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
52428
52429 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52430
52431         Changes imported from coreutils.
52432         * lib/hard-locale.c: Assume <locale.h> exists.
52433         Include "strdup.h".
52434         (GLIBC_VERSION): New macro.
52435         (hard_locale): Assume setlocale exists.
52436         Rewrite to avoid #ifdef.
52437         Use strdup rather than malloc + strcpy.
52438         * lib/human.c: Assume <locale.h> exists.
52439         (human_readable): Assume localeconv exists.
52440
52441 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
52442
52443         * modules/hard-locale (Depends-on): Add strdup.
52444
52445 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
52446
52447         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52448         convert T2, not T.  (Imported from libc.)
52449
52450 2004-11-30  Simon Josefsson  <jas@extundo.com>
52451
52452         * modules/restrict (License): Change to LGPL.
52453
52454 2004-11-30  Simon Josefsson  <jas@extundo.com>
52455
52456         * m4/restrict.m4: Add copyright and copying conditions.
52457
52458 2004-11-30  Simon Josefsson  <jas@extundo.com>
52459
52460         * m4/base64.m4: New file.
52461
52462 2004-11-30  Simon Josefsson  <jas@extundo.com>
52463
52464         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52465         base64.
52466
52467         * tests/test-base64.c: New file.
52468
52469         * modules/base64: New file.
52470
52471 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52472
52473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52474         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52475
52476         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52477
52478 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
52479
52480         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52481         (__getcwd.c): Don't restore errno; glibc doesn't.
52482         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52483         first, falling back to our code only if its results look suspicious.
52484         Ensure that the resulting buffer is only as large as necessary.
52485
52486         * lib/readutmp.c: Include readutmp.h first.
52487         Include <errno.h>, since readutmp.h no longer does that.
52488         * lib/readutmp.h: Don't include <errno.h>,
52489         <sys/param.h>, <time.h>; not needed to establish interface.
52490         (errno): Remove decl.
52491         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52492         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52493         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52494
52495 2004-11-28  Simon Josefsson  <jas@extundo.com>
52496
52497         * lib/base64.h, base64.c: New file.
52498
52499 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
52500
52501         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52502
52503 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
52504
52505         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52506         (Depends-on): Remove pathmax, same.  Add mempcpy.
52507         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52508         (Makefile.am): Append getcwd.h to lib_SOURCES.
52509         (Include): Add getcwd.h.
52510         (Maintainer): Change from Jim Meyering to "all, glibc",
52511         since getdate now uses intended-for-glibc code.
52512         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52513         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
52514
52515 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52516
52517         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52518         HP's ANSI C compiler.
52519         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52520         Declaring int functions causes warnings on some modern systems and
52521         shouldn't be needed to compile on ancient ones.
52522         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52523         defined.
52524
52525         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52526         with the following changes.
52527         (__set_errno): Parenthesize properly.
52528         Include <stdbool.h>.
52529         (MIN, MAX, MATCHING_INO): New macros.
52530         (__getcwd): Define with prototype, not K&R form.
52531         Use heuristics to allocate default buffer on stack if possible.
52532         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52533         behavior, and to avoid the PATH_MAX limit when computing
52534         ../../../../...
52535         Use MATCHING_INO to compare inode number to file.
52536         Check for arithmetic overflow in size calculations.
52537         Fix bug in reallocation of dot array that caused getcwd to fail
52538         on directories nested deeper than 75.
52539         Be more careful about saving errno on error.
52540         Do not use realloc; use only free+malloc, as this is a bit
52541         more flexible and avoids a needless copy operation.
52542         Do not inspect st_dev and st_ino for symbolic links; POSIX
52543         doesn't specify the latter.
52544         Check for closedir errors.
52545         Avoid needless casts.
52546         Use "#ifdef weak_alias" around weak_alias, to be like other
52547         glibc code.
52548         The following changes to getcwd.c have effect only when used in
52549         gnulib; they have no effect inside glibc proper.
52550         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52551         as alloca isn't used.
52552         (alloca, __alloca): Likewise.
52553         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52554         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52555         unconditionally, as gnulib assumes C89 or better.
52556         Do not include <sys/param.h>.
52557         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52558         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52559         better.
52560         (NULL) [!defined NULL]: Remove; we assume C89 or better.
52561         Include <dirent.h> in a way that is compatible with modern Autoconf.
52562         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52563         New macros, if not already defined.
52564         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52565         Use "_LIBC", not "defined _LIBC", for consistency.
52566         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52567         a mempcpy module.
52568         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52569         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
52570         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52571         credit only to Jim Meyering and adjust the copyright dates.
52572         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52573         <stdlib.h>, <unistd.h>, "pathmax.h".
52574         Instead, include "xgetcwd.h" (first) and "getcwd.h".
52575         (INITIAL_BUFFER_SIZE): Remove.
52576         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52577
52578 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52581         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
52582         Use the _ONCE methods, for efficiency.
52583         Check for fcntl.h.  In test program, include <errno.h>
52584         and <fcntl.h> if available.  Remove old K&R cruft from
52585         test program.  Check for common errors in GNU/Linux,
52586         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
52587         don't do AC_LIBOBJ, as that's getcwd.m4's job.
52588         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52589         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
52590         name accordingly.
52591         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
52592         accommodate new getcwd.c.
52593         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52594         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52595         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52596         that's all we need now.
52597
52598 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52599
52600         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52601         argp-parse.c depends on getopt internals, that means we should
52602         always use our getopt, to be on the safe side.
52603         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52604         order not to spoil the result of an eventual previous invocation
52605         of gl_GETOPT_SUBSTITUTE.
52606
52607 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
52608
52609         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52610         redefinition warnings. To avoid them, include the defines
52611         in `#if !defined __need_getopt ... #endif'. The only place
52612         where __getopt_argv_const is used is in definitions
52613         of getopt_long and getopt_long_only below, which are as well
52614         protected by `#ifndef __need_getopt'.
52615         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52616         __need_getopt after including <stdio.h> and <unistd.h> These
52617         headers might have defined it.
52618
52619 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52620
52621         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52622
52623 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
52624
52625         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52626         (futimens): New function, which uses futimes if available.
52627         (futimens, utimens): Support timespec==NULL, with same semantics
52628         as utime and utimens.
52629         * lib/utimens.h (futimens): New decl.
52630
52631 2004-11-23  Jim Meyering  <jim@meyering.net>
52632
52633         * lib/getopt_.h: Remove trailing blanks.
52634
52635 2004-11-23  Jim Meyering  <jim@meyering.net>
52636
52637         * lib/__fpending.c: Add comment.
52638
52639 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
52640
52641         * modules/canonicalize (Depends-on): Add xreadlink.
52642         Problem reported by James Youngman.
52643
52644 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
52645
52646         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52647         New macros.
52648         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52649         optopt): Use them instead of invoking ## directly; otherwise, the
52650         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52651
52652 2004-11-19  Bruno Haible  <bruno@clisp.org>
52653
52654         * lib/strtok_r.c: Move comments from here...
52655         * lib/strtok_r.h: ... to here.
52656
52657 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52658
52659         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52660         implementations that mishandle size_t overflow.
52661
52662 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
52663
52664         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52665         might fail.  Problem reported by Yoann Vandoorselaere.
52666         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52667         implementations that mishandle size_t overflow.
52668
52669 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52670
52671         * modules/canon-host (Depends-on): Add strdup.
52672
52673 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52674
52675         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52676
52677 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52678
52679         * lib/canon-host.c: Include "strdup.h".
52680         (canon_host): Use getaddrinfo if available, so that IPv6 works.
52681         Use strdup instead of malloc/strcpy to duplicate strings.
52682
52683         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52684         (human_space_before_unit): New constant.
52685         * lib/human.c (human_readable): Support it.
52686
52687         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52688         (xgetcwd): Set errno correctly when failing.
52689         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52690         the failure is actually due to a PATH_MAX problem.
52691
52692         Further getopt changes to make it more likely that glibc will
52693         buy the changes back.
52694         * lib/getopt.c (POSIXLY_CORRECT): New constant.
52695         (getopt): Use it, so to preserve glibc semantic
52696         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52697         when compiling for libc.
52698         * lib/getopt_.h (__getopt_argv_const): Bring it back.
52699         (getopt_long, getopt_long_only): Use it.
52700
52701         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52702         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
52703         (getopt): Argv is now char * const *, as per standard.
52704         (_getopt_internal_r, _getopt_internal): Argv is now char **,
52705         not char *__getopt_argv_const *.
52706         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52707         _getopt_long_only_r): Likewise.
52708         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52709         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52710         _getopt_long_r, _getopt_long_only_r): Likewise.
52711         * lib/getopt_.h (__getopt_argv_const): Remove.
52712         (getopt): Argv is now char * const *, as per standard.
52713
52714         * lib/getdate.y (tORDINAL): New token.
52715         (day, relunit): Allow it for relative times.
52716         (relative_time_table): Use tORDINAL for ordinals.
52717
52718 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
52719
52720         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52721         Document that "second" isn't allowed as an ordinal number.
52722
52723 2004-11-16  Jim Meyering  <jim@meyering.net>
52724
52725         * modules/closeout (Depends-on): Add fpending.
52726
52727 2004-11-15  Jim Meyering  <jim@meyering.net>
52728
52729         * lib/closeout.c: Include "__fpending.h" once again.
52730         Include <stdbool.h>.
52731         (close_stdout): Don't fail just because stdout was closed initially,
52732         since some programs don't write to stdout in the normal course of
52733         operation (other than --version and --help), and we don't want this
52734         function to make e.g. `touch file >&-' fail.
52735         But do fail if it was closed and someone has tried to write to it.
52736         E.g., `printf foo >&-' must fail.
52737
52738 2004-11-13  Jim Meyering  <jim@meyering.net>
52739
52740         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52741
52742 2004-11-12  Simon Josefsson  <jas@extundo.com>
52743
52744         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52745         small doc fix is still pending.
52746
52747 2004-11-11  Simon Josefsson  <jas@extundo.com>
52748
52749         * modules/strtok_r: New file.
52750
52751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52752         strtok_r.
52753
52754 2004-11-11  Simon Josefsson  <jas@extundo.com>
52755
52756         * m4/strtok_r.m4: New file.
52757
52758         * m4/getopt.m4: Replace opterr.
52759
52760 2004-11-11  Simon Josefsson  <jas@extundo.com>
52761
52762         * lib/strtok_r.h, strtok_r.c: New file.
52763
52764 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52765
52766         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52767         of replacing opterr, getopt, etc.  This should handle the
52768         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52769
52770 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
52771
52772         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52773         we can stop lying to compilers about the constness of argv when we
52774         are compiled outside glibc.
52775         (getopt, getopt_long, getopt_long_only): Use it.
52776         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52777         _getopt_internal, getopt): Likewise.
52778         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52779         _getopt_long_only_r): Likewise.
52780         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52781         _getopt_long_r, _getopt_long_only_r): Likewise.
52782
52783         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52784         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52785         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52786         the other external symbols.
52787         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52788         declaration, since the above renaming now works around collisions.
52789
52790 2004-11-11  Jim Meyering  <jim@meyering.net>
52791
52792         * lib/linebreak.c: Remove trailing blanks.
52793         * lib/alloca_.h: Likewise.
52794         * lib/acosl.c: Likewise.
52795         * lib/euidaccess.c: Likewise.
52796         * lib/allocsa.h: Likewise.
52797
52798 2004-11-10  Simon Josefsson  <jas@extundo.com>
52799
52800         * m4/getaddrinfo.m4: New file.
52801
52802 2004-11-10  Simon Josefsson  <jas@extundo.com>
52803
52804         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52805
52806 2004-11-10  Simon Josefsson  <jas@extundo.com>
52807
52808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52809         getaddrinfo.
52810
52811         * modules/getaddrinfo: New file.
52812
52813 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52814
52815         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52816
52817 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
52818
52819         * lib/mktime.c (SHR): New macro, which is a portable
52820         substitute for >> that should work even on Crays.
52821         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52822         Problem reported by Mark D. Baushke in
52823         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52824         * lib/getdate.y (SHR): Likewise.
52825         (tm_diff): Use it.
52826         * lib/strftime.c (SHR): Likewise.
52827         (tm_diff): Use it.
52828         * lib/quotearg.c (struct quoting_options): Use unsigned int for
52829         quote_these_too, so that right shifts are well defined.  All uses
52830         changed.
52831
52832 2004-11-10  Jim Meyering  <jim@meyering.net>
52833
52834         Ensure that no close failure goes unreported.
52835         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
52836         return early when it seems there's nothing to flush.
52837         Don't include __fpending.h.
52838
52839 2004-11-10  Jim Meyering  <jim@meyering.net>
52840
52841         * modules/closeout (Depends-on): Remove fpending.
52842
52843 2004-11-10  Jim Meyering  <jim@meyering.net>
52844
52845         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52846
52847 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52848
52849         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
52850         gl_FUNC_STRFTIME.
52851         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52852         and AC_REQUIRE when possible, to avoid duplicate checks.
52853         Check for <wchar.h>.
52854
52855 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
52856
52857         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52858
52859 2004-11-09  Bruno Haible  <bruno@clisp.org>
52860
52861         * m4/sockpfaf.m4: New file.
52862
52863 2004-11-05  Bruno Haible  <bruno@clisp.org>
52864
52865         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52866         Reported by Mark D. Baushke <mdb@cvshome.org>.
52867
52868 2004-11-04  Bruno Haible  <bruno@clisp.org>
52869
52870         2004-09-11  Bruno Haible  <bruno@clisp.org>
52871                 * allocsa.valgrind: New file.
52872         2004-02-06  Bruno Haible  <bruno@clisp.org>
52873                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52874                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52875                 Reported by Christopher Seip <chris.seip@hp.com>.
52876
52877 2004-11-04  Bruno Haible  <bruno@clisp.org>
52878
52879         * modules/allocsa (Files): Add lib/allocsa.valgrind.
52880         (Makefile.am): Distribute it.
52881
52882 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
52883
52884         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52885         with errno == ERANGE if the buffer is too small.
52886         Problem reported by Mark D. Baushke.
52887
52888 2004-11-03  Albert Chin  <china@thewrittenword.com>
52889             Paul Eggert  <eggert@cs.ucla.edu>
52890
52891         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52892         equivalent, substitute $ac_type for equivalent type rather than
52893         blindly using uint32_t *always* which won't work if uint32_t is not
52894         available.  Define _UINT32_T to work around typedef of uint32_t if
52895         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52896         2.5.1.
52897
52898 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52899
52900         * m4/jm-macros.m4: Sync from coreutils.
52901         (gl_MACROS): Check for mbrlen, for pathchk.
52902         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52903
52904 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52905
52906         * lib/xreadlink.c (MAXSIZE): New macro.
52907         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
52908         size does not exceed MAXSIZE.  Avoid cast.
52909         As suggested by Mark D. Baushke in
52910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52911         if readlink fails with buffer size just under MAXSIZE, try again
52912         with MAXSIZE.
52913
52914 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
52915
52916         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52917
52918 2004-11-02  Derek R. Price  <derek@ximbiot.com>
52919         and  Paul Eggert  <eggert@cs.ucla.edu>
52920
52921         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52922         (get_date): Overparenthesize to avoid GCC warning.
52923
52924 2004-11-02  Bruno Haible  <bruno@clisp.org>
52925
52926         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52927         returns void.
52928
52929 2004-11-02  Bruno Haible  <bruno@clisp.org>
52930
52931         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52932         function returns void.
52933
52934 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52935
52936         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52937         fflush_unlocked, flockfile, funlockfile, funlockfile,
52938         fputs_unlocked, putc_unlocked.
52939
52940 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
52941
52942         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52943         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52944         already declared.
52945
52946 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52947
52948         * modules/getdate (Files): Add doc/getdate.texi.
52949         (Depends-on): Add setenv, xalloc.
52950
52951 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52952
52953         * lib/getdate.y: Add support for TZ="foo" within a date string.
52954         Fix some bugs near time_t boundaries.  Reject dates with
52955         out-of-range components, e.g., "Sept 31".
52956         Include <stdlib.h>, "setenv.h", "xalloc.h".
52957         (ISDIGIT_LOCALE): Remove; unused.
52958         Note that the TZ and time functions used here are not reentrant.
52959         (mktime_ok, get_tz): New functions.
52960         (TZBUFSIZE): New constant.
52961         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
52962         This requires that we sometimes generate our own TZ="XXX..." setting.
52963
52964 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
52965
52966         * doc/getdate.texi: New file, from coreutils with modifications for
52967         the new TZ parsing.
52968
52969 2004-10-27  Derek R. Price  <derek@ximbiot.com>
52970
52971         * lib/mktime.c (not_equal_tm): Remove redundant check.
52972
52973 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         * modules/regex (lib_SOURCES): Add regex.c.
52976         Reported by James Youngman in
52977         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52978
52979 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         * lib/getdate.y: Use Bison 1.875 features, and some minor
52982         code cleanups.  This change does not affect semantics.
52983         Don't include <stdlib.h>; no longer needed.
52984         Don't include unlocked-io.h; only the "#if TEST" code uses
52985         stdio, and performance isn't crucial there.
52986         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52987         Bison 1.875 features as described below.
52988         All uses of "PC." replaced by "pc->".
52989         (YYSTYPE): Add a forward declaration.
52990         (yylex, yyerror): Use full prototypes in forward decls.
52991         Use "%pure-parser" rather than obsolescent "%pure_parser".
52992         Use %parse-param and %lex-param instead of obsolescent
52993         YYPARSE_PARAM and YYLEX_PARAM.
52994         (meridian_table, month_and_day_table, time_units_table,
52995         relative_time_table, time_zone_table, military_table,
52996         lookup_zone, lookup_word, get_date):
52997         Use NULL instead of 0 where appropriate.
52998         (to_hour): Avoid abort (), to avoid a dependency on
52999         stdlib.h.
53000         (yyerror, yylex): Now accepts parser_control * arg.
53001         (main) [TEST]: Use '\0' rather than 0 for char.
53002
53003 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53004
53005         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
53006
53007 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
53008
53009         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
53010         It's now the caller's responsibility to handle the case where
53011         !HAVE_GETPAGESIZE && !defined getpagesize.
53012
53013         * lib/mktime.c (leapyear): Arg is long int, not int.
53014
53015 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
53016
53017         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
53018
53019 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
53020
53021         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
53022         missing.  Problem reported by James Youngman.
53023
53024 2004-10-16  Simon Josefsson  <jas@extundo.com>
53025
53026         * gnulib-tool: Fix comments.  Fix parse problem.
53027         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
53028
53029 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
53030
53031         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
53032         implementation of getopt_long.  Problem reported by Alexander Taler in:
53033         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
53034
53035 2004-10-15  Bruno Haible  <bruno@clisp.org>
53036
53037         * gnulib-tool: Untabify. Initialize supplied_libname.
53038         (func_usage): More homogenous output.
53039         (func_modules_transitive_closure, func_modules_to_filelist,
53040         func_emit_lib_Makefile_am): New functions.
53041         (func_import): New function, extracted from big case statement. Use
53042         func_get_license, func_modules_transitive_closure,
53043         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
53044         opt_lgpl. Don't use test -a, as it's not portable.
53045         (func_create_testdir): Use func_modules_transitive_closure,
53046         func_modules_to_filelist, func_emit_lib_Makefile_am.
53047
53048 2004-10-15  Bruno Haible  <bruno@clisp.org>
53049
53050         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
53051
53052 2004-10-15  Bruno Haible  <bruno@clisp.org>
53053
53054         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
53055         the portions belonging to each module.
53056         Suggested by Derek Robert Price <derek@ximbiot.com>.
53057
53058 2004-10-12  Simon Josefsson  <jas@extundo.com>
53059
53060         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
53061         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
53062         to real functions.
53063
53064 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53065
53066         * modules/vsnprintf: New file.
53067
53068 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53069
53070         * m4/vsnprintf.m4: New file.
53071
53072 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53073
53074         * lib/vsnprintf.h: New file.
53075         * lib/vsnprintf.c: New file.
53076
53077 2004-10-11  Bruno Haible  <bruno@clisp.org>
53078
53079         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
53080         vsnprintf.
53081
53082 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
53083
53084         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
53085
53086 2004-10-07  Bruno Haible  <bruno@clisp.org>
53087
53088         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
53089         fits into the provided buffer.
53090
53091 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
53092
53093         * lib/diacrit.c, diacrit.h: Add GPL notice.
53094
53095         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
53096         notice.
53097         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
53098         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
53099         This avoids a potential constant-folding bug.
53100
53101 2004-10-05  Bruno Haible  <bruno@clisp.org>
53102
53103         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
53104         for the declaration of strsep.
53105
53106 2004-10-05  Bruno Haible  <bruno@clisp.org>
53107
53108         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
53109
53110 2004-10-04  Simon Josefsson  <jas@extundo.com>
53111
53112         * modules/memmem: New file.
53113         * tests/test-memmem.c: New file.
53114         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
53115
53116 2004-10-04  Simon Josefsson  <jas@extundo.com>
53117
53118         * m4/memmem.m4: New file.
53119
53120 2004-10-04  Simon Josefsson  <jas@extundo.com>
53121
53122         * lib/memmem.h: New file.
53123         * lib/memmem.c: New file, taken from glibc.
53124
53125 2004-10-04  Simon Josefsson  <jas@extundo.com>
53126
53127         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
53128         '#ifdef USE_UNLOCKED_IO'.
53129
53130 2004-10-04  Simon Josefsson  <jas@extundo.com>
53131
53132         * config/srclist.txt: Add memmem from glibc.
53133
53134 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53135
53136         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
53137
53138         * modules/argmatch, modules/argp, modules/closeout, modules/error,
53139         modules/exclude, modules/getdate, modules/getline,
53140         modules/getndelim2, modules/getpass, modules/getpass-gnu,
53141         modules/getusershell, modules/linebuffer, modules/md5,
53142         modules/mountlist, modules/posixtm, modules/readtokens,
53143         modules/readutmp, modules/regex, modules/sha1,
53144         modules/version-etc, modules/yesno:
53145         Remove dependency on unlocked-io.
53146
53147 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53148
53149         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
53150
53151         * m4/unlocked-io.m4: Add copyright notice.
53152         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
53153
53154 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53155
53156         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
53157         * lib/xmalloc.c (xmemdup): Likewise.
53158         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
53159         XFREE): Remove these long-obsolescent macros.
53160         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
53161         * lib/xstrdup.c: Remove.
53162
53163         * lib/regex.c (re_comp): Cast gettext return value to char *,
53164         Problem reported by Martin Neitzel via Mark D. Baushke.
53165
53166 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
53167
53168         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
53169         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
53170         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
53171         regex.c, sha1.c, version-etc.c, yesno.c:
53172         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
53173         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
53174         the includer's responsibility.
53175
53176         Sync from coreutils.
53177
53178         * lib/modechange.c (mode_compile): Don't decrement a pointer that
53179         points to the start of a string, as the C Standard says the
53180         resulting behavior is undefined.
53181
53182         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
53183         simple -> simple_backups, numbered_existing ->
53184         numbered_existing_backups, numbered -> numbered_backups
53185         to avoid shadowing problems.  All uses changed.
53186         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
53187         * lib/backupfile.c (check_extension, numbered_backup):
53188         Rename locals to avoid shadowing 'basename'.
53189         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
53190         once.
53191
53192         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
53193         * lib/.cvsignore: Add getopt.h.
53194
53195 2004-10-04  Bruno Haible  <bruno@clisp.org>
53196
53197         * modules/README: New file.
53198         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
53199         not a module.
53200
53201 2004-10-02  Jim Meyering  <jim@meyering.net>
53202
53203         * lib/dirfd.h, getpagesize.h: Add copyright notice.
53204
53205 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53206
53207         * modules/strsep: New file.
53208
53209 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53210
53211         * m4/strsep.m4: New file.
53212
53213 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53214
53215         * lib/strsep.h: New file.
53216         * lib/strsep.c: New file.
53217
53218 2004-10-01  Simon Josefsson  <jas@extundo.com>
53219
53220         * lib/snprintf.c (snprintf): Handle size==0.
53221
53222 2004-10-01  Simon Josefsson  <jas@extundo.com>
53223             Bruno Haible  <bruno@clisp.org>
53224
53225         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
53226         (snprintf): Declare 'args'.
53227
53228 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
53229
53230         * lib/snprintf.c: Remove comments as to why each header is needed.
53231
53232 2004-10-01  Bruno Haible  <bruno@clisp.org>
53233
53234         * MODULES.html.sh: Add strsep.
53235
53236 2004-09-30  Simon Josefsson  <jas@extundo.com>
53237
53238         * modules/snprintf: New file.
53239
53240 2004-09-30  Simon Josefsson  <jas@extundo.com>
53241
53242         * m4/snprintf.m4: New file.
53243
53244 2004-09-30  Simon Josefsson  <jas@extundo.com>
53245
53246         * lib/snprintf.h, lib/snprintf.c: New files.
53247
53248 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
53249
53250         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
53251         (hol_entry_help): Never translate an empty string.
53252         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
53253         * lib/argp.h (OPTION_NO_TRANS): New option.
53254
53255 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53256
53257         * modules/argp (Maintainer): Replace Simon Josefsson
53258         by Sergey Poznyakoff.
53259
53260 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53261
53262         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
53263         changes merged back into glibc.
53264
53265 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
53266
53267         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
53268
53269 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
53270
53271         * lib/xvasprintf.c: Include xalloc.h.
53272         (xvasprintf): Use xalloc_die, not xmalloc_die.
53273
53274 2004-09-29  Bruno Haible  <bruno@clisp.org>
53275
53276         * modules/alloca-opt: New file, derived from modules/alloca.
53277         * modules/allocsa: Depend on alloca-opt instead of alloca.
53278         * modules/setenv: Likewise.
53279         * modules/vasnprintf: Likewise.
53280         * MODULES.html.sh: Add alloca-opt.
53281
53282 2004-09-28  Simon Josefsson  <jas@extundo.com>
53283
53284         * gnulib-tool: New parameter --lgpl, to asseert that modules are
53285         LGPL, and to replace license template from GPL to LGPL.
53286
53287 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53288
53289         * modules/dummy: Change license to LGPL.
53290
53291 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
53292
53293         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
53294
53295 2004-09-24  Simon Josefsson  <jas@extundo.com>
53296
53297         * modules/minmax (License): Change from GPL to LGPL.
53298
53299 2004-09-23  Simon Josefsson  <jas@extundo.com>
53300
53301         * gnulib-tool (--import): Typo.
53302
53303 2004-09-23  Simon Josefsson  <jas@extundo.com>
53304
53305         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
53306
53307 2004-09-22  Bruno Haible  <bruno@clisp.org>
53308
53309         * modules/*: Add 'License' field.
53310         * gnulib-tool: Accept --extract-license option.
53311         (func_get_license): New function.
53312
53313 2004-09-21  Bruno Haible  <bruno@clisp.org>
53314
53315         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
53316         Reported by Simon Josefsson.
53317
53318 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53319
53320         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
53321         gl_AC_TYPE_LONG_LONG.
53322
53323 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
53324
53325         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
53326
53327 2004-09-18  Simon Josefsson  <jas@extundo.com>
53328         and  Paul Eggert  <eggert@cs.ucla.edu>
53329
53330         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
53331         calls with autoreconf.  Define GL_LIB.
53332
53333 2004-09-14  Karl Berry  <karl@gnu.org>
53334
53335         * config/srclist.txt: unsync setenv.c, sigh.
53336
53337 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53338
53339         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
53340         Problem reported by Bruno Haible in:
53341         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
53342
53343 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
53344
53345         * config/srclist.txt: Comment out argp-pvh.c.
53346
53347 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
53348
53349         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
53350         in case some system header has #define'd it.  Problem reported by
53351         Soeren D. Schulze in
53352         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
53353
53354 2004-09-09  Karl Berry  <karl@gnu.org>
53355
53356         * regex.[ch]: delete from the root.  These were supposed to be
53357                 synced with emacs cvs, but this has not happened for about
53358                 a year, and anyway nothing else uses emacs regex.[ch].
53359                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
53360                 lib/regex[.ch] is untouched.
53361
53362 2004-09-09  Bruno Haible  <bruno@clisp.org>
53363
53364         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
53365
53366 2004-09-09  Bruno Haible  <bruno@clisp.org>
53367
53368         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
53369         modifications.
53370         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
53371
53372 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53373
53374         * modules/xvasprintf: New file.
53375         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
53376
53377 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
53378
53379         * lib/xvasprintf.h: New file.
53380         * lib/xvasprintf.c: New file.
53381         * lib/xasprintf.c: New file.
53382
53383 2004-09-08  Bruno Haible  <bruno@clisp.org>
53384
53385         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
53386
53387 2004-09-08  Bruno Haible  <bruno@clisp.org>
53388
53389         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
53390         length is > INT_MAX.
53391         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
53392         more.
53393
53394 2004-09-08  Bruno Haible  <bruno@clisp.org>
53395
53396         * lib/stdint_.h: New file, taken from GNU clisp.
53397
53398 2004-09-08  Bruno Haible  <bruno@clisp.org>
53399             Oskar Liljeblad  <oskar@osk.mine.nu>
53400
53401         * modules/stdint: New file.
53402         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
53403
53404 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53405
53406         Import from coreutils.
53407         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
53408         strings on unbounded length.  alloca's performance benefits aren't
53409         that important here.
53410         (V_STRDUP): Remove.
53411         (parse_with_separator): New function, with most of the internals
53412         of the old parse_user_spec.  Allow user to omit both user and group,
53413         for compatibility with FreeBSD.
53414         Clone only the user name, not the entire spec.
53415         Do not set *uid, *gid unless entirely successful.
53416         Avoid memory leak in some failing cases.
53417         Fix regression for USER.GROUP reported by Dmitry V. Levin in
53418         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
53419         (parse_user_spec): Rewrite to use parse_with_separator.
53420
53421 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53422
53423         * modules/userspec: Don't depend on alloca.
53424
53425 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
53426
53427         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
53428
53429 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
53430
53431         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
53432         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
53433         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
53434
53435 2004-08-16  Simon Josefsson  <jas@extundo.com>
53436
53437         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
53438         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
53439         Add --dry-run for --import.
53440         Let user provided command line parameters override configure.ac
53441         settings.
53442
53443 2004-08-12  Simon Josefsson  <jas@extundo.com>
53444
53445         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
53446         as discussed with Paul Eggert in threads rooted at
53447         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53448         and
53449         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53450         Before, the test was empty, and relied on ELIDE_CODE in source
53451         code.)
53452         (gl_PREREQ_GETOPT): New macro.
53453         (gl_GETOPT): Use them.
53454
53455 2004-08-12  Simon Josefsson  <jas@extundo.com>
53456
53457         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53458         * lib/getopt_.h: Renamed from getopt.h.
53459
53460 2004-08-12  Simon Josefsson  <jas@extundo.com>
53461
53462         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53463         Change default library name from libfoo to libgnu.
53464         Now, if you have a configure.ac that says:
53465                 gl_SOURCE_BASE(gl)
53466                 gl_M4_BASE(gl/m4)
53467                 gl_MODULES(error getopt etcetera)
53468                 gl_INIT
53469         you can import all you need by running:
53470                 ../gnulib/gnulib-tool --import
53471
53472         * modules/getopt (Files): Rename getopt.h to getopt_.h.
53473         (Makefile.am): Rewrite, use logic from argz.
53474         (Include): Use <getopt.h> instead of "getopt.h".
53475
53476 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53477
53478         * modules/argp (Files): Add m4/unlocked-io.m4.
53479         (Depends-on): Add extensions.
53480
53481 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53482
53483         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53484         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53485         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53486         Check for program_invocation_name, program_invocation_short_name,
53487         flockfile, funlockfile, features.h, _getopt_long_only_r.
53488
53489 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53490
53491         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53492         its complicated substitute.
53493         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53494         and program_invocation_name.
53495         (__argp_basename) [!_LIBC]: Remove; the only use was
53496         replaced by its body.
53497         (__argp_short_program_name): Change condition from
53498         !defined __argp_short_program_name to
53499         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53500         to match argp-namefrob.h.
53501         (__argp_failure): Don't assume strerror_r returns char *.
53502         * lib/argp-parse.c (N_): Define unconditionally.
53503         (argp_default_options): Fill out initializers with 0 to avoid
53504         gcc warnings.
53505
53506 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
53507
53508         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53509         getopt1.c.
53510
53511 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53512
53513         Merge from coreutils.
53514
53515         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53516
53517         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53518         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53519
53520 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53521
53522         Merge from coreutils.
53523
53524         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53525         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
53526         for Reliant Unix 5.43.
53527
53528         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53529         (union fooround): Use uintmax_t, not long int.
53530         The rest is a merge from libc:
53531         [defined _LIBC]: Include <shlib-compat.h>.
53532         (_obstack) [defined _LIBC]: Remove after 2.3.4.
53533
53534         * lib/settime.c (settime): Recode to avoid warning with
53535         Sun Forte C 6U2.
53536
53537         * lib/strverscmp.c: Convert to UTF-8.
53538
53539 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
53540
53541         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53542         m4/uintmax_t.m4.
53543
53544 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53545
53546         * modules/xalloc-die: New file.
53547         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53548
53549         * modules/md5 (Files): Add m4/uint32_t.m4.
53550         * modules/sha1: Renamed from modules/sha.
53551         (Files):
53552         Rename lib/sha.h to lib/sha1.h.
53553         Rename lib/sha.c to lib/sha1.c.
53554         Rename m4/sha.m4 to m4/sha1.m4.
53555         (lib_SOURCES): Likewise.
53556         (configure.ac): Rename gl_SHA to gl_SHA1.
53557         (Include): sha.h -> sha1.h.
53558
53559 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53560
53561         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53562         * m4/sha1.m4: Renamed from sha.m4.
53563         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
53564
53565 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
53566
53567         * lib/obstack.h (obstack_empty_p):
53568         Don't assume that chunk->contents is suitably aligned.
53569         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53570         Likewise. Problem reported by Benno in
53571         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53572
53573         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53574         readable.  This could be improved further but it'd take some work.
53575
53576 2004-08-08  Simon Josefsson  <jas@extundo.com>
53577
53578         * modules/xgethostname (Depends-on): Remove exit and error (not
53579         used).
53580
53581         * modules/getpass-gnu: Add getpass.h.
53582         (Depends-on): Add stdbool.
53583         * modules/getpass: Add getpass.h.
53584
53585 2004-08-08  Simon Josefsson  <jas@extundo.com>
53586
53587         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53588         Check getpass declaration.
53589
53590 2004-08-08  Simon Josefsson  <jas@extundo.com>
53591
53592         * lib/xgethostname.c: Don't include error.h (not used).
53593
53594         * lib/getpass.h: Add.
53595         * lib/getpass.c: Include getpass.h first.
53596
53597 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
53598
53599         * lib/xalloc-die.c: New file.
53600         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53601         All uses removed.
53602         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53603         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53604         xalloc-die.c.
53605         (_, N_, xalloc_die): Move to xalloc-die.c.
53606         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53607         so that we needn't mess with xalloc_msg_memory_exhausted.
53608
53609         * lib/sha1.h: Renamed from sha.h.
53610         (SHA1_H): Renamed from _SHA_H.
53611         (sha1_ctx): Renamed from sha_ctx.
53612         (sha1_init_ctx): Renamed from sha_init_ctx.
53613         (sha1_process_block): Renamed from sha_process_block.
53614         (sha1_process_bytes): Renamed from sha_process_bytes.
53615         (sha1_finish_ctx): Renamed from sha_finish_ctx.
53616         (sha1_read_ctx): Renamed from sha_read_ctx.
53617         (sha1_stream): Renamed from sha_stream.
53618         (sha1_buffer): Renamed from sha_buffer.
53619         * lib/sha1.c: Likewise; renamed from sha.c.
53620         Do not include <sys/types.h>.
53621         Include <stddef.h> rather than <stdlib.h>.
53622
53623 2004-08-08  Bruno Haible  <bruno@clisp.org>
53624
53625         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53626         FILESYSTEM_PREFIX_LEN.
53627         * lib/progreloc.c: Likewise.
53628         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53629
53630 2004-08-06  Simon Josefsson  <jas@extundo.com>
53631
53632         * modules/progname (Depends-on): Don't depend on stdbool.
53633
53634 2004-08-06  Simon Josefsson  <jas@extundo.com>
53635
53636         * modules/getsubopt: New file.
53637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53638         getsubopt.
53639
53640 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53641
53642         More merge from coreutils.
53643
53644         * m4/utimens.m4, m4/utimecmp.m4: New files.
53645         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53646         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53647         prereq.m4, sha.m4: Import changes from coreutils.
53648
53649 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53650
53651         More merge from coreutils.
53652         * modules/raise, modules/readtokens0, modules/utimens:
53653         * modules/utimecmp, module/xnanosleep: New files.
53654         * modules/strftime: Add lib/strftime.h.
53655         Change include from <time.h> to "strftime.h".
53656         * modules/yesno: Add lib/yesno.h.
53657         * modules/backupfile: Remove lib/addext.c.
53658         * modules/euidaccess: Add stat-macros.h.
53659         * modules/canonicalize, modules/euidaccess,
53660         modules/filemode, modules/lchown, modules/makepath,
53661         modules/rmdir, modules/stat: Likewise.
53662
53663 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53664
53665         Merge from tar.
53666         * lib/argp-help.c (make_hol, hol_append): Don't assume that
53667         SIZE_MAX is a valid preprocessor constant.
53668         (__argp_basename): Change from "#ifndef _LIBC"
53669         to "#ifndef __argp_short_program_name", so that
53670         we don't compile these functions for tar.
53671
53672         More merges from coreutils.
53673         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53674         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53675         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53676         * lib/addext.c: Remove; no longer needed.
53677         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53678         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53679         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53680         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53681         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53682         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53683         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53684         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53685         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53686         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53687         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53688         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53689         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53690         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53691         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53692         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53693         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53694         Import changes from coreutils.
53695
53696 2004-08-05  Simon Josefsson  <jas@extundo.com>
53697
53698         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53699
53700 2004-08-05  Simon Josefsson  <jas@extundo.com>
53701
53702         * m4/getsubopt.m4: New file.
53703
53704 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53705
53706         Merge from coreutils.
53707
53708         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53709         * m4/getcwd-path-max.m4: New files.
53710
53711         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53712         FILESYSTEM_PREFIX_LEN ->
53713         FILE_SYSTEM_PREFIX_LEN.
53714         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53715         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53716         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53717         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53718
53719         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53720         prerequisite modules now handle the DOS stuff.
53721         Don't check for unistd.h.
53722
53723 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53724
53725         Merge from coreutils.
53726
53727         * lib/.gdb-history: Remove; this doesn't belong here.
53728
53729         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53730         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53731         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53732         * lib/getcwd.c: New files.
53733
53734         * lib/dirname.h: Include <stdbool.h>.
53735         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53736         for consistency with POSIX terminology.  All uses changed.
53737         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53738         (strip_trailing_slashes): Use bool for booleans.
53739         * lib/stripslash.c (strip_trailing_slashes): Likewise.
53740
53741         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53742         sometimes returns a positive errno value even when it succeeds.
53743         (print_errno_message) [!LIBC]: Fall back on strerror if
53744         __strerror_r fails.
53745
53746         * lib/path-concat.c (mempcpy): Don't define if a system header defines
53747         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53748         (longest_relative_suffix): New function.
53749         (path_concat): Use it.  Assume first argument is not NULL.
53750         Port to DOS.  Omit redundant separators.
53751         Report an error instead of returning NULL.
53752         Use mempcpy instead of memcpy.
53753         (xpath_concat): Remove: not declared or used.
53754
53755         * lib/same.h: Include <stdbool.h>
53756         (same_name): Return bool, not int.
53757         * lib/same.c (same_name): Likewise.
53758         (errno): Don't declare; we assume C89 or better now.
53759
53760         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53761         if not already defined.
53762
53763         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53764         * lib/dup-safer.c (errno): Likewise.
53765
53766 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
53767
53768         Merge from coreutils.
53769         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53770         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53771         * modules/path-concat: Don't depend on strdup.
53772
53773 2004-08-03  Simon Josefsson  <jas@extundo.com>
53774
53775         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53776         * lib/progname.h: Don't include stdbool.h.
53777
53778 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53781         * MODULES.html.sh (func_all_modules): Remove fatal.
53782
53783 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53784
53785         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53786
53787 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
53788
53789         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53790         working.
53791
53792 2004-08-02  Simon Josefsson  <jas@extundo.com>
53793
53794         * lib/getsubopt.h: New file, with comments from Bruno Haible.
53795         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53796         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53797
53798 2004-08-01  Simon Josefsson  <jas@extundo.com>
53799
53800         * lib/xgetdomainname.c: Include stdlib.h, for free().
53801
53802 2004-07-19  Bruno Haible  <bruno@clisp.org>
53803
53804         * MODULES.html.sh (func_all_modules): Add dummy.
53805
53806 2004-07-16  Simon Josefsson  <jas@extundo.com>
53807
53808         * modules/dummy: New file.
53809
53810 2004-07-16  Simon Josefsson  <jas@extundo.com>
53811
53812         * lib/dummy.c: New file.
53813
53814 2004-07-16  Bruno Haible  <bruno@clisp.org>
53815
53816         * lib/backupfile.h: Add extern "C" for C++.
53817         * lib/closeout.h: Likewise.
53818         * lib/copy-file.h: Likewise.
53819         * lib/findprog.h: Likewise.
53820         * lib/full-write.h: Likewise.
53821         * lib/pathname.h: Likewise.
53822         * lib/progname.h: Likewise.
53823         * lib/stpcpy.h: Likewise.
53824         * lib/stpncpy.h: Likewise.
53825         * lib/strcase.h: Likewise.
53826         * lib/strstr.h: Likewise.
53827         * lib/xalloc.h: Likewise.
53828
53829         * lib/mbswidth.h: Add extern "C" for C++.
53830         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53831
53832 2004-07-13  Robert Millan  <robertmh@gnu.org>
53833
53834         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53835
53836 2004-07-09  Simon Josefsson  <jas@extundo.com>
53837
53838         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
53839         failed without this.)
53840
53841 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53842
53843         * modules/chown (Files): Add lib/fchown-stub.c, since
53844         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53845
53846 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         * lib/fchown-stub.c: New file.
53849
53850 2004-06-24  Jim Meyering  <jim@meyering.net>
53851
53852         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53853
53854 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * modules/argz: Omit "#include".
53857
53858         * MODULES.html.sh (func_all_modules): Add calloc, to match
53859         2004-06-01 addition of calloc module.
53860
53861 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53862
53863         * m4/argz.m4: New file, which is autoupdated from libtool.
53864
53865 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53866
53867         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53868         libtool.
53869
53870 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53871
53872         * config/srclist-update: Don't insist on "USA." before the
53873         close-comment, as libtool omits the period and puts the */ on a
53874         separate line.
53875         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53876         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53877
53878 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
53879
53880         * modules/argz: New file.
53881         * MODULES.html.sh (func_all_modules): Add argz.
53882
53883 2004-06-12  Jim Meyering  <jim@meyering.net>
53884         and  Paul Eggert  <eggert@cs.ucla.edu>
53885
53886         * modules/hash (Files): Add lib/xalloc.h.
53887         * modules/pipe (Depends-on): Add wait-process.
53888         * modules/stat (Depends-on): Add xalloc.
53889         * modules/userspec (Files): Add lib/userspec.h.
53890         * modules/xstrto
53891
53892         Upgrade from gettext-0.13.
53893         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53894         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53895         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53896
53897 2004-06-10  Jim Meyering  <jim@meyering.net>
53898
53899         * lib/calloc.c: New file.
53900
53901 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
53902
53903         * lib/getdate.y (yylex): Allow space between sign and number.
53904         Problem reported by Dan Jacobson.
53905
53906 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         Merge from coreutils CVS.
53909
53910         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53911         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53912         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53913         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53914         xstrtol.m4: Fix copyright date and/or serial number.
53915
53916         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53917         See if we need an fchown replacement.
53918         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53919         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53920         and use the replacement function if we detect either defect.
53921
53922         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53923         gl_UTIMECMP.
53924
53925 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
53926         and  Jim Meyering  <jim@meyering.net>
53927
53928         Merge from coreutils CVS.
53929
53930         * lib/stat-macros.h: New file, with contents from file-type.h
53931         and coreutils' system.h.
53932         * lib/file-type.c: Include "stat-macros.h".
53933         * lib/file-type.h (file_type): Move all macro definitions to new file,
53934         stat-macros.h.
53935
53936         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53937         Wrap old code with this conditional.
53938         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53939         function that does not dereference symlinks.
53940         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53941
53942         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53943         dependency problems.
53944         (xreadlink): Accept new arg SIZE, for efficiency.
53945         All decls and uses changed.
53946         * lib/xreadlink.h: Include <stddef.h>, for size_t.
53947
53948         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53949         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53950
53951         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53952         sysexits.h.
53953
53954 2004-06-01  Jim Meyering  <jim@meyering.net>
53955
53956         * m4/calloc.m4: New file.
53957
53958 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53961         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
53962         Also, fix a typo in a diagnostic.
53963
53964 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53965
53966         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53967         or AC_FUNC_REALLOC.
53968
53969 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
53970
53971         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53972         macros to be defined.
53973         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53974         the allocator returns NULL because the requested size is zero.
53975
53976 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
53977
53978         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53979         var.  Add comment explaining why libc still defines it.  This
53980         merges the following patch from glibc:
53981         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53982
53983 2004-05-20  Andreas Schwab  <schwab@suse.de>
53984
53985         * m4/free.m4: Replace free if it not known to work, not the other
53986         way round.
53987
53988 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
53991         present in glibc since revision 1.1 of this file.
53992         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53993         obstack_alignment_mask, obstack_alloc, obstack_base,
53994         obstack_blank, obstack_blank_fast, obstack_chunk_size,
53995         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53996         obstack_grow0, obstack_init, obstack_int_grow,
53997         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53998         obstack_next_free, obstack_object_size, obstack_ptr_grow,
53999         obstack_ptr_grow_fast, obstack_room): Remove declarations of
54000         nonexistent functions.
54001
54002 2004-05-18  Karl Berry  <karl@gnu.org>
54003
54004         * config/srclist.txt: break link for vasnprintf.c.
54005
54006 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54007
54008         Port obstack to the AS/400, where pointers are 16 bytes wide and
54009         you cannot cast an integer to a valid pointer.  This patch is
54010         currently waiting to be integrated into glibc; see
54011         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
54012
54013         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
54014         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
54015         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
54016         (struct obstack): temp member is now a union of a pointer and
54017         an integer, instead of an integer.  All integer uses changed.
54018         This does not affect the physical layout of struct obstack,
54019         except on hosts (like the AS/400) where the size or alignment of
54020         void * is greater than that of ptrdiff_t.
54021         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
54022         __STDC__)]: Store temporary in pointer member of union, not
54023         integer member.
54024         * lib/obstack.c: Include <stddef.h>, for offsetof.
54025         (struct fooalign): Remove; it doesn't need a name.
54026         (union fooround): Change double to long double, and add void *.
54027         (DEFAULT_ALIGNMENT): Use offsetof to compute.
54028         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
54029         not a macro.  Hence the values are always int; so remove all
54030         casts-to-int in uses.
54031
54032 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54033
54034         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
54035         we can get this patch merged into glibc.
54036
54037 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54038             Paul Eggert  <eggert@cs.ucla.edu>
54039
54040         * m4/argp: Depend on alloca.
54041
54042 2004-05-17  Derek R. Price  <derek@ximbiot.com>
54043             Paul Eggert  <eggert@cs.ucla.edu>
54044
54045         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
54046         freecoding.
54047
54048 2004-05-17  Bruno Haible  <bruno@clisp.org>
54049
54050         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
54051         precision that consists of a '.' followed by an empty digit string.
54052         Patch by Tor Lillqvist <tml@iki.fi>.
54053
54054 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54055
54056         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
54057         for backward compatibility with older code.  We need our own
54058         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
54059         it under some other name, and our alloca.h will define it.
54060
54061 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54062             Derek Price  <derek@ximbiot.com>
54063
54064         * lib/alloca.c: Include <alloca.h>, to get our interface.
54065         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
54066         include <alloca.h> first.  Use C89 prototype for alloca; this
54067         requires including <stddef.h> for size_t.  Use extern "C" if C++.
54068         Use #elif for simplicity, since we can assume C89 now.
54069         Don't try to source the system alloca.h since it will not be found
54070         and to prevent recursively including its replacement.
54071         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
54072         * lib/regex.c: Likewise.
54073
54074 2004-05-16  Derek Price  <derek@ximbiot.com>
54075             Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         getline cleanup.  This changes the getndelim2 API: both order of
54078         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
54079         no delimiter).
54080
54081         * lib/getline.c: Don't include stddef.h or stdio.h, since our
54082         interface does that.
54083         (getline): Always use getdelim, so that we don't have two
54084         copies of this code.
54085         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
54086         if available.
54087         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
54088         (GETNDELIM2_MAXIMUM): New macro.
54089         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
54090         instead of the old practice of delim2==0.  All callers changed.
54091         Return -1 on overflow, instead of returning junk.
54092         Do not set *linesize unless allocation succeeds.
54093         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
54094         that we include sys/types.h.
54095         * lib/getnline.h: Likewise.
54096         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
54097         (getndelim2): Reorder arguments.
54098         * lib/getnline.c (getnline, getndelim):
54099         Don't discard the NMAX argument.
54100         (getnline): Invoke getndelim, to avoid code duplication.
54101         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
54102         of (size_t) -1 by callers of the getnline family.
54103
54104 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54105
54106         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
54107         Check for gettimeofday.
54108         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
54109         Check for settimeofday, stime.
54110
54111 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54112
54113         * lib/nanosleep.c (suspended): Change its type from int to
54114         sig_atomic_t volatile.
54115         (first_call): Make it private to rpl_nanosleep, and have it
54116         be zero initially as that's a bit faster.
54117         (my_usleep): Round up fractional times instead of truncating them,
54118         as this is the usual meaning for 'sleep'.
54119
54120         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
54121         doesn't work.
54122         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
54123         (ENOSYS): Define if not defined.
54124         (settime): Fall back on stime if it exists and settimeofday fails.
54125         But don't bother with fallbacks if a method fails with errno == EPERM.
54126
54127 2004-05-11  Jim Meyering  <jim@meyering.net>
54128
54129         Prior to this change, the save_cwd caller required read access to the
54130         current directory on most systems (ones with the fchdir function).
54131
54132         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
54133         fails, try write-only, and finally, resort to using xgetcwd.
54134
54135 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
54136
54137         * lib/obstack.c, obstack.h: Import changes from libc.
54138
54139 2004-04-28  Bruno Haible  <bruno@clisp.org>
54140
54141         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
54142         also implicitly appends .exe to executables.
54143         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
54144         accepts Windows pathnames.
54145         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54146         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54147         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
54148         Treat Cygwin like Windows, since it now accepts Windows pathnames.
54149         Reported by Derek Robert Price <derek@ximbiot.com>.
54150
54151 2004-04-21  Karl Berry  <karl@gnu.org>
54152
54153         * config/srclist.txt (localcharset.c): break sync.
54154
54155 2004-04-20  Paul Eggert  <eggert@twinsun.com>
54156
54157         * m4/host-os.m4: Add a copyright notice.
54158
54159 2004-04-20  Jim Meyering  <jim@meyering.net>
54160
54161         Change UTILS_ to gl_ in AC_DEFINE'd names.
54162         Change utils_- and jm_-prefixed variables, too.
54163         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
54164         UTILS_FUNC_MKDIR_TRAILING_SLASH.
54165         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
54166
54167         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
54168         Don't emit trailing blanks.
54169         Also rename jm_-prefixed variables to have gl_ prefix.
54170
54171         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
54172         Also rename jm_-prefixed variables to have gl_ prefix.
54173
54174         * m4/jm-macros.m4: Reflect the renamings.
54175         * m4/prereq.m4: Likewise.
54176
54177 2004-04-20  Jim Meyering  <jim@meyering.net>
54178
54179         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
54180         memory.
54181
54182 2004-04-20  Jim Meyering  <jim@meyering.net>
54183             Bruno Haible  <bruno@clisp.org>
54184
54185         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
54186         memory when realloc fails.
54187
54188 2004-04-19  Jim Meyering  <jim@meyering.net>
54189
54190         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
54191         now that readutmp.c may call `free (0)'.
54192
54193 2004-04-19  Bruno Haible  <bruno@clisp.org>
54194
54195         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
54196         * m4/inttypes_h.m4: Likewise.
54197         * m4/stdint_h.m4: Likewise.
54198         * m4/intmax_t.m4: Likewise.
54199         * m4/uintmax_t.m4: Likewise.
54200
54201 2004-04-18  Jim Meyering  <jim@meyering.net>
54202
54203         * m4/prereq.m4: Don't forbid jm_ prefix.
54204
54205         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
54206         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
54207         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
54208         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
54209         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
54210         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
54211         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
54212         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
54213         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
54214         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
54215         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
54216         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
54217         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
54218         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
54219         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
54220         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
54221         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
54222         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
54223         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
54224
54225 2004-04-18  Jim Meyering  <jim@meyering.net>
54226
54227         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
54228         failure, don't leak memory and do call END_UTMP_ENT.
54229
54230 2004-04-16  Jim Meyering  <jim@meyering.net>
54231
54232         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
54233         coreutils' stat program.
54234         (gl_PREREQ): Don't require jm_PREREQ_STAT.
54235
54236 2004-04-11  Paul Eggert  <eggert@twinsun.com>
54237
54238         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
54239         C89.
54240         (CHAR_BIT): Remove, since we assume C89.
54241         Include <stdint.h> if available, as per current Autoconf CVS advice.
54242
54243 2004-03-31  Jim Meyering  <jim@meyering.net>
54244
54245         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
54246         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
54247         * m4/xalloc.m4: Likewise.
54248
54249 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54250
54251         Merge from coreutils.
54252
54253         * m4/inttostr.m4: New file.
54254         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
54255         Require AM_STDBOOL_H and gl_TIMESPEC instead.
54256         Require gl_CLOCK_TIME.
54257         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
54258
54259 2004-03-30  Paul Eggert  <eggert@twinsun.com>
54260
54261         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
54262         not bool, to be more consistent with Unix conventions.
54263         Suggested by Bruno Haible.
54264
54265         Merge from coreutils.
54266
54267         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
54268         * lib/umaxtostr.c: New files.
54269
54270         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
54271         the usual <time.h> dance.
54272         (get_date): Change signature to support fractional time stamps.
54273         All callers changed.
54274         * lib/getdate.y: Include "getdate.h" first, as we can now
54275         assume C89 and don't need to worry about 'const'.
54276         Similarly, include "unlocked-io.h" near start, not in middle.
54277         Include <limits.h>.
54278         (textint.value): Use long int rather than int.
54279         (textint.digits): Use size_t rather than int.
54280         (BILLION, LOG10_BILLION): New constants.
54281         (parser_control): New member rel_ns.  Members day_ordinal,
54282         time_zone, month, day, hour, minutes, rel_year, rel_month,
54283         rel_day, rel_hour, rel_minutes, rel_seconds
54284         are now long int, not int.  Member seconds is now struct timespec,
54285         not int.  New member timespec_seen.  Members dates_seen, days_seen,
54286         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
54287         not int.
54288         (%union.intval): Now long int, not int.
54289         New member timespec.
54290         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
54291         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
54292         (spec): Now is a timespec or an item list.
54293         (timespec, items): New nonterminals.
54294         (time, rel, relunit, number, get_date):
54295         Add support for fractional seconds.
54296         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
54297         (gmtime, localtime, mktime): Remove decls; not needed with C89.
54298         (to_hour): First arg is now long int, not int.
54299         (to_year): Returns long int, not int.
54300         Don't treat year -70 like 70.
54301         (tm_diff): Returns long int, not int.
54302         (lookup_word): Use bool instead of int when appropriate.
54303         (yylex): Use size_t for count, not int.
54304         Detect overflow when parsing large integer constants.
54305         Add support for fractions.
54306         (get_date): Make pointers 'const' if possible.
54307         Use more-portable code to detect integer overflow.
54308         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
54309         Don't use ctime; it's not reliable if the year has >4 digits.
54310
54311         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
54312         This is for compatibility with BSD.
54313
54314         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
54315         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
54316         From coreutils' system.h.
54317
54318         * lib/userspec.c: Don't include "posixver.h".
54319         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
54320         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
54321         compatible extension.  Simplify code by removing a boolean int
54322         that was always nonzero if a string was nonnull.
54323
54324 2004-03-30  Jim Meyering  <jim@meyering.net>
54325
54326         Merge from coreutils.
54327
54328         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
54329         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
54330         on some systems one must include <grp.h> before it.
54331         Reported by Christian Krackowizer.
54332
54333 2004-03-30  Jim Meyering  <jim@meyering.net>
54334
54335         Merge from coreutils.
54336
54337         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
54338
54339         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
54340         an empty input stream.
54341
54342         * lib/readtokens.c: Include <stdbool.h>.
54343         (readtoken): Use `size_t' rather than int/long.
54344         All callers adjusted.
54345         Use `bool' rather than `int' where appropriate.
54346         Use memset rather than an explicit loop.
54347         Use x2nrealloc rather than xrealloc.
54348         Allow the use of `\0' as a delimiter.
54349         (readtokens): Likewise.
54350         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
54351
54352 2004-03-30  Jim Meyering  <jim@meyering.net>
54353
54354         * m4/realloc.m4: Remove file, since now it does no more than
54355         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
54356         the `configure.ac' section of module/realloc.
54357         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
54358
54359 2004-03-30  Bruno Haible  <bruno@clisp.org>
54360
54361         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
54362         nonnull.
54363
54364 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54365
54366         Merge changes to getloadavg.c from coreutils and Emacs.
54367
54368         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
54369         Define to an expression, not to the empty string.
54370         Include cloexec.h and xalloc.h.
54371         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
54372         Use set_cloexec_flag rather than rolling our own.
54373         * lib/cloexec.c, lib/cloexec.h: New files.
54374
54375 2004-03-29  Paul Eggert  <eggert@twinsun.com>
54376
54377         * m4/cloexec.m4: New file.
54378
54379 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54380
54381         * lib/getopt.h: Sync with libc CVS.
54382
54383 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54384             Bruno Haible  <bruno@clisp.org>
54385
54386         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
54387         mbswidth.
54388
54389 2004-03-18  Paul Eggert  <eggert@twinsun.com>
54390             Bruno Haible  <bruno@clisp.org>
54391
54392         * lib/mbswidth.h: Include <wchar.h> only if
54393         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
54394         <wchar.h>.
54395         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
54396
54397 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54398
54399         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
54400         Sync with libc CVS.
54401         * lib/getopt_int.h: New file, also synced from libc.
54402
54403 2004-03-09  Paul Eggert  <eggert@twinsun.com>
54404
54405         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
54406         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
54407         Bring back getopt.c, getopt.h, getopt1.c.
54408
54409 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54410
54411         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
54412         All uses changed.  Check for sa_sigaction member; this fixes
54413         a bug first reported by Jason Andrade in
54414         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54415
54416 2004-03-07  Paul Eggert  <eggert@twinsun.com>
54417
54418         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
54419         '#if' expressions.  Unlike the code it replaces, it does not
54420         depend on (defined _SC_PAGESIZE).  However, it does depend on
54421         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
54422         first reported by Jason Andrade in
54423         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
54424
54425 2004-02-25  Simon Josefsson  <jas@extundo.com>
54426
54427         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
54428
54429 2004-02-25  Simon Josefsson  <jas@extundo.com>
54430
54431         * lib/strdup.h: New file.
54432         * lib/strdup.c: Include it.
54433         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
54434         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
54435
54436 2004-02-23  Karl Berry  <karl@gnu.org>
54437
54438         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
54439         (from fencepost.gnu.org:/gd/gnuorg).
54440
54441 2004-02-23  Karl Berry  <karl@gnu.org>
54442
54443         * config/srclistvars.sh (GNUORG) [karl]: redefine.
54444         * config/srclist.txt: add maintain/standards documents.
54445
54446 2004-02-18  Bruno Haible  <bruno@clisp.org>
54447
54448         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54449         Reported by Derek Robert Price <derek@ximbiot.com>.
54450
54451 2004-02-16  Karl Berry  <karl@gnu.org>
54452
54453         * config/mkinstalldirs, install-sh: update from automake.
54454
54455 2004-02-06  Karl Berry  <karl@gnu.org>
54456
54457         * m4/po.m4: update from gettext 0.14.1.
54458
54459 2004-02-06  Karl Berry  <karl@gnu.org>
54460
54461         * lib/config.charset: update from gettext 0.14.1.
54462
54463 2004-02-05  Paul Eggert  <eggert@twinsun.com>
54464
54465         Add comments and code, prompted by suggestions from Bruno Haible
54466         for sh-quote.
54467         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
54468         describing the enum quoting_style values.
54469         * lib/quotearg.c (quotearg_alloc): New function.
54470         (quotearg_buffer_restyled): Treat lone { and } as special.
54471         Treat = as special.  Work around bug with older shells
54472         that "see" a '\' that is really the 2nd byte of a multibyte char.
54473         Quote empty string with shell_quoting_style.
54474
54475 2004-02-03  Bruno Haible  <bruno@clisp.org>
54476
54477         * m4/pipe.m4: New file, from GNU gettext.
54478
54479 2004-02-03  Bruno Haible  <bruno@clisp.org>
54480
54481         * lib/pipe.h: New file, from GNU gettext.
54482         * lib/pipe.c: New file, from GNU gettext.
54483
54484 2004-01-27  Bruno Haible  <bruno@clisp.org>
54485
54486         * m4/execute.m4: New file, from GNU gettext.
54487
54488 2004-01-27  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/execute.h: New file, from GNU gettext.
54491         * lib/execute.c: New file, from GNU gettext.
54492         * lib/w32spawn.h: New file, from GNU gettext.
54493
54494 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54495
54496         Merge from diffutils.
54497
54498         * lib/file-type.c (file_type): Add typed memory objects.
54499         * lib/file-type.h (S_TYPEISTMO): New macro.
54500
54501         * lib/c-stack.h (c_stack_action): Remove argv argument.
54502         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
54503         (die): Don't calculate message unless segv_action returns.
54504         (get_stack_location, min_address_from_argv, max_address_from_argv,
54505         volatile stack_base, volatile_stack_size): Remove.
54506         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54507         that every segmentation violation is a stack overflow.  (Ouch!)
54508         See Debian bug 136249 (still outstanding) for more info about why
54509         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54510
54511 2004-01-24  Paul Eggert  <eggert@twinsun.com>
54512
54513         Exit-status fix from coreutils.
54514
54515         Use exit_failure consistently in place of EXIT_FAILURE,
54516         so that program exit statuses are consistent on failure.
54517
54518         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54519         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54520         * lib/argmatch.h: Comment fix to match the above.
54521         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54522         Now a macro referring to exit_failure, instead of a separate
54523         variable.  Include "exitfail.h" to get it.
54524         * lib/xstrtol.h: Include "exitfail.h".
54525         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54526
54527         * lib/long-options.c (parse_long_options): Use prototype
54528         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
54529         for clarity.
54530
54531 2004-01-21  Jim Meyering  <jim@meyering.net>
54532
54533         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54534         so as not to conflict with a different-sized __mktime_internal
54535         function in GNU libc.
54536         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54537         Problem building statically-linked `ls' reported by Michael Brunnbauer.
54538
54539 2004-01-20  Karl Berry  <karl@gnu.org>
54540
54541         * config/config.guess: update from config.
54542
54543         * config/srclistvars.sh: GNUWWWLICENSES for karl.
54544
54545 2004-01-20  Bruno Haible  <bruno@clisp.org>
54546
54547         Safer stack allocation.
54548         * lib/setenv.c: Include allocsa.h.
54549         (alloca): Remove fallback definition.
54550         (freea): Remove macro.
54551         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54552         instead of freea.
54553
54554 2004-01-20  Bruno Haible  <bruno@clisp.org>
54555
54556         * m4/eealloc.m4: New file, from GNU gettext.
54557
54558 2004-01-20  Bruno Haible  <bruno@clisp.org>
54559
54560         * m4/allocsa.m4: New file, from GNU gettext.
54561
54562 2004-01-20  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/xallocsa.h: New file, from GNU gettext.
54565         * lib/xallocsa.c: New file, from GNU gettext.
54566
54567 2004-01-20  Bruno Haible  <bruno@clisp.org>
54568
54569         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54570
54571 2004-01-20  Bruno Haible  <bruno@clisp.org>
54572
54573         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54574         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54575         specially.
54576
54577 2004-01-20  Bruno Haible  <bruno@clisp.org>
54578
54579         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54580         patch.
54581
54582 2004-01-20  Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54585
54586 2004-01-20  Bruno Haible  <bruno@clisp.org>
54587
54588         * lib/eealloc.h: New file.
54589
54590 2004-01-20  Bruno Haible  <bruno@clisp.org>
54591
54592         * lib/binary-io.h: Avoid warnings on Cygwin.
54593
54594 2004-01-20  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/allocsa.h: New file, from GNU gettext.
54597         * lib/allocsa.c: New file, from GNU gettext.
54598
54599 2004-01-18  Karl Berry  <karl@gnu.org>
54600
54601         * doc/gpl.texi, doc/lgpl.texi: new files.
54602
54603 2004-01-18  Karl Berry  <karl@gnu.org>
54604
54605         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54606         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54607
54608 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54609
54610         Merge from coreutils.
54611
54612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54613         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54614         (gl_DEFAULT_POSIX2_VERSION): Move
54615         the documentation from 'configure' into 'config.hin',
54616         so that 'configure --help' isn't burdened by it and
54617         we don't have to worry about its formatting there.
54618         Reword the documentation so that it's more succinct
54619         and can be run together into a single paragraph.
54620         * m4/same.m4 (gl_SAME): Check for pathconf.
54621
54622 2004-01-15  Paul Eggert  <eggert@twinsun.com>
54623
54624         Merge from coreutils.
54625
54626         * lib/posixver.c: Include posixver.h.
54627
54628         * lib/same.c: Include <stdbool.h>, <limits.h>.
54629         (_POSIX_NAME_MAX): Define if not defined.
54630         (MIN): New macro.
54631         (same_name): If file names are silently truncated, report
54632         that the file names are the same if they are the same after
54633         the silent truncation.
54634
54635         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54636         conversion function.
54637         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
54638         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
54639         longer needed.
54640
54641 2004-01-15  Jim Meyering  <jim@meyering.net>
54642
54643         Merge from coreutils.
54644
54645         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54646         if no library is required.
54647         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54648         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54649         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54650         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54651         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54652         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54653         value, $ac_cv_search_crypt, if it's "none required".
54654         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54655         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54656         not gl_FUNC_GETLOADAVG.
54657         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54658         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54659
54660 2004-01-15  Jim Meyering  <jim@meyering.net>
54661
54662         Merge from coreutils.
54663
54664         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
54665         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
54666         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54667
54668         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54669         optional configure-time default.
54670
54671         * lib/version-etc.c (version_etc_copyright): Update copyright date.
54672
54673         * lib/xreadlink.c (xreadlink): Correct outdated comment.
54674
54675 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
54676
54677         Merge from coreutils.
54678
54679         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54680         value, $ac_cv_search_nanosleep, if it's "none required".
54681
54682 2004-01-14  Paul Eggert  <eggert@twinsun.com>
54683
54684         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54685         with like-named macro in fnmatch.c.
54686         (EXT): Use an internal constant instead.
54687
54688         Merge fnmatch patches from glibc.
54689         * lib/fnmatch.c (mbsinit): Remove define.
54690         Add libc_hidden_ver (__fnmatch, fnmatch).
54691         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54692         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54693
54694 2004-01-14  Karl Berry  <karl@gnu.org>
54695
54696         * config/install-sh: update from automake.
54697
54698 2004-01-13  Karl Berry  <karl@gnu.org>
54699
54700         * config/install-sh: update from automake.
54701
54702 2004-01-09  Karl Berry  <karl@gnu.org>
54703
54704         * config/install-sh: update from automake.
54705
54706 2004-01-05  Karl Berry  <karl@gnu.org>
54707
54708         * config/config.{sub,guess}: update from config.
54709
54710 2003-12-31  Karl Berry  <karl@gnu.org>
54711
54712         * config/depcomp: update from automake.
54713
54714 2003-12-14  Karl Berry  <karl@gnu.org>
54715
54716         * lib/config.charset: update from gettext-runtime.
54717
54718 2003-12-03  Paul Eggert  <eggert@twinsun.com>
54719
54720         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54721         Bug reported by Alfred M. Szmidt.
54722
54723 2003-12-03  Bruno Haible  <bruno@clisp.org>
54724
54725         * m4/gettext.m4: Upgrade from gettext-0.13.
54726         * m4/po.m4: Upgrade from gettext-0.13.
54727         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54728         * m4/intmax.m4: New file, from gettext-0.13.
54729         * m4/printf-posix.m4: New file, from gettext-0.13.
54730
54731 2003-11-29  Karl Berry  <karl@gnu.org>
54732
54733         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54734
54735 2003-11-25  Paul Eggert  <eggert@twinsun.com>
54736             Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/printf-parse.h: Don't include sys/types.h.
54739         (ARG_NONE): New macro.
54740         (char_directive): Change type of *arg_index fields to size_t.
54741         * lib/printf-parse.c: Don't include sys/types.h.
54742         (SSIZE_MAX): Remove macro.
54743         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54744         Remove unnecessary overflow check.
54745         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54746         fields.
54747
54748 2003-11-25  Bruno Haible  <bruno@clisp.org>
54749
54750         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54751
54752 2003-11-25  Bruno Haible  <bruno@clisp.org>
54753
54754         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54755         gt_TYPE_SSIZE_T.
54756
54757 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54758
54759         * modules/alloca: Remove dependency on xalloc.
54760
54761 2003-11-24  Paul Eggert  <eggert@twinsun.com>
54762
54763         * lib/alloca.c: Remove dependency on xalloc module.
54764         (xalloc_die): Remove.
54765         (memory_full) [!defined emacs]: New macro.
54766         [!defined emacs]: Don't include xalloc.h.
54767         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54768         address arithmetic overflows.  Change datatypes a bit to avoid
54769         unnecessary casts.
54770
54771 2003-11-22  Jim Meyering  <jim@meyering.net>
54772
54773         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54774         s/size/size_t/.
54775
54776 2003-11-21  Karl Berry  <karl@gnu.org>
54777
54778         * config/config.{sub,guess}: update from config.
54779
54780 2003-11-18  Karl Berry  <karl@gnu.org>
54781
54782         * config/config.{sub,guess}: update from config.
54783
54784         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54785
54786 2003-11-17  Paul Eggert  <eggert@twinsun.com>
54787
54788         * README: Mention that S+T cannot overflow if S is the size of
54789         an existing object and T is sufficiently small.
54790
54791 2003-11-17  Jim Meyering  <jim@meyering.net>
54792
54793         On systems without utime and without a utimes function capable of
54794         dealing with a NULL struct utimbuf* argument, this utime replacement
54795         could -- in unusual circumstances -- leak a file descriptor.
54796         * lib/utime.c: Include <unistd.h> and <errno.h>.
54797         (utime_null): Be sure to close `fd' and to preserve errno.
54798         Reported by Geoff Collyer via Arnold Robbins.
54799
54800 2003-11-17  Bruno Haible  <bruno@clisp.org>
54801
54802         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54803         (Depends-on): Add xsize.
54804
54805 2003-11-17  Bruno Haible  <bruno@clisp.org>
54806
54807         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54808
54809 2003-11-17  Bruno Haible  <bruno@clisp.org>
54810
54811         * lib/vasnprintf.c (alloca): Remove fallback definition.
54812         (freea): Remove definition.
54813         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54814         Reported by Paul Eggert.
54815
54816 2003-11-16  Paul Eggert  <eggert@twinsun.com>
54817             Bruno Haible  <bruno@clisp.org>
54818
54819         Protect against address arithmetic overflow.
54820         * lib/printf-args.h: Include stddef.h.
54821         (arguments): Change type of field 'count' to size_t.
54822         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54823         'unsigned int' where appropriate.
54824         * lib/printf-parse.h: Include sys/types.h.
54825         (char_directive): Change type of *arg_index fields to ssize_t.
54826         (char_directives): Change type of fields 'count', max_*_length to
54827         size_t.
54828         * lib/printf-parse.c: Include sys/types.h and xsize.h.
54829         (SSIZE_MAX): Define fallback value.
54830         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54831         instead of 'int' where appropriate. Check a_allocated, d_allocated
54832         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54833         * lib/vasnprintf.c: Include xsize.h.
54834         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54835         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54836         overflow. Avoid wraparound when converting a width or precision from
54837         decimal to binary.
54838
54839 2003-11-16  Bruno Haible  <bruno@clisp.org>
54840
54841         Update from GNU gettext.
54842         * lib/printf-parse.c: Generalize to it can be compiled for wide
54843         strings.
54844         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54845         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54846         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54847         SNPRINTF): New macros.
54848         Don't include <alloca.h> if the file is used inside libintl.
54849         (local_wcslen): New function, for Solaris 2.5.1.
54850         (VASNPRINTF): Use it instead of wcslen.
54851
54852 2003-11-16  Bruno Haible  <bruno@clisp.org>
54853
54854         * lib/xsize.h (xmax): New function.
54855         (xsum, xsum3, xsum4): Declare as "pure" functions.
54856
54857 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54858
54859         * modules/xalloc (Files): Undo latest change, since xalloc.h
54860         no longer needs SIZE_MAX or PTRDIFF_MAX.
54861
54862 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54863
54864         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54865         gl_PTRDIFF_MAX.
54866
54867 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54868
54869         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54870         "return", to pacify some unknown compiler.  Problem reported
54871         by Joerg Schilling.
54872
54873 2003-11-12  Paul Eggert  <eggert@twinsun.com>
54874
54875         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54876         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54877         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
54878         heuristic is just as accurate as far as we know, and it removes a
54879         dependency on size_max.m4 and ptrdiff_max.m4.
54880
54881 2003-11-11  Bruno Haible  <bruno@clisp.org>
54882
54883         * modules/xsize (Files): Add m4/size_max.m4.
54884         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54885
54886 2003-11-11  Bruno Haible  <bruno@clisp.org>
54887
54888         * m4/size_max.m4: New file.
54889         * m4/ptrdiff_max.m4: New file.
54890         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54891         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54892         (gl_XALLOC): Invoke it.
54893
54894 2003-11-11  Bruno Haible  <bruno@clisp.org>
54895
54896         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54897         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54898         defined.
54899
54900 2003-11-10  Paul Eggert  <eggert@twinsun.com>
54901
54902         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54903         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54904         rejected some allocations of exactly SIZE_MAX - 2 bytes.
54905         From Bruno Haible.
54906         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54907         not (size_t) -1, since it's defined here.
54908
54909 2003-11-09  Karl Berry  <karl@gnu.org>
54910
54911         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54912
54913 2003-11-06  Paul Eggert  <eggert@twinsun.com>
54914
54915         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54916         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54917         Reject sizes of exactly SIZE_MAX bytes.
54918         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54919         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54920
54921 2003-11-05  Bruno Haible  <bruno@clisp.org>
54922
54923         * lib/xsize.h: Include limits.h, to avoid a possible collision with
54924         SIZE_MAX defined in <limits.h> on Solaris.
54925
54926 2003-11-04  Jim Meyering  <jim@meyering.net>
54927
54928         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54929         variable names, rather than @VAR@.
54930         * modules/poll: Likewise.
54931
54932 2003-11-04  Bruno Haible  <bruno@clisp.org>
54933
54934         * modules/xsize: New file.
54935         * modules/linebreak: Depend on xsize.
54936         * MODULES.html.sh (func_all_modules): Add xsize.
54937
54938 2003-11-04  Bruno Haible  <bruno@clisp.org>
54939
54940         * m4/xsize.m4: New file.
54941
54942 2003-11-04  Bruno Haible  <bruno@clisp.org>
54943
54944         * lib/xsize.h: New file.
54945         * lib/linebreak.c: Include xsize.h.
54946         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54947         argument for overflow.
54948         Suggested by Paul Eggert.
54949
54950 2003-11-03  Karl Berry  <karl@gnu.org>
54951
54952         * config/config.{guess,sub}: update from config.
54953
54954 2003-11-03  Jim Meyering  <jim@meyering.net>
54955
54956         * modules/userspec (lib_SOURCES): Add userspec.h.
54957         (Include): Add "userspec.h".
54958         Improve description.
54959
54960 2003-11-03  Jim Meyering  <jim@meyering.net>
54961
54962         * lib/userspec.c: Include "userspec.h".
54963         * lib/userspec.h: New file.
54964
54965 2003-11-03  Bruno Haible  <bruno@clisp.org>
54966
54967         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54968
54969 2003-11-03  Bruno Haible  <bruno@clisp.org>
54970
54971         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54972         available, to avoid (extremely rare) race condition.
54973         Suggested by Paul Eggert.
54974
54975 2003-11-02  Karl Berry  <karl@gnu.org>
54976
54977         * config/srclist.txt (vasprintf.c): sync broken, sigh.
54978
54979 2003-10-31  Paul Eggert  <eggert@twinsun.com>
54980
54981         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54982         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54983         (read_filesystem_list): Set and use me_type_malloced.
54984         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54985         whatever the type happens to be), for brevity and consistency.
54986         Check for size calculation overflow on Alphas running OSF/1.
54987
54988 2003-10-31  Jim Meyering  <jim@meyering.net>
54989
54990         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54991
54992         * lib/linebuffer.c: Include <string.h> for declaration of memset.
54993
54994 2003-10-30  Paul Eggert  <eggert@twinsun.com>
54995             Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54998         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54999
55000 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55001
55002         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
55003         netbsd*-gnu*.  Suggested by Robert Millan.
55004
55005 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55006
55007         * modules/group-member: Depend on stdbool.
55008
55009 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55010
55011         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
55012
55013 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55014
55015         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
55016         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
55017         after the 'gnu' in these cases.  This fixes some bugs in the
55018         previous change, and is based on suggestions by Robert Millan.
55019
55020 2003-10-29  Paul Eggert  <eggert@twinsun.com>
55021
55022         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
55023         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
55024         no longer needed.
55025         * lib/quotearg.c (quotearg_n_options): Use it.
55026         * lib/group-member.c: Include <stdbool.h>.
55027         (free_group_info): Arg is now const *; don't free arg.
55028         (get_group_info): Now returns bool and accepts struct group_info *,
55029         rather than returning a malloc'ed struct group_info *.
55030         All uses changed.  Check for overflow in internal size calculation.
55031
55032         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
55033         rather than xmalloc/xrealloc.
55034         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
55035         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
55036         conformance bug: the old code used a pointer after freeing the
55037         storage that it addressed.
55038         * lib/hash.c (hash_initialize): Simplify the code by using
55039         xalloc_oversized rather than doing it by hand.
55040         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
55041         the buffer preserved.  Use free and xmalloc instead.
55042         * lib/quotearg.c (quotearg_n_options): Likewise.
55043         Use a simpler test for size overflow.  Don't use xalloc_oversized
55044         because unsigned int might be wider than size_t (!); this suggests
55045         that we should switch from unsigned int to size_t for slot numbers.
55046
55047 2003-10-28  Paul Eggert  <eggert@twinsun.com>
55048
55049         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
55050         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
55051         NetBSD kernels.  Requested by Richard Stallman.
55052
55053 2003-10-27  Paul Eggert  <eggert@twinsun.com>
55054
55055         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
55056         to allocate the returned structure.  Do not allocate a subarray,
55057         as x2nrealloc will do that.
55058         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
55059         instead of xnrealloc.
55060         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
55061
55062 2003-10-27  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/stdbool_.h: Better support for BeOS.
55065
55066 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55067
55068         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
55069         now uses inline.
55070
55071 2003-10-26  Paul Eggert  <eggert@twinsun.com>
55072
55073         * lib/xalloc.h (xalloc_oversized): New static inline function, for
55074         callers that want to do their own size-overflow checking.  Include
55075         <stdbool.h>, since xalloc_oversized returns bool.
55076         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
55077         to use xalloc_oversized.
55078
55079         Add two functions x2realloc, x2nrealloc, for programs that grow
55080         arrays dynamically by doubling their sizes.
55081         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
55082         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
55083         New functions.
55084
55085         Port to C99 semantics for 'inline' of external functions.
55086         Bug reported by Bruno Haible.
55087         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
55088         with the old contents of xnmalloc.
55089         (xnmalloc, xmalloc): Use it.
55090         (xnrealloc_inline): New static inline function,
55091         with the old contents of xnrealloc.
55092         (xnrealloc, xrealloc): Use it.
55093
55094         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
55095         that.
55096
55097 2003-10-26  Karl Berry  <karl@gnu.org>
55098
55099         * config/srclist.txt (COPYING.DOC): no longer available from
55100         /gd/gnuorg; don't know where the ultimate source is.
55101
55102 2003-10-25  Paul Eggert  <eggert@twinsun.com>
55103
55104         Fix several address-calculation bugs in the hash modules,
55105         plus some minor code cleanup.
55106
55107         * lib/hash.h: Include <stdbool.h>, for bool.
55108         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
55109         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
55110         hash_get_n_entries, hash_get_max_bucket_length,
55111         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
55112         hash_rehash): Use size_t rather than unsigned.
55113         * lib/hash.c (struct hash_table, hash_get_n_buckets,
55114         hash_get_n_buckets_used, hash_get_n_entries,
55115         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
55116         hash_get_entries, hash_do_for_each, hash_string, is_prime,
55117         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
55118         Likewise.
55119         (SIZE_MAX): Define if not defined.
55120         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
55121         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
55122         hash_print):
55123         Use const * when possible.
55124         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
55125         (check_tuning): Fix bug: if tuning parameters were very close to
55126         0 or 1, rounding errors could have caused subscript violations.
55127         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
55128         (hash_initialize): Add 'fail:' label
55129         to free table and return NULL, and use it to simplify code.
55130         Use calloc rather than clearing the storage ourself.
55131         (hash_initialize, hash_rehash): Check for arithmetic overflow in
55132         buffer size calculations.
55133         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
55134         Include <stddef.h>, for size_t.
55135         * lib/hash-pjw.c (hash_pjw): Likewise.
55136         Switch to method described by Bruno Haible.
55137         Include <limits.h>, for CHAR_BIT.
55138         (SIZE_BITS): New macro.
55139
55140 2003-10-23  Paul Eggert  <eggert@twinsun.com>
55141
55142         * m4/getline.m4 (AM_FUNC_GETLINE):
55143         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
55144         hosts.  Problem reported by Derek Robert Price in
55145         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
55146         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
55147         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
55148
55149 2003-10-21  Paul Eggert  <eggert@twinsun.com>
55150
55151         * lib/getndelim2.c (getndelim2): When size calculation overflows,
55152         ceiling the allocation at NMAX bytes rather than silently
55153         discarding input bytes before NMAX is reached.  This makes
55154         a difference only if NMAX exceeds SIZE_MAX / 2.
55155
55156         * lib/obstack.c: Merge from glibc.
55157         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
55158         Add libc_hidden_def (_obstack_newchunk).
55159         (_obstack_free) [! defined _LIBC]: Remove.
55160         [defined _LIBC]: Make a strong alias from obstack_free, rather than
55161         a clone of the function body.
55162         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
55163         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
55164
55165         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
55166         glibc.
55167         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
55168         arg to memcpy.
55169
55170         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
55171         (obstack_ptr_grow_fast, obstack_int_grow_fast):
55172         Don't use lvalue casts, as GCC plans to remove support for them
55173         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
55174         was also present in the non-GCC version, indicating that this
55175         code had always been buggy and had never been widely used.
55176         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
55177         Use the fast variant of each macro, rather than copying the
55178         definiens of the fast variant; that way, we'll be more likely to
55179         catch future bugs in the fast variants.
55180
55181 2003-10-20  Bruno Haible  <bruno@clisp.org>
55182
55183         * modules/wait-process: New file.
55184         * MODULES.html.sh (func_all_modules): Add wait-process.
55185
55186 2003-10-20  Bruno Haible  <bruno@clisp.org>
55187
55188         * m4/wait-process.m4: New file.
55189
55190 2003-10-20  Bruno Haible  <bruno@clisp.org>
55191
55192         * lib/wait-process.h: New file, from GNU gettext.
55193         * lib/wait-process.c: New file, from GNU gettext.
55194
55195 2003-10-19  Jim Meyering  <jim@meyering.net>
55196
55197         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
55198         HPUX 10.20.
55199
55200 2003-10-18  Karl Berry  <karl@gnu.org>
55201
55202         * config/config.guess: update from config.
55203
55204 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55205
55206         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
55207         (getgroups): First arg is int, not size_t.
55208         Don't let 'free' mangle errno.
55209
55210 2003-10-16  Paul Eggert  <eggert@twinsun.com>
55211
55212         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
55213
55214 2003-10-16  Karl Berry  <karl@gnu.org>
55215
55216         * config/config.{guess,sub}: update from config.
55217
55218 2003-10-16  Jim Meyering  <jim@meyering.net>
55219
55220         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
55221         memcpy.
55222
55223 2003-10-15  Paul Eggert  <eggert@twinsun.com>
55224
55225         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
55226         (SIZE_MAX): Remove.
55227         (new_exclude, add_exclude_file): Initial size no longer needs to
55228         be a power of 2.
55229         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
55230         our own address arithmetic overflow checking.
55231
55232         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
55233         (fnmatch): Do not alloca more than 2000 wide characters;
55234         instead, use malloc for large buffers.
55235         Check for address arithmetic overflow, and return -1
55236         with errno set to ENOMEM in that case.
55237         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
55238         (NEW_PATTERN): Do not alloca more than 8000 bytes;
55239         instead, return -1.  Check for address arithmetic overflow.
55240
55241 2003-10-14  Paul Eggert  <eggert@twinsun.com>
55242
55243         Handle invalid suffixes and overflow independently, so that
55244         callers can treat them independently as needed.  Fix some bugs in
55245         suffix handling, e.g., "100k@" was not diagnosed as an invalid
55246         suffix for a human-readable blocksize.  The major caller-visible
55247         change is the addition of a new
55248         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
55249         that both overflow and suffix chars were found.
55250
55251         * lib/human.c (humblock): Don't check separately for invalid suffix
55252         char; that is xstrtoumax's job (now that its bug is fixed).
55253         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
55254         INTMAX_MAX]: New macros.
55255         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
55256         TYPE_MAXIMUM): New macros.
55257         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
55258         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
55259         if overflow occurs, as it's what __strtol does and it's more useful
55260         in practice.
55261         (__xstrtol): If __strtol reports some error other than ERANGE,
55262         reflect it to the caller as LONGINT_INVALID.  If it reports
55263         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
55264         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
55265         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
55266         value.
55267         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
55268         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
55269         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
55270         [defined UINTMAX_MAX]: New macros.
55271
55272 2003-10-14  Bruno Haible  <bruno@clisp.org>
55273
55274         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
55275
55276 2003-10-14  Bruno Haible  <bruno@clisp.org>
55277
55278         * m4/sig_atomic_t: New file, from GNU gettext.
55279         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
55280
55281 2003-10-14  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
55284         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
55285         Also use volatile where needed.
55286
55287 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55288
55289         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
55290         Change maintainer from Bruno Haible to 'all'.
55291
55292 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55293
55294         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
55295
55296 2003-10-12  Paul Eggert  <eggert@twinsun.com>
55297
55298         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
55299         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
55300         and define in terms of the other primitives.
55301         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
55302         (SIZE_MAX): Define if not already defined.
55303         (array_size_overflow): New function.
55304         (xalloc_die): Abort instead of exiting if 'error' returns.
55305         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
55306         (xmalloc, xrealloc): Use them.
55307         (xcalloc): Check for address arithmetic overflow.
55308         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
55309         a bit faster than strcpy.
55310
55311 2003-10-10  Simon Josefsson  <jas@extundo.com>
55312
55313         * modules/argp (Depends-on): Add restrict and strcase.
55314
55315 2003-10-10  Simon Josefsson  <jas@extundo.com>
55316
55317         * m4/argp.m4: Add AC_C_INLINE.
55318
55319 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55320
55321         Merge getpass from libc, plus a few fixes.
55322
55323         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
55324         Include <stdbool.h>.
55325         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
55326         __fsetlocking to empty.
55327         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
55328         do include <bits/libc-lock.h>.
55329         Do not include <fcntl.h>; not needed.
55330         [_LIBC]: Include <wchar.h>.
55331         (NOTCANCEL_MODE): New macro.
55332         (flockfile, funlockfile) [_LIBC]: New macros.
55333         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
55334         [!_LIBC]: New macros.
55335         (call_fclose): New function.
55336         (getpass): Use it.  Save tty stream separately; this simplifies the
55337         code and makes it more reliable if stdin happens to equal stdout.
55338         Invoke __fsetlocking on tty.
55339         Handle thread cancellation if needed.
55340         Namespace cleanup (use __tcgetattr, __getline).
55341         Use bool for Booleans.
55342         [USE_IN_LIBIO]: Handle wide streams.
55343         [!_LIBC]: Unconditionally do the fseek, since we don't know what
55344         stream might go where.
55345
55346         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
55347         doesn't have to include <stdio.h> before us.
55348         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
55349         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
55350         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
55351         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
55352         if not declared, so that we can use getpass.c code from libc without
55353         rewriting it.
55354         (flockfile, ftrylockfile, funlockfile): New macros.
55355
55356 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55357
55358         * modules/getpass: Depend on stdbool.
55359
55360 2003-10-08  Paul Eggert  <eggert@twinsun.com>
55361
55362         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
55363
55364 2003-10-07  Karl Berry  <karl@gnu.org>
55365
55366         * config/config.{guess,sub}: update from config.
55367
55368 2003-10-06  Jim Meyering  <jim@meyering.net>
55369             Bruno Haible  <bruno@clisp.org>
55370
55371         This lets translators provide better translations for the
55372         "Written by ..." part of --version output.
55373         * lib/version-etc.h: Include stdarg.h.
55374         (version_etc_copyright): Declare as readonly.
55375         (version_etc): Make this function variadic with a NULL-terminated list
55376         of author name strings.
55377         (version_etc_va): New declaration.
55378         * lib/version-etc.c: Include stdarg.h, stdlib.h.
55379         (version_etc_copyright): Declare as readonly.
55380         (version_etc_va): New function. Provide a different translatable string
55381         for each possible number of authors < 10. Abbreviate when there are 10
55382         authors or more.
55383         (version_etc): Make this function variadic. Call version_etc_va.
55384         Suggestion from Gary V. Vaughan.
55385
55386         * lib/long-options.h (parse_long_options): Change prototype: the
55387         authors string is moved to the end and becomes variadic.
55388         * lib/long-options.c: Include stdarg.h.
55389         (parse_long_options): Make this function variadic, too.
55390         Call version_etc_va, not version_etc.
55391
55392 2003-10-06  Bruno Haible  <bruno@clisp.org>
55393
55394         * modules/version-etc-2: Remove file.
55395         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
55396
55397 2003-10-06  Bruno Haible  <bruno@clisp.org>
55398
55399         * modules/fatal-signal: New file.
55400         * MODULES.html.sh (func_all_modules): Add fatal-signal.
55401
55402 2003-10-06  Bruno Haible  <bruno@clisp.org>
55403
55404         * m4/fatal-signal.m4: New file.
55405         * m4/signalblocking.m4: New file, from GNU gettext.
55406
55407 2003-10-06  Bruno Haible  <bruno@clisp.org>
55408
55409         * lib/version-etc-2.h: Remove file.
55410         * lib/version-etc-2.c: Remove file.
55411
55412 2003-10-06  Bruno Haible  <bruno@clisp.org>
55413
55414         * lib/fatal-signal.h: New file, from GNU gettext.
55415         * lib/fatal-signal.c: New file, from GNU gettext.
55416
55417 2003-10-05  Paul Eggert  <eggert@twinsun.com>
55418
55419         * README: Rework advice for preventing empty .o files.
55420         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
55421         not <sys/types.h>.
55422
55423 2003-10-04  Karl Berry  <karl@gnu.org>
55424
55425         * lib/argp*: update from libc.
55426
55427 2003-10-04  Karl Berry  <karl@gnu.org>
55428
55429         * config/config.{guess,sub}: update from config.
55430
55431 2003-10-02  Bruno Haible  <bruno@clisp.org>
55432
55433         * modules/lchown (Include): Add lchown.h.
55434         * modules/time_r (Include): Use "..." syntax.
55435         * modules/xgetdomainname (Include): Add xgetdomainname.h.
55436
55437 2003-10-01  Simon Josefsson  <jas@extundo.com>
55438
55439         * MODULES.html.sh (func_all_modules): Move gethostname from section
55440         'based on' to section 'lacking' POSIX:2001.
55441
55442 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
55443
55444         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
55445         to output mode on the same stream.
55446
55447 2003-09-29  Paul Eggert  <eggert@twinsun.com>
55448
55449         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55450         Fix arg typo in previous patch.
55451
55452 2003-09-28  Jim Meyering  <jim@meyering.net>
55453
55454         * lib/error.c: Correct cpp indentation.
55455
55456 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55457
55458         * modules/free: New file.
55459
55460 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55461
55462         * m4/free.m4: New file.
55463
55464 2003-09-27  Paul Eggert  <eggert@twinsun.com>
55465
55466         * lib/minmax.h (MIN, MAX)
55467         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55468         Omit the special code that used __typeof__, since we worry that
55469         it could be more trouble than it's worth.  See:
55470         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55471         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55472
55473         * lib/free.c: New file.
55474
55475 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
55476
55477         Trivial fixes to Makefile.am parts of module listings.
55478         * modules/strstr: Append strstr.h to lib_SOURCES.
55479         * modules/strcase: Likewise, for strcase.h.
55480
55481 2003-09-27  Karl Berry  <karl@gnu.org>
55482
55483         * config/mkinstalldirs: update from automake.
55484
55485 2003-09-26  Paul Eggert  <eggert@twinsun.com>
55486
55487         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55488         (error_tail): Do not loop, reallocating temporary buffer, since
55489         the output cannot contain more wide characters than the input
55490         contains bytes, the size must be big enough already.  This avoids
55491         one potential size overflow calculation.  Check for size overflow
55492         when calculating temporary buffer size.  Free temporary buffer
55493         when done, if it was allocated with malloc; this plugs a memory
55494         leak.  Remove casts from void * to pointers, that are no longer
55495         needed now that we're assuming C89 or better.
55496
55497         Merge error changes from glibc.
55498
55499         * lib/error.c, error.h: Update copyright notice header to match glibc.
55500         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55501         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55502         Disable cancellation while printing error.
55503         * lib/error.h: Prepend __ to parameter names.
55504
55505 2003-09-26  Jim Meyering  <jim@meyering.net>
55506
55507         * lib/error.c (error_tail): Move some declarations
55508         into inner scope where the local variables are used.
55509
55510 2003-09-26  Bruno Haible  <bruno@clisp.org>
55511
55512         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55513         stpncpy().
55514         Don't define stpncpy through config.h; it's now done through stpncpy.h.
55515
55516 2003-09-26  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/stpncpy.h (gnu_stpncpy): New declaration.
55519         (stpncpy): Define as alias for gnu_stpncpy.
55520         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55521
55522 2003-09-25  Simon Josefsson  <jas@extundo.com>
55523
55524         * lib/xgetdomainname.h: New file.
55525         * lib/xgetdomainname.c: New file.
55526
55527 2003-09-25  Simon Josefsson  <jas@extundo.com>
55528             Bruno Haible  <bruno@clisp.org>
55529
55530         * modules/getdomainname: New file.
55531         * modules/xgetdomainname: New file.
55532         * MODULES.html.sh (func_all_modules): Add getdomainname,
55533         xgetdomainname.
55534
55535 2003-09-25  Simon Josefsson  <jas@extundo.com>
55536             Bruno Haible  <bruno@clisp.org>
55537
55538         * m4/getdomainname.m4: New file.
55539
55540 2003-09-25  Simon Josefsson  <jas@extundo.com>
55541             Bruno Haible  <bruno@clisp.org>
55542
55543         * lib/getdomainname.h: New file.
55544         * lib/getdomainname.c: New file.
55545
55546 2003-09-25  Karl Berry  <karl@gnu.org>
55547
55548         * lib/argp-fmtstream.c, argp-help.c: update from libc.
55549
55550 2003-09-25  Karl Berry  <karl@gnu.org>
55551
55552         * config/install-sh: update from automake.
55553
55554 2003-09-25  Bruno Haible  <bruno@clisp.org>
55555
55556         * modules/version-etc-2: New file, from modules/version-etc with
55557         modifications.
55558         * MODULES.html.sh (func_all_modules): Add version-etc-2.
55559
55560 2003-09-25  Bruno Haible  <bruno@clisp.org>
55561
55562         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55563         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55564
55565 2003-09-24  Simon Josefsson  <jas@extundo.com>
55566
55567         * modules/xgethostname: Add xgethostname.h.
55568
55569 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55570
55571         * lib/linebuffer.c (freebuffer): Don't free the argument, just
55572         the buffer associated with the argument.  Bug reported by
55573         Simon Josefsson.
55574
55575 2003-09-24  Paul Eggert  <eggert@twinsun.com>
55576
55577         * README: Document assumptions that 'int' is at least 32 bits
55578         wide, that integer arithmetic is 2's complement without overflow,
55579         that there are no holes in integer values, that adding sizes of
55580         two nonoverlapping objects can't overflow, and that all-bits-zero
55581         yields scalar zero.  Fix spelling and capitalization typos.
55582
55583 2003-09-19  Karl Berry  <karl@gnu.org>
55584
55585         * lib/argp.h: update from libc.
55586
55587 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55588
55589         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55590         to avoid spurious warnings like "AC_RUN_IFELSE was called before
55591         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55592
55593 2003-09-17  Paul Eggert  <eggert@twinsun.com>
55594
55595         * gnulib-tool: Use "test -h", not "test -L", for portability
55596         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
55597         (tags_regexp): Remove, since \| doesn't conform to POSIX.
55598         (sed_extract_prog): Issue s commands one-by-one, rather than
55599         using \| in one s command.
55600
55601 2003-09-16  Paul Eggert  <eggert@twinsun.com>
55602
55603         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55604         input error, instead of returning NULL the next time we are called
55605         (and therefore losing track of errno).
55606
55607 2003-09-16  Bruno Haible  <bruno@clisp.org>
55608
55609         * gnulib-tool (func_create_testdir): Warn about duplicated
55610         dependencies.
55611
55612 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55613
55614         * modules/argmatch, modules/fatal, modules/obstack,
55615         modules/xalloc, modules/xgethostname: Sort dependencies by
55616         importance, not alphabetically.
55617
55618 2003-09-15  Paul Eggert  <eggert@twinsun.com>
55619
55620         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55621         fails, so that the caller gets the proper errno.
55622
55623         * lib/readutmp.c (read_utmp): Likewise.
55624         Check for fstat error.  Close stream and free storage
55625         when failing.
55626
55627 2003-09-14  Karl Berry  <karl@gnu.org>
55628
55629         * config/srclist.txt (strdup.c): disable for c89 changes.
55630
55631 2003-09-14  Jim Meyering  <jim@meyering.net>
55632
55633         * lib/getloadavg.c: Correct cpp indentation.
55634         * lib/strdup.c: Likewise.
55635         * lib/vasnprintf.c: Likewise.
55636
55637 2003-09-14  Bruno Haible  <bruno@clisp.org>
55638
55639         * modules/fwriteerror: New file.
55640         * MODULES.html.sh (func_all_modules): Add fwriteerror.
55641
55642 2003-09-14  Bruno Haible  <bruno@clisp.org>
55643
55644         * lib/fwriteerror.h: New file.
55645         * lib/fwriteerror.c: New file.
55646
55647 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55648
55649         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55650         modules/xgethostname, modules/xalloc: Depend on exit.
55651
55652 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55653
55654         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55655
55656         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55657         and AC_MINIX, too, so that their extensions are available.
55658
55659         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
55660         This macro has been superseded by gl_BACKUPFILE.
55661
55662         More patches to assume C89 or better.
55663
55664         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55665
55666         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55667         unconditionally.
55668         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55669         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55670         Include <string.h>, <stdlib.h> unconditionally.
55671         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55672         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55673         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55674         headers or for string.h.
55675         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55676         or strtoul.
55677
55678         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55679         headers.
55680         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55681         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55682         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55683         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55684         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55685         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55686         memcpy, memset.
55687         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55688         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55689         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55690         strtol.
55691         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55692         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55693         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55694         strtoul.
55695
55696 2003-09-12  Paul Eggert  <eggert@twinsun.com>
55697
55698         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55699         * lib/obstack.c [!defined _LIBC]: Likewise.
55700         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55701         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55702         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55703
55704         More changes to assume C89 or better.
55705
55706         * lib/error.c (error_tail): Assume vprintf.
55707
55708         * lib/argmatch.c (getenv): Remove decl.
55709         * lib/progreloc.c (get_full_program_name): Define via prototype.
55710         * lib/setenv.c (clearenv): Likewise.
55711         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55712         needed.
55713         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55714         (malloc, memcpy): Remove decls.
55715         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55716         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55717         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55718         (memcpy): Remove macro.
55719         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55720         (__P): Remove.  All uses removed.
55721         (PTR): Remove.  All uses changed to void *.
55722         (CHAR_BIT, NULL): Remove.
55723         (spaces, zeros, memset_space, memset_zero)
55724         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55725         Remove.
55726         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55727         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55728         Define with prototype.
55729         Remove now-unnecessary prototype decl.
55730         (extra_args_spec): Assume ANSI C.  All uses changed.
55731         (extra_args_spec_iso): Remove.
55732         (my_strftime, emacs_strftimeu): Define via prototype.
55733         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55734         unconditionally.
55735         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55736         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55737         (strtoul, strtol): Remove decls.
55738         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55739         LONG_MAX): Remove.
55740         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55741         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
55742         (LOCALE_PARAM_PROTO): New macro.
55743         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55744         (INTERNAL (strtol), strtol): Define with a prototype.
55745         (PARAMS): Remove.  All uses removed.
55746         * lib/tempname.c: Include <string.h> unconditionally.
55747         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55748         * lib/xgethostname.c (main): Define with a prototype.
55749         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55750         Include <stdlib.h> unconditionally.
55751         (calloc, malloc, realloc, free): Remove decls.
55752         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55753         Include <stdlib.h> unconditionally.  Sort include file names.
55754         (strtod): Remove.
55755         (xstrtod): Define with a prototype.
55756         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55757         (strtol, strtoul): Remove decls.
55758
55759 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55760
55761         More patches to assume C89 or better.
55762         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55763         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55764         string.h, memchr, STDC_HEADERS.
55765
55766 2003-09-11  Paul Eggert  <eggert@twinsun.com>
55767
55768         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55769         Include <stdlib.h>, <string.h> unconditionally.
55770         Remove now-unnecessary cast to char *.
55771         * lib/strnlen.c: Include <string.h> unconditionally.
55772         * lib/yesno.c (yesno): Define with a prototype.
55773
55774 2003-09-11  Bruno Haible  <bruno@clisp.org>
55775
55776         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55777
55778 2003-09-10  Jim Meyering  <jim@meyering.net>
55779
55780         * lib/error.c: Correct indentation of cpp directives.
55781
55782 2003-09-10  Bruno Haible  <bruno@clisp.org>
55783
55784         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55785         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55786         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55787         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55788         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55789         <stdlib.h> and <string.h> checks.
55790         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55791         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55792
55793 2003-09-10  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/strcspn.c: Include <string.h> unconditionally.
55796         * lib/strpbrk.c: Include <string.h> unconditionally.
55797         * lib/strstr.c: Include <string.h> unconditionally.
55798         * lib/unicodeio.c: Include <string.h> unconditionally.
55799         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55800         * lib/unsetenv.c: Likewise.
55801         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55802         * lib/yesno.c: Include <stdlib.h> unconditionally.
55803         (rpmatch): Add prototype.
55804
55805 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55806
55807         More patches to assume C89 or better.
55808         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55809         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55810         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55811         or for string.h.
55812         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55813         stdlib.h.
55814         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55815         C headers.
55816         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55817         string.h.
55818         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55819         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55820         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55821         or for string.h.
55822         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55823         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55824         C headers.
55825         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55826         memcpy.
55827         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55828         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55829         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55830         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55831         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55832         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55833         string.h, free.
55834         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55835         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55836         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55837         C headers, or for string.h.
55838         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55839         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55840         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55841         headers, memory.h, stdlib.h, string.h, strings.h.
55842         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55843         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55844         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55845         strchr.
55846         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55847         headers, memory.h, string.h.
55848         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55849         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55850         free.
55851         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55852         headers.
55853         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55854         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55855         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55856         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55857         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55858
55859 2003-09-09  Paul Eggert  <eggert@twinsun.com>
55860
55861         More K&R removal.
55862
55863         * lib/acosl.c (main): Use a prototype.
55864         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55865         tanl.c: Likewise.
55866
55867         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55868
55869         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55870         (getopt, etopt_long, getopt_long_only, _getopt_internal)
55871         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55872         with a prototype.
55873         * lib/getopt.c (const): Remove macro.
55874         Include <string.h> unconditionally.
55875         (my_index): Remove; all uses changed to strchr.
55876         (strlen): Remove decl.
55877         (exchange): Remove forward decl; no longer needed.
55878         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55879         Define with prototype.
55880         * lib/getopt1.c (const): Remove macro.
55881         (getopt_long, getopt_long_only, main): Define with prototype.
55882
55883         * lib/getugroups.c: Include <string.h> unconditionally.
55884
55885         * lib/getusershell.c: Include <stdlib.h> unconditionally.
55886         (getusershell, setusershell, endusershell, readname, main):
55887         Define with prototypes.
55888
55889         * lib/group-member.c: Include group-member.h first.
55890         Include <stdlib.h> unconditionally.
55891
55892         * lib/hard-locale.c: Include hard-locale.h first.
55893         Include <stdlib.h>, <string.h> unconditionally.
55894
55895         * lib/hash.c (free, malloc): Remove decls.
55896         Include <stdlib.h> unconditionally.
55897
55898         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55899         (getenv): Do not declare.
55900
55901         * lib/idcache.c: Include <string.h> unconditionally.
55902
55903         * lib/long-options.c: Include long-options.h first, to test interface.
55904         Include <stdlib.h> unconditionally.
55905
55906         * lib/makepath.c: Include makepath.h first, to test interface.
55907         Include <stdlib.h> and <string.h> unconditionally.
55908
55909         * lib/linebuffer.c: Include <stdlib.h>.
55910         (free): Remove decl.
55911
55912         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55913         stddef.h. rpl_malloc returns void *, not char *.
55914         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
55915         prototype.
55916
55917         * lib/md5.h: Include <limits.h> unconditionally.
55918         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55919         (__P): Remove; all uses removed.
55920         * lib/md5.c: Include "md5.h" first.
55921         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55922         md5_buffer, md5_process_bytes, md5_process_block):
55923         Define with prototypes.
55924         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
55925         * lib/sha.c: Include "sha.h" first.
55926         Include <stdlib.h>, <string.h> unconditionally.
55927
55928         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55929         * lib/memcmp.c (__ptr_t): Likewise.
55930         * lib/memrchr.c (__ptr_t): Likewise.
55931         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55932         Include <string.h> unconditionally.
55933         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55934         * lib/memchr.c: Include <stdlib.h> unconditionally.
55935         * lib/memchr.c (LONG_MAX): Remove.
55936         * lib/memrchr.c (LONG_MAX): Likewise.
55937         * lib/memchr.c (__memchr): Define via a prototype.
55938         * lib/memrchr.c (__memrchr): Likewise.
55939         * lib/memcmp.c (__P): Remove, and remove all uses.
55940         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55941         Remove forward decls; no longer needed.
55942         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55943         Use types required by C89 in prototype.
55944
55945         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55946         * lib/savedir.c: Likewise.
55947         * lib/mkdir.c (free): Remove decl.
55948         * lib/rmdir.c (rmdir): Define with a prototype.
55949         * lib/savedir.c: Include savedir.h first, to test interface.
55950
55951         * lib/mktime.c (STDC_HEADERS): Remove.
55952         Include <stdlib.h>, <string.h> unconditionally.
55953
55954         * lib/modechange.c: Include <stdlib.h> unconditionally.
55955         (malloc): Remove decl.
55956
55957         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55958         (free): Remove decl.
55959
55960         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55961         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55962         (This type really should be intptr_t, but that's a C99ism.)
55963         (_obstack_memcpy): Remove: all uses changed to memcpy.
55964         Include <string.h> unconditionally.
55965         (struct obstack): Assume __STDC__ for types of members
55966         chunkfun, freefun, extra_arg.
55967         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55968         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55969         obstack_begin, obstack_specify_allocation,
55970         obstack_specify_allocation_with_arg, obstack_chunkfun,
55971         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55972         Remove unprototyped decls and the macros that use them.
55973         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
55974         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55975         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55976         (defined __STDC__ && __STDC__)]:
55977         Remove nonprototyped code.
55978         Include <stdlib.h> unconditionally.
55979         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55980         _obstack_allocated_p, _obstack_free, obstack_free,
55981         _obstack_memory_used, print_and_abort):
55982         Define using prototypes.
55983         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55984         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55985         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55986         obstack_next_free, obstack_object_size, obstack_room) [0]:
55987         Remove unused, unprototyped code.
55988
55989         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55990
55991         * lib/physmem.c (physmem_total, physmem_available, main): Define
55992         with prototypes.
55993
55994         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55995         (main): Define with a prototype.
55996
55997         * lib/posixver.c (getenv): Remove decl.
55998
55999         * lib/putenv.c (malloc): Returns void *, not char *.
56000         Include <string.h> unconditionally.
56001         (strchr, memcpy, NULL): Do not define.
56002
56003         * lib/readtokens.c: Include readtokens.h first, to test interface.
56004         Include <stdlib.h>, <string.h> unconditionally.
56005         (init_tokenbuffer): Define with a prototype.
56006
56007         * lib/regex.c (PARAMS): Remove.  All uses removed.
56008         All uses of _RE_ARGS removed, too.
56009         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
56010         unconditionally.
56011         (bzero): Assume memset exists.
56012         (memcmp, memcpy, NULL): Remove.
56013         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
56014         char, or assignments to local vars of type signed char.
56015         (init_syntax_once, PREFIX(extract_number_and_incr),
56016         PREFIX(print_partial_compiled_pattern),
56017         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
56018         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
56019         PREFIX(regex_grow_registers), PREFIX(regex_compile),
56020         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
56021         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
56022         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
56023         wcs_compile_range, byte_compile_range, truncate_wchar,
56024         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
56025         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
56026         count_mbs_length, wcs_re_match_2_internal,
56027         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
56028         PREFIX(alt_match_null_string_p),
56029         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
56030         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
56031         regfree, PREFIX(extract_number)): Define with prototype.  Remove
56032         now-unnecessary declaration, if any.
56033         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
56034         regcomp, regexec):
56035         Remove now-unnecessary casts among pointer types.
56036         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
56037
56038         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
56039         (free): Remove decl.
56040
56041         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
56042
56043         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
56044         (free): Remove decl.
56045
56046         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
56047         * lib/xgetcwd.c: Likewise.
56048
56049         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
56050         (free): Remove decl.
56051
56052         * lib/strchrnul.c (strchrnul): Define with a prototype.
56053         Fix bug: c_in was not converted to char before searching.
56054
56055         The following changes are not K&R related:
56056
56057         * lib/group-member.h: Include <sys/types.h>, so that this file is
56058         self-contained.
56059         * lib/makepath.h: Likewise.
56060
56061         * lib/getusershell.c (readname, default_index, line_size, readname):
56062         Use size_t, not int, for sizes.
56063         (readname): If the size overflows, report an error instead of
56064         looping forever.
56065
56066 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56067
56068         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
56069         libc.
56070
56071 2003-09-09  Paul Eggert  <eggert@twinsun.com>
56072
56073         * README: New section: portability guidelines.
56074
56075 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56076
56077         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
56078         C89 spec.
56079
56080 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
56081
56082         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
56083
56084 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56085
56086         Assume C89 or better; remove K&R cruft.
56087         A few of these changes were first proposed by Derek Robert Price
56088         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
56089
56090         * lib/addext.c: Include <string.h> unconditionally.
56091         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
56092         Don't declare getenv or malloc.
56093
56094         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
56095         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
56096         (NULL): Remove.
56097         (find_stack_direction, alloca): Use prototypes.
56098
56099         * lib/atexit.c (atexit): Define using a prototype.
56100
56101         * lib/basename.c, dirname.c, stripslash.c:
56102         Include <string.h> unconditionally.
56103
56104         * lib/bcopy.c: Include <stddef.h>.
56105         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
56106
56107         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
56108
56109         * lib/error.h (error, error_at_line, error_print_progname)
56110         [! (defined (__STDC__) && __STDC__)]: Remove decls.
56111         * lib/error.c: Include error.h first, to check interface.
56112         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56113         (VA_START): Remove; all uses changeed to va_start.
56114         (exit, strerror): Remove decls.
56115         (error_print_progname): Prototype uncondionally.
56116         Don't include <errno.h>; no longer needed.
56117         (private_strerror): Remove.
56118         (error_tail): Always define.
56119         (error, error_at_line): Assume C89 or better; always use prototypes.
56120         * lib/fatal.c: Include "fatal.h" first, to test interface.
56121         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
56122         (VA_START): Remove; all uses changed to va_start.
56123         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
56124         this case.
56125         (exit): Remove decl.
56126         (fatal): Prototype unconditionally.  Assume va_start works.
56127         Abort at end, to pacify gcc.
56128
56129         * lib/euidaccess.c (main): Define with a prototype.
56130
56131         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
56132
56133         * lib/exitfail.c: Include <stdlib.h> unconditionally.
56134
56135         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
56136         prototypes.
56137         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
56138         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
56139         (getenv): Remove decl.
56140         (fnmatch): Define using a prototype.
56141         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
56142         (FCT): Define using a prototype.
56143
56144         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
56145
56146         * lib/gethostname.c: Include <stddef.h>.
56147         (gethostname): Define with prototype.  Length is size_t, not int.
56148
56149 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56150
56151         Assume C89 or better; remove K&R cruft.
56152         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
56153         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
56154         string.h, getenv, malloc.
56155         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
56156         headers.
56157         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
56158         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
56159         do not check for strerror.
56160         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
56161         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
56162         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
56163         do not check for doprnt or vprintf.
56164         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
56165         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
56166
56167 2003-09-08  Paul Eggert  <eggert@twinsun.com>
56168
56169         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
56170         getversion.c should have been removed then, but was accidentally
56171         preserved.
56172
56173         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
56174         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
56175
56176 2003-09-08  Karl Berry  <karl@gnu.org>
56177
56178         * config/config.sub, config.guess, srclistvars.sh: update from savannah
56179                 config, forget about prep.
56180
56181         * config/depcomp, missing: update from automake.
56182
56183 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56184
56185         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
56186         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56187
56188 2003-09-07  Paul Eggert  <eggert@twinsun.com>
56189
56190         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
56191         copy_tm_result.  Bug reported by Simon Josefsson in
56192         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
56193
56194 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56195
56196         * m4/time_r.m4: New file.
56197         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
56198         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
56199         is. Check for timegm declaration.
56200         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
56201         Do not check for gmtime_r.
56202         Replace mktime if __mktime_internal does not exist and if mktime
56203         hasn't been replaced already.
56204
56205 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56206
56207         * lib/time_r.c, lib/time_r.h: New files.
56208
56209         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
56210         __localtime_r.
56211         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
56212         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
56213
56214         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
56215         __gmtime_r.
56216         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
56217         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
56218         Include <time_r.h>.
56219
56220         * lib/timegm.c: Switch to glibc implementation, with the following
56221         changes:
56222         [defined HAVE_CONFIG_H]: Include <config.h>.
56223         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
56224         (__mktime_internal) [!defined _LIBC]: New decl.
56225         (__gmtime_r) [!defined _LIBC]: New macro and function.
56226         (timegm): Use a prototype, since gnulib assumes C89.
56227         Do not bother declaring tmp to be const, as it's not really usefu.
56228         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
56229         (timegm): Declare only if HAVE_DECL_TIMEGM.
56230
56231 2003-09-06  Paul Eggert  <eggert@twinsun.com>
56232
56233         * MODULES.html.sh (func_all_modules): Add time_r.
56234         * modules/time_r: New file.
56235         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
56236         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
56237
56238 2003-09-03  Paul Eggert  <eggert@twinsun.com>
56239
56240         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
56241         Bug reported by Lute Kamstra in
56242         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
56243
56244         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
56245         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
56246         course with correspondingly smaller numbers for tomorrow and
56247         yesterday.  From Tadayoshi Funaba.  Originally installed into
56248         sh-utils on 1999-08-07, but the patch got lost (I guess during the
56249         coreutils merge?).
56250
56251 2003-08-31  Simon Josefsson  <jas@extundo.com>
56252
56253         * modules/timegm: New file.
56254         * MODULES.html.sh (func_all_modules): Add timegm.
56255
56256 2003-08-31  Simon Josefsson  <jas@extundo.com>
56257
56258         * m4/timegm.m4: New file.
56259
56260 2003-08-31  Simon Josefsson  <jas@extundo.com>
56261
56262         * lib/timegm.h: New file.
56263         * lib/timegm.c: New file.  Based on
56264         wget-1.8.2/src/http.c:mktime_from_utc.
56265
56266 2003-08-31  Karl Berry  <karl@gnu.org>
56267
56268         * lib/argp.h: update from libc.
56269
56270 2003-08-28  Bruno Haible  <bruno@clisp.org>
56271
56272         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
56273         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
56274         followed by '#define fnmatch fnmatch_posix' gives an error.
56275
56276 2003-08-28  Bruno Haible  <bruno@clisp.org>
56277
56278         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
56279         warning on QNX, which defines O_BINARY to 000000.
56280
56281 2003-08-27  Jim Meyering  <jim@meyering.net>
56282
56283         * m4/mkstemp.m4: Require that the system mkstemp be able to create
56284         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
56285         would fail after 32.  Reported by Danny Levinson.  Details here:
56286         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
56287
56288 2003-08-24  Bruno Haible  <bruno@clisp.org>
56289
56290         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
56291         MSVC7 <stdio.h> is included later.
56292
56293 2003-08-22  Simon Josefsson  <jas@extundo.com>
56294
56295         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
56296
56297 2003-08-20  Karl Berry  <karl@gnu.org>
56298
56299         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
56300
56301 2003-08-20  Bruno Haible  <bruno@clisp.org>
56302
56303         * modules/progname: New file.
56304         * MODULES.html.sh (func_all_modules): Add progname.
56305
56306 2003-08-20  Bruno Haible  <bruno@clisp.org>
56307
56308         * lib/progname.h: New file, from GNU gettext.
56309         * lib/progname.c: New file, from GNU gettext.
56310         * lib/progreloc.c: New file, from GNU gettext.
56311
56312 2003-08-19  Jim Meyering  <jim@meyering.net>
56313
56314         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
56315         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
56316
56317 2003-08-19  Bruno Haible  <bruno@clisp.org>
56318
56319         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
56320         more.
56321
56322 2003-08-19  Bruno Haible  <bruno@clisp.org>
56323
56324         * lib/xstrdup.c: Assume <string.h> exists.
56325
56326 2003-08-18  Paul Eggert  <eggert@twinsun.com>
56327
56328         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
56329         in makefile rules.
56330
56331 2003-08-18  Jim Meyering  <jim@meyering.net>
56332
56333         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
56334         * m4/lib-ld.m4: Likewise.
56335
56336 2003-08-18  Jim Meyering  <jim@meyering.net>
56337
56338         * lib/setenv.h: Indent nested cpp directive.
56339         * lib/vasnprintf.c: Remove trailing blanks.
56340
56341 2003-08-17  Simon Josefsson  <jas@extundo.com>
56342
56343         * modules/xstrndup: New file.
56344         * MODULES.html.sh (func_all_modules): Add xstrndup.
56345
56346 2003-08-17  Simon Josefsson  <jas@extundo.com>
56347
56348         * modules/argp: Fix autoconf macro name. Add more dependencies.
56349
56350 2003-08-17  Simon Josefsson  <jas@extundo.com>
56351
56352         * m4/xstrndup.m4: New file.
56353
56354 2003-08-17  Simon Josefsson  <jas@extundo.com>
56355
56356         * m4/argp.m4: New file.
56357
56358 2003-08-17  Simon Josefsson  <jas@extundo.com>
56359             Bruno Haible  <bruno@clisp.org>
56360
56361         * lib/xstrndup.h: New file.
56362         * lib/xstrndup.c: New file.
56363
56364 2003-08-17  Bruno Haible  <bruno@clisp.org>
56365
56366         * modules/strndup (Files, Include): Add lib/strndup.h.
56367
56368 2003-08-17  Bruno Haible  <bruno@clisp.org>
56369
56370         * modules/euidaccess (Files): Add lib/euidaccess.h.
56371
56372 2003-08-17  Bruno Haible  <bruno@clisp.org>
56373
56374         * lib/strndup.h: New file.
56375
56376 2003-08-17  Bruno Haible  <bruno@clisp.org>
56377
56378         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
56379         like AC_GNU_SOURCE.
56380         * modules/extensions (configure.ac): Comment out the invocation of
56381         gl_USE_SYSTEM_EXTENSIONS.
56382
56383 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56384
56385         Merges from coreutils, etc.
56386         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
56387         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
56388         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
56389         fixing a typo.
56390         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
56391         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
56392
56393 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56394
56395         Document merge from coreutils.
56396         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
56397         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
56398         * modules/utime: Add m4/utimes-null.m4.
56399
56400 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56401
56402         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
56403         space, undoing this 2003-08-12 change:
56404         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56405
56406 2003-08-16  Paul Eggert  <eggert@twinsun.com>
56407
56408         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
56409         strtoul.c from libc, undoing this 2003-08-12 change:
56410         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
56411
56412 2003-08-16  Jim Meyering  <jim@meyering.net>
56413
56414         Merges from coreutils.
56415         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
56416         prefix.  Adjust cache variables similarly.  Create 500 rather than
56417         just 300 files, to exercise bug on Darwin6.5, too.
56418         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
56419         $missing_dir.
56420         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
56421         AM_SYS_POSIX_TERMIOS.
56422         Reported by mkc@mathdogs.com.
56423         Also change use of $am_cv_sys_posix_termios
56424         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
56425         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
56426         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
56427         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
56428         in /proc/mounts until it finds one with matching device number.  This
56429         is unnecessary when the FILE argument *is* a mount point.  No stat call
56430         is necessary in that case.  So, disable the statvfs-testing code on
56431         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
56432         as RedHat bug# 84846.
56433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56434         to 1MB, so as not to render systems with no stack size limit (e.g.,
56435         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56436         Include <unistd.h>.  On some systems,
56437         it is required for the definition of _SC_PAGESIZE.
56438
56439 2003-08-16  Jim Meyering  <jim@meyering.net>
56440
56441         Merge from coreutils.
56442         * lib/xstrtoimax.c: #else #if -> #elif.
56443         * lib/xstrtoumax.c: Likewise.
56444
56445 2003-08-16  Jim Meyering  <jim@meyering.net>
56446
56447         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56448         * m4/utimes.m4: Removed.
56449         * m4/utimes-null.m4: Renamed from utimes.m4.
56450
56451         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56452         to 1MB, so as not to render systems with no stack size limit (e.g.,
56453         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
56454         Include <unistd.h>.  On some systems,
56455         it is required for the definition of _SC_PAGESIZE.
56456
56457 2003-08-16  Jim Meyering  <jim@meyering.net>
56458         and Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         Merges from coreutils, etc.
56461
56462         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56463         using the latest version from cvs.  This avoids problems with #line
56464         directives using a vendor (Sun) compiler.
56465         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56466         Don't set GETGROUPS_LIB here; now it's
56467         done via getgroups.m4's wrapper function.
56468         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56469         rather than just in sh-util/configure.in, so that the
56470         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56471         same.
56472         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56473         AC_FUNC_GETLOADAVG where to find getloadavg.c.
56474         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56475         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56476         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56477         Remove code that is now done by the newly-required macros.
56478         Append $(EXEEXT) to DF_PROG.
56479         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56480         Do not invoke or require the following here,
56481         since prereq.m4 or some gnulib .m4 now does this for us:
56482         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56483         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56484         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56485         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56486         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56487         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56488         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56489         AC_FUNC_OBSTACK.
56490         Do not replace the following functions, as this is now the job
56491         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56492         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56493         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56494         atexit getpass, strdup, getpagesize.
56495         Replace 'raise'.
56496         Do not check for the following functions, as this is now the job
56497         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56498         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
56499         setregid.
56500         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56501         Check for sys/sysctl.h.
56502         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56503         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
56504         of checking for ssize_t ourselves.
56505
56506         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56507         Require every macro that gnulib/modules/* suggests for us.
56508         (jm_PREREQ_ADDEXT): New macro.
56509         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56510         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56511
56512         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56513         (gl_PHYSMEM): Use it.
56514         Also check for `table' function.
56515         Check for new headers and functions.
56516         Add check for sys/sysmp.h.
56517         With suggestions from Kaveh Ghazi.
56518         Ignore headers that are present but cannot be compiled.  This
56519         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56520         C 5.4.
56521
56522 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56523
56524         Document merge from coreutils.
56525         * modules/userspec: Depend on posixver.
56526         * modules/strftime: Depend on tzset.
56527
56528 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56529
56530         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56531         rather than tab, after '#' in shell-script copyright notices.
56532         Suggested by Bruno Haible.
56533
56534 2003-08-15  Paul Eggert  <eggert@twinsun.com>
56535
56536         * config/srclist-update: Use three spaces, rather than tab, after '#'
56537         in shell-script copyright notices.  Suggested by Bruno Haible.
56538         Remove unnecessary parenthesization in regular expression.
56539
56540 2003-08-15  Jim Meyering  <jim@meyering.net>
56541
56542         Merge from coreutils.
56543         * lib/xgethostname.c: Include <stdlib.h>.
56544         (xghostname): Don't exit for anything other than memory-related
56545         failure; just return NULL.
56546         * lib/userspec.c: Include "posixver.h".
56547         (parse_user_spec): Accept `.' as a separator only
56548         in pre-POSIX-200112 mode.
56549         * lib/strtoimax.c: Use #elif rather than #else #if.
56550         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56551         Remove function, now that we can rely on a working tzset function.
56552         [!_LIBC]: Ensure that the required autoconf test has been run.
56553         [!defined _NL_CURRENT && HAVE_STRFTIME]:
56554         Use underlying_strftime for %r.
56555         * lib/sha.c: Merge in some clean-up and optimization changes from
56556         glibc.
56557         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56558         Ensure that it is a multiple of 64.
56559         Rearrange loop exit tests so as to avoid performing an
56560         additional fread after encountering an error or EOF.
56561         * lib/realloc.c: Update copyright date.
56562
56563 2003-08-15  Jim Meyering  <jim@meyering.net>
56564         and Paul Eggert  <eggert@twinsun.com>
56565
56566         Merge from coreutils.
56567         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56568         member but strut utmpx does not.  Needed for AIX 4.3.3.
56569         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56570
56571 2003-08-15  Jim Meyering  <jim@meyering.net>
56572         and Paul Eggert  <eggert@cs.ucla.edu>
56573
56574         Merges from coreutils, etc.
56575         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56576         Require gl_FUNC_TZSET_CLOBBER.
56577         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56578         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56579         members.
56580
56581 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56582
56583         Help the merge from coreutils.
56584         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56585         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56586         * m4/tzset.m4: Use it too.
56587
56588 2003-08-14  Paul Eggert  <eggert@twinsun.com>
56589
56590         * modules/tzset: New file.
56591
56592 2003-08-14  Jim Meyering  <jim@meyering.net>
56593
56594         Merges from coreutils.
56595         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56596         variable names, rather than @FNMATCH_H@.
56597         * modules/alloca: Likewise for $(ALLOCA_H).
56598
56599         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56600         the three copies of the literal target, `fnmatch.h'.
56601         * modules/alloca (alloca.h): Likewise.
56602
56603 2003-08-14  Jim Meyering  <jim@meyering.net>
56604
56605         Merge from coreutils.
56606         * m4/tzset.m4: New file.
56607         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56608         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56609         otherwise, AIX 5.1 systems would end up using the latter.
56610         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56611         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
56612         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56613         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
56614
56615 2003-08-14  Jim Meyering  <jim@meyering.net>
56616
56617         Merge from coreutils.
56618         * lib/obstack.h: Whitespace changes.
56619         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56620         and xcalloc return values.
56621         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56622         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
56623         hang on OSF/1 5.1 for DIR on both local and remote file systems.
56624         Reported by (and fix confirmed by) Nelson H. F. Beebe.
56625         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56626         error from mntctl.
56627         Use mntctl's return value to drive the entry-processing loop, since
56628         we can't rely on the value of the vmt_length member in the last
56629         entry.  On some systems doing so could result in exhausting
56630         virtual memory.  Based in part on a patch from Mike Jetzer.
56631
56632 2003-08-14  Jim Meyering  <jim@meyering.net>
56633         and Paul Eggert  <eggert@twinsun.com>
56634
56635         Merges from coreutils, plus other fixes.
56636         * lib/physmem.c: Merge in portability changes from gcc/libiberty
56637         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
56638         for credits and details.  Thanks to Kaveh Ghazi for helping
56639         to keep these files in sync.
56640         (ARRAY_SIZE): Define it.
56641         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56642         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56643         (memcasecmp): Don't assume size_t fits in unsigned int.
56644         Remove casts and duplicate code.
56645         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56646         (memcpy): Remove definition.
56647         Merge in some clean-up and optimization changes from glibc.
56648         [BLOCKSIZE]: Move definition to top of file.
56649         Ensure that it is a multiple of 64.
56650         Rearrange loop exit tests so as to avoid performing an
56651         additional fread after encountering an error or EOF.
56652         * lib/md5.h (md5_uintptr): Define.
56653         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56654         return to the initial working directory.  Preserve errno
56655         for caller.
56656         * lib/idcache.c: Include "xalloc.h".
56657         (xmalloc, xrealloc): Remove decls.
56658         (getuser): Remove casts no longer required in C89.
56659         * lib/human.c: Include stdio.h, for sprintf.
56660         * lib/group-member.c: Include "xalloc.h".
56661         (xmalloc, xrealloc): Remove decls.
56662         (get_group_info): Remove casts no longer required in C89.
56663         * lib/getusershell.c (readname): Remove casts no longer required in
56664         C89.
56665         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56666         * lib/getline.c: Whitespace fix, from coreutils.
56667
56668 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56669
56670         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56671         Check for isascii.
56672
56673         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56674         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56675         Undo previous (whitespace-only) change.
56676
56677 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56678
56679         * lib/exclude.c: Include <ctype.h>
56680         (IN_CTYPE_DOMAIN): New macro.
56681         (is_space): New fn.
56682         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56683         and empty lines.
56684
56685         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56686         Undo previous (whitespace-only) change.
56687
56688 2003-08-13  Paul Eggert  <eggert@twinsun.com>
56689
56690         * config/srclist-update: Change update back to the old behavior,
56691         leaving whitespace alone.  Use one 'sed' command rather than a
56692         pipeline.
56693         (fixlicense): Now a variable, not a function.
56694         (remove_trailing_blanks): Remove.
56695         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56696         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56697         Undo previous (whitespace-only) change.
56698
56699 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56700
56701         Merge from coreutils.
56702         * modules/euidaccess: Add lib_SOURCES, include for new
56703         file euidaccess.h
56704
56705 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56706
56707         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56708         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56709         Normalize leading white space and remove trailing white space.
56710
56711         Merge from coreutils
56712         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56713
56714         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56715         0.12.1.  These files are now being upgraded automatically by
56716         ../config/srclist-update.
56717
56718 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56719
56720         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56721         Normalize leading white space and remove trailing white space.
56722         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56723         notice, as per ../config/srclist-update.
56724
56725         Merge from coreutils.
56726         * lib/euidaccess.h: New file.
56727         * lib/euidaccess.c: Include it.
56728         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56729         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
56730         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56731
56732 2003-08-12  Paul Eggert  <eggert@twinsun.com>
56733
56734         * config/srclist-update: Add copyright notice.
56735         (remove_id_lines, remove_trailing_blanks): New constants.
56736         (fixfile): Use them to normalize spacing a bit in copied files.
56737         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56738         Normalize leading white space and remove trailing white space.
56739
56740         * config/texinfo.tex: Sync with texinfo.
56741
56742         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56743         strtoul.c from libc, to merge coreutils whitespace changes.
56744
56745         * config/srclist.txt: Get the following m4 files from gettext:
56746         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56747         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56748         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56749         wint_t.m4.
56750
56751 2003-08-12  Karl Berry  <karl@gnu.org>
56752
56753         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56754         been made.
56755
56756 2003-08-11  Paul Eggert  <eggert@twinsun.com>
56757
56758         * modules/gnu-source, m4/gnu-source.m4:
56759         Remove; we're assuming Autoconf 2.54 or later now.
56760         Suggested by Bruno Haible.
56761         * MODULES.html.sh (func_all_modules): Remove gnu-source.
56762
56763 2003-08-11  Bruno Haible  <bruno@clisp.org>
56764
56765         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56766
56767 2003-08-11  Bruno Haible  <bruno@clisp.org>
56768
56769         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56770         (vasnprintf): Use it instead of wcslen.
56771
56772 2003-08-11  Bruno Haible  <bruno@clisp.org>
56773
56774         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56775         value to ensure that _Bool promotes to int. Use #define for _Bool when
56776         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56777
56778 2003-08-10  Karl Berry  <karl@gnu.org>
56779
56780         * lib/regex.h: update from libc (whitespace fix).
56781
56782 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56783
56784         Merge some files from coreutils.  These changes were
56785         originally made by Jim Meyering.
56786         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56787         many older Unixes require this.
56788         * lib/alloca.c (alloca): Remove cast to argument of free;
56789         no longer needed in C89.
56790         * lib/alloca_.h, regex.h: Fix white space to match
56791         what GNU indent does.
56792
56793 2003-08-09  Paul Eggert  <eggert@twinsun.com>
56794
56795         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56796         apparently Emacs's Unicode mode got confused before my 2003-08-05
56797         checkin.
56798
56799 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56800
56801         * m4/extensions.m4: New file.
56802         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56803         Require gl_USE_SYSTEM_EXTENSIONS.
56804         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56805         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56806
56807 2003-08-08  Paul Eggert  <eggert@twinsun.com>
56808
56809         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56810         * modules/extensions, modules/gnu-source: New files.
56811         * modules/timespec, modules/unlocked-io: Depend on extensions.
56812
56813 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56814
56815         * modules/restrict: New file.
56816         * MODULES.html.sh (func_all_modules): Add restrict.
56817         * modules/regex: Depend on restrict.
56818
56819 2003-08-07  Paul Eggert  <eggert@twinsun.com>
56820
56821         * m4/restrict.m4: New file.
56822         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56823
56824 2003-08-07  Bruno Haible  <bruno@clisp.org>
56825
56826         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56827         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56828
56829 2003-08-07  Bruno Haible  <bruno@clisp.org>
56830
56831         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56832         makes the module 'getndelim2' compatible with the module 'getline'.
56833
56834 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56835
56836         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56837         byte with "\201" to avoid glitches when editing that source file
56838         with multi-gnome-terminal.
56839
56840 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56841
56842         * lib/bumpalloc.h: Remove.
56843
56844 2003-08-05  Paul Eggert  <eggert@twinsun.com>
56845
56846         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56847         * modules/bumpalloc: Remove.
56848
56849 2003-08-04  Paul Eggert  <eggert@twinsun.com>
56850
56851         * lib/getloadavg.c: Change copyright notice and spacing to conform to
56852         GNU coding style.
56853
56854         Merge from coreutils.
56855         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56856         1. From glibc.
56857         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56858         from Karl Berry, implemented by Jim Meyering.
56859         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56860         from Dmitry V. Levin.
56861         Remove anachronistic cast of xrealloc.
56862         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
56863         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56864         type. Otherwise, it wouldn't compile with at least /bin/cc on
56865         ymp-cray-unicos9.0.2.X.
56866         Combine two mostly-identical uses of alloca into one.
56867         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56868
56869 2003-08-04  Dave Love  <d.love@dl.ac.uk>
56870
56871         [From Emacs.]
56872
56873         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
56874         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
56875         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56876         obsolete NLIST_NAME_UNION.
56877         [__GNU__]: Undef BSD and FSCALE.
56878         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56879
56880 2003-08-03  Paul Eggert  <eggert@twinsun.com>
56881
56882         * lib/stdbool_.h (_Bool): Make it signed char, instead of
56883         an enum type, so that it's guaranteed to promote to int.  See:
56884         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56885
56886 2003-08-03  Karl Berry  <karl@gnu.org>
56887
56888         * config/depcomp: update from automake.
56889
56890 2003-07-31  Paul Eggert  <eggert@twinsun.com>
56891
56892         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
56893         (strerror): Don't assume that a printable int fits in 14 bytes.
56894
56895 2003-07-31  Bruno Haible  <bruno@clisp.org>
56896
56897         * modules/getpass-gnu: New file.
56898         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56899
56900 2003-07-31  Bruno Haible  <bruno@clisp.org>
56901
56902         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56903
56904 2003-07-24  Karl Berry  <karl@gnu.org>
56905
56906         * config/missing: update from automake.
56907
56908 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
56909             Bruno Haible  <bruno@clisp.org>
56910
56911         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56912         * lib/getline.c (getline, getdelim): Likewise.
56913         Remove _GNU_SOURCE define; now it's defined in config.h through
56914         m4/getline.m4.
56915
56916 2003-07-23  Karl Berry  <karl@gnu.org>
56917
56918         * config/config.sub: update from prep.
56919
56920 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56921
56922         * modules/xalloc (Depends-on): Add exitfail.
56923         * modules/xmemcoll: Likewise.
56924
56925 2003-07-22  Paul Eggert  <eggert@twinsun.com>
56926
56927         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56928         over-parenthesization in macros.
56929
56930         Sync with coreutils.
56931
56932         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56933         required by C99.
56934
56935         Use `exit_failure' for xalloc and xmemcoll instead of their own
56936         private exit-failure variables.
56937         * lib/xalloc.h (xalloc_exit_failure): Remove.
56938         * lib/xmalloc.c: Likewise.  Include exitfail.h.
56939         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56940         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56941         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
56942         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56943
56944 2003-07-20  Jim Meyering  <jim@meyering.net>
56945
56946         * modules/closeout (Depends-on): Add exitfail.
56947         Suggestion from Bruno Haible.
56948
56949 2003-07-19  Karl Berry  <karl@gnu.org>
56950
56951         * config/config.sub: update from prep.
56952
56953 2003-07-18  Paul Eggert  <eggert@twinsun.com>
56954
56955         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56956         Remove.
56957         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
56958         to test that it can stand by itself.  Include "exitfail.h".
56959         Clients should set exit_failure instead.
56960         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
56961
56962 2003-07-18  Bruno Haible  <bruno@clisp.org>
56963
56964         * modules/getndelim2: New file.
56965         * modules/getline: Share files with module getndelim2.
56966         * modules/getnline: Depend on getndelim2 instead of sharing files with
56967         it. Add getnline.c to lib_SOURCES.
56968         * MODULES.html.sh (func_all_modules): Add getndelim2.
56969
56970 2003-07-18  Bruno Haible  <bruno@clisp.org>
56971
56972         * m4/getndelim2.m4: New file.
56973         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56974         invoke gl_PREREQ_GETNDELIM2.
56975         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56976         gl_PREREQ_GETNDELIM2.
56977         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56978         gl_GETNDELIM2.
56979
56980 2003-07-18  Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/getndelim2.h: New file.
56983         * lib/getndelim2.c: Make into a module of its own. Include config.h,
56984         getndelim2.h.
56985         (getndelim2): Make non-static. Change return type to ssize_t.
56986         * lib/getline.h: Change argument names.
56987         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56988         * lib/getnline.c: Include getndelim2.h.
56989
56990 2003-07-18  Andreas Schwab  <schwab@suse.de>
56991
56992         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56993
56994 2003-07-17  Karl Berry  <karl@gnu.org>
56995
56996         * config/config.sub: update from prep.
56997
56998 2003-07-17  Bruno Haible  <bruno@clisp.org>
56999
57000         * modules/getnline: New file.
57001         * modules/getline: Add lib/getndelim2.c to source file list.
57002         * MODULES.html.sh (func_all_modules): Add getnline.
57003
57004 2003-07-17  Bruno Haible  <bruno@clisp.org>
57005
57006         * m4/getnline.m4: New file.
57007
57008 2003-07-17  Bruno Haible  <bruno@clisp.org>
57009
57010         * m4/Makefile.am.in: Remove file.
57011         * m4/Makefile.am: Remove file.
57012         * m4/Makefile.in: Remove file.
57013
57014 2003-07-17  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/getnline.h: New file.
57017         * lib/getnline.c: New file.
57018         * lib/getndelim2.c: New file, extracted from getline.c.
57019         (getndelim2): Renamed from getdelim2, with added nmax argument.
57020         * lib/getline.c: Include getndelim2.c.
57021         (getdelim2): Moved out to getndelim2.c.
57022         (getline, getdelim): Update.
57023
57024 2003-07-17  Bruno Haible  <bruno@clisp.org>
57025
57026         * lib/Makefile.am: Remove file.
57027         * lib/Makefile.in: Remove file.
57028
57029 2003-07-17  Bruno Haible  <bruno@clisp.org>
57030
57031         * configure.in: Remove file.
57032         * Makefile.in: Remove file.
57033
57034 2003-07-17  Bruno Haible  <bruno@clisp.org>
57035
57036         * MODULES.html.sh: Put the </BODY> right before </HTML>.
57037
57038 2003-07-16  Karl Berry  <karl@gnu.org>
57039
57040         * config/srclist-update: was running fixlicense twice, which caused
57041                 texinfo.tex to be nullified for some reason.  Simplify,
57042                 $gplsrc is no longer needed as far as I can see?
57043
57044 2003-07-16  Jim Meyering  <jim@meyering.net>
57045
57046         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
57047
57048 2003-07-15  Paul Eggert  <eggert@twinsun.com>
57049
57050         * config/srclist.txt: Get the following files from gettext-runtime/intl
57051         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
57052         ref-del.sin.  From Bruno Haible.
57053         * config/srclist-update (fixfile): Change grep pattern again, since the
57054         previous fix didn't work (there was another trailing $).  Use
57055         '[$]' to escape the $s.
57056
57057 2003-07-15  Karl Berry  <karl@gnu.org>
57058
57059         * lib/vasnprintf.c: update from gettext.
57060
57061 2003-07-15  Karl Berry  <karl@gnu.org>
57062
57063         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
57064         gets expanded when surrounded by '$'.
57065
57066 2003-07-15  Jim Meyering  <jim@meyering.net>
57067
57068         * modules/save-cwd: Don't depend on error.  From Derek Price.
57069
57070 2003-07-15  Jim Meyering  <jim@meyering.net>
57071
57072         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
57073
57074 2003-07-14  Simon Josefsson  <jas@extundo.com>
57075
57076         * modules/mempcpy: New file.
57077         * MODULES.html.sh (func_all_modules): Add mempcpy.
57078
57079 2003-07-14  Simon Josefsson  <jas@extundo.com>
57080
57081         * m4/mempcpy.m4: New file.
57082
57083 2003-07-14  Simon Josefsson  <jas@extundo.com>
57084
57085         * lib/mempcpy.h: New file.
57086         * lib/mempcpy.c: New file.
57087
57088 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57089
57090         * modules/getdate, modules/posixtm: Depend on mktime.
57091
57092 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57093
57094         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
57095         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
57096         unicodeio.c, unicodeio.h, unlocked-io.h:
57097         Switch from LGPL to GPL.
57098
57099 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57100
57101         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
57102         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
57103         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
57104         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
57105         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
57106         updated automatically by ../config/srclist-update.  This changes
57107         their license from LPGL to GPL.
57108
57109 2003-07-14  Paul Eggert  <eggert@twinsun.com>
57110
57111         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
57112         assumed to refer to the root of the most recent stable gettext version.
57113         * config/srclistvars.sh: Add defaults for eggert.
57114         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
57115         Match "This program" as well as "The program".  This is needed
57116         for gettext.
57117
57118 2003-07-14  Jim Meyering  <jim@meyering.net>
57119
57120         Don't emit diagnostics.  Let callers do that.
57121         * lib/save-cwd.c: Don't include "error.h".
57122         (save_cwd): Don't call error.  Ensure that errno is valid
57123         when returning nonzero.
57124
57125         * lib/save-cwd.h (restore_cwd): Update prototype.
57126         * lib/save-cwd.c (restore_cwd): Remove two parameters.
57127         Simplify.  Don't call error upon failure.  Let callers do that.
57128         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
57129         when auditing is enabled.  But don't bother updating the #if.
57130
57131 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
57132
57133         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
57134         it breaks C++ compilation.
57135         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
57136
57137 2003-07-10  Simon Josefsson  <jas@extundo.com>
57138
57139         * modules/strchrnul (Makefile.am): Add strchrnul.h.
57140
57141 2003-07-10  Jim Meyering  <jim@meyering.net>
57142
57143         * m4/clock_time.m4: Remove trailing blank.
57144         * m4/intmax_t.m4: Likewise.
57145
57146 2003-07-10  Jim Meyering  <jim@meyering.net>
57147
57148         * lib/vasnprintf.c: Remove trailing blanks.
57149         Make cpp indentation consistent.
57150
57151 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57152
57153         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
57154         posixver.c, strftime.c, strnlen.c, strverscmp.c:
57155         Switch from LGPL to GPL.
57156
57157 2003-07-09  Paul Eggert  <eggert@twinsun.com>
57158
57159         * config/srclist.txt: Sort sublists.  Add
57160         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
57161         that differ from gnulib for one reason or another; we'd like this list
57162         to be smaller but for now let's document what we have.
57163
57164 2003-07-08  Paul Eggert  <eggert@twinsun.com>
57165
57166         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
57167         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
57168         and sweeter "eval x=$x".
57169         * config/srclist.txt: Get lib/argp* from glibc.
57170
57171 2003-07-07  Paul Eggert  <eggert@twinsun.com>
57172
57173         * lib/mktime.c: Fix some boundary cases and remove need for floating
57174         point.
57175
57176         Issue a compile-time diagnostic if time_t is floating point, or if
57177         two's complement arithmetic is not in effect, or if arithmetic
57178         right shift does not propagate the sign.  These assumptions were
57179         all in the original code but they weren't checked.
57180
57181         (TIME_T_MIDPOINT, verify): New macros.
57182         (__isleap): Remove; it has integer overflow problems.
57183         (leapyear): New function, without those problems.
57184         (ydhms_tm_diff): Remove; splitting into two parts.
57185         (ydhms_diff): New function, containing the arithmetic part of
57186         the old ydhms_tm_diff function.  Issue a compile-time
57187         diagnostic if we are not using C99 integer division.
57188         Avoid casts when possible.
57189         (guess_time_tm): New function, containing the checking part of
57190         the old ydhms_tm_diff function.  Return the new value, rather than
57191         the difference between it and the old.  Accept a new argument T
57192         so that *T specifies the old value.  Check for overflow in the result.
57193
57194         (__mktime_internal): Use a time_t offset, not a long int offset.
57195         This undoes the 2003-06-04 change, which is no longer needed now
57196         that we have better overflow checking.
57197         (localtime_offset): Likewise.
57198
57199         (__mktime_internal): Avoid harmful overflow on hosts where time_t
57200         and long are 64-bit but int is only 32-bit.
57201         (ydhms_diff): Use long int to store year1 and yday1.
57202         Issue a compile-time diagnostic if long int is not wide enough.
57203
57204         (__mktime_internal): Use long int to store adjusted year and yday.
57205         Use plain C rather than preprocessor commands, if that doesn't
57206         affect efficiency.
57207         Check for overflow (and try to repair) after each probe
57208         rather than checking only at the very end.  This avoids some bugs
57209         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
57210         does not equal GMT offset at maximum time).
57211         Use integer to check for overflow rather than floating point; this
57212         is more portable to non-IEEE hosts, and is a tad faster.
57213         When we detect that we are oscillating between two values,
57214         don't check whether tm_isdst has the requested value, since
57215         we already know the answer.  When tm_isdst has the wrong value,
57216         use a different heuristic to find the right one, based on the
57217         extreme values actually observed in practice in tz2003a,
57218         rather than the (overly optimistic) "previous 3 calendar quarters".
57219
57220         (not_equal_tm, print_tm, check_result): Use "const T" rather than
57221         "T const" to accommodate glibc style.
57222         (check_result): Use less-confusing report format.  "long" -> "long int.
57223         (main): Likewise.
57224         Don't loop if the iteration overflows time_t.
57225         Allow a negative step in the iteration.
57226
57227 2003-07-06  Karl Berry  <karl@gnu.org>
57228
57229         * config/depcomp: update from automake.
57230         * config/config.sub: update from prep.
57231
57232 2003-07-03  Karl Berry  <karl@gnu.org>
57233
57234         * config/config.guess: update from prep.
57235
57236 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57237
57238         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
57239         xreadlink.c now includes it unconditionally.
57240
57241 2003-07-01  Paul Eggert  <eggert@twinsun.com>
57242
57243         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
57244         having it depend on HAVE_SYS_TYPES_H.
57245
57246 2003-07-01  Bruno Haible  <bruno@clisp.org>
57247
57248         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
57249         <sys/types.h> should be sufficient.
57250         Reported by Paul Eggert.
57251
57252 2003-06-26  Karl Berry  <karl@gnu.org>
57253
57254         * config/depcomp: update from automake.
57255
57256 2003-06-26  Bruno Haible  <bruno@clisp.org>
57257
57258         * modules/human: Depend on module stdbool.
57259
57260 2003-06-25  Bruno Haible  <bruno@clisp.org>
57261
57262         * modules/readlink: New file.
57263         * modules/xreadlink: Depend on it.
57264         * MODULES.html.sh (func_all_modules): Add readlink.
57265
57266 2003-06-25  Bruno Haible  <bruno@clisp.org>
57267
57268         * m4/readlink.m4: New file.
57269
57270 2003-06-25  Bruno Haible  <bruno@clisp.org>
57271
57272         * lib/readlink.c: New file.
57273
57274 2003-06-22  Karl Berry  <karl@gnu.org>
57275
57276         * config/srclist.txt: update mkinstalldirs from automake.
57277         * config/mkinstalldirs: update.
57278
57279 2003-06-22  Bruno Haible  <bruno@clisp.org>
57280
57281         Portability to mingw32.
57282         * m4/ssize_t.m4: New file, from GNU gettext.
57283         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
57284         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
57285
57286 2003-06-22  Bruno Haible  <bruno@clisp.org>
57287
57288         * modules/safe-read: Add m4/ssize_t.m4.
57289         * modules/xreadlink: Add m4/ssize_t.m4.
57290
57291 2003-06-20  Bruno Haible  <bruno@clisp.org>
57292
57293         Assume C89, so PARAMS isn't needed.
57294         * lib/unicodeio.h (PARAMS): Remove.
57295         * lib/unicodeio.c: Don't use PARAMS.
57296
57297 2003-06-18  Karl Berry  <karl@gnu.org>
57298
57299         * config/config.{guess,sub}: update from prep.
57300
57301 2003-06-18  Jim Meyering  <jim@meyering.net>
57302
57303         Merge changes from coreutils.
57304         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
57305         Remove explicit declarations of xmalloc and realloc.
57306         Include xalloc.h.
57307         (read_utmp): Remove anachronistic cast of xmalloc.
57308
57309 2003-06-17  Paul Eggert  <eggert@twinsun.com>
57310
57311         Assume C89, so PARAMS isn't needed.
57312         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
57313         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
57314         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
57315         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
57316         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
57317         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
57318         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
57319         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
57320         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
57321         lib/xstrtod.h, lib/xstrtol.h: Likewise.
57322         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
57323         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
57324         no longer needed. Anyway, config.h should always be included before any
57325         other file.
57326
57327 2003-06-11  Simon Josefsson  <jas@extundo.com>
57328
57329         * modules/sysexits: New file.
57330         * MODULES.html.sh (func_all_modules): Add sysexits.
57331
57332 2003-06-11  Simon Josefsson  <jas@extundo.com>
57333
57334         * lib/sysexit_.h: New file.
57335
57336 2003-06-11  Derek Price  <derek@ximbiot.com>
57337
57338         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
57339         necessary.
57340
57341 2003-06-11  Bruno Haible  <bruno@clisp.org>
57342
57343         * m4/sysexits.m4: New file.
57344
57345 2003-06-10  Simon Josefsson  <jas@extundo.com>
57346
57347         * lib/argp.h: New file, from glibc.
57348         * lib/argp-ba.c: New file, from glibc.
57349         * lib/argp-eexst.c: New file, from glibc.
57350         * lib/argp-fmtstream.c: New file, from glibc.
57351         * lib/argp-fmtstream.h: New file, from glibc.
57352         * lib/argp-fs-xinl.c: New file, from glibc.
57353         * lib/argp-help.c: New file, from glibc.
57354         * lib/argp-namefrob.h: New file, from glibc.
57355         * lib/argp-parse.c: New file, from glibc.
57356         * lib/argp-pv.c: New file, from glibc.
57357         * lib/argp-pvh.c: New file, from glibc.
57358         * lib/argp-xinl.c: New file, from glibc.
57359
57360 2003-06-10  Simon Josefsson  <jas@extundo.com>
57361
57362         * modules/strchrnul: New file.
57363
57364 2003-06-10  Simon Josefsson  <jas@extundo.com>
57365
57366         * modules/argp: New file.
57367
57368 2003-06-10  Simon Josefsson  <jas@extundo.com>
57369
57370         * m4/strchrnul.m4: New file.
57371
57372 2003-06-10  Simon Josefsson  <jas@extundo.com>
57373
57374         * lib/strchrnul.h: New file.
57375         * lib/strchrnul.c: New file.
57376
57377 2003-06-10  Bruno Haible  <bruno@clisp.org>
57378
57379         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
57380
57381 2003-06-07  Karl Berry  <karl@gnu.org>
57382
57383         * config/config.{guess,sub}: update from prep.
57384
57385 2003-06-07  Jim Meyering  <jim@meyering.net>
57386
57387         * modules/strtod: Use $(...) notation, not @...@ for
57388         AC_REPLACE'd variables.
57389         * modules/localcharset: Likewise.
57390
57391 2003-06-07  Jim Meyering  <jim@meyering.net>
57392
57393         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
57394         in place of my name in the copyright comment.
57395         Remove definition and uses of __P.
57396
57397         From coreutils.
57398         * lib/stat.c: Don't declare xmalloc explicitly.
57399         Instead, include "xalloc.h".
57400         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
57401         xrealloc, and xcalloc return values.
57402         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
57403         Improve comment.
57404         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
57405
57406 2003-06-07  Bruno Haible  <bruno@clisp.org>
57407
57408         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
57409         avoid AC_CONFIG_LINKS.
57410         * modules/fnmatch (Makefile.am): Use explicit creation rule for
57411         fnmatch.h, to avoid AC_CONFIG_LINKS.
57412         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
57413
57414 2003-06-07  Bruno Haible  <bruno@clisp.org>
57415
57416         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
57417         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
57418         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57419         directory.
57420         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
57421         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
57422         directory.
57423
57424 2003-06-06  Jim Meyering  <jim@meyering.net>
57425
57426         Merge from coreutils.
57427         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
57428         Consolidate declarations and initializations of *_base* locals.
57429
57430         Merge from coreutils.
57431         This avoids a core dump on systems without GNU putenv,
57432         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
57433         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
57434         (unsetenv): New static function, from GNU libc.
57435         (rpl_putenv): Use it.
57436
57437         * lib/modechange.c: Remove trailing blanks.
57438
57439         Merge from coreutils.
57440         * lib/fsusage.c: Remove declaration of statfs.
57441         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
57442
57443         * lib/posixtm.c: Include <stdbool.h> unconditionally.
57444
57445 2003-06-06  Jim Meyering  <jim@meyering.net>
57446
57447         * lib/stdbool_.h: Renamed from stdbool.h.in.
57448
57449 2003-06-06  Jim Meyering  <jim@meyering.net>
57450             Bruno Haible  <bruno@clisp.org>
57451
57452         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57453         Adjust Makefile.am snippet not to redirect directly to target.
57454         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57455
57456 2003-06-05  Paul Eggert  <eggert@twinsun.com>
57457
57458         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57459         mismatch, look in future quarters as well as past.  This fixes a
57460         bug when processing fall-backwards gaps immediately after a long
57461         period of daylight-saving time.
57462
57463         * lib/mktime.c: Assume freestanding C89 or better.
57464         (HAVE_LIMITS_H): Remove.  Assume it's 1.
57465         (__P): Remove; not used.
57466         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57467         (mktime, not_equal_tm, print_tm, check_result,
57468         main): Use prototypes.  Use const * where appropriate.
57469         (main): Fix typo in testing code that uncovered by above changes.
57470         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57471
57472 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57473
57474         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
57475         locale.h, localeconv.  This merges changes from coreutils.
57476
57477         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57478         It can be removed after the next Autoconf is released.
57479         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57480         needed.
57481
57482 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57483
57484         * lib/mktime.c: Fix Debian bug 177940
57485         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57486         (localtime_offset): Now long int, not time_t, because we want it
57487         to be guaranteed to be signed.  All uses changed.
57488         (__mktime_internal): If overflow would occur when adding offset,
57489         don't add it.
57490
57491         Merge 'human' changes from coreutils.  Rewrite to support
57492         locale-specific notations like thousands separators.
57493         * lib/human.c: Simplify authorship notice.
57494         Include human.h immediately after config.h.
57495         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57496         <limits.h>: Do not include, since human.h does.
57497         (SIZE_MAX, UINTMAX_MAX): New macros.
57498         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57499         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57500         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57501         (power_letter): Renamed from suffixes.
57502         (generate_suffix_backwards): Remove.
57503         (adjust_value): Now takes int style (because of human.h changes)
57504         and long double value (for greater precision on some platforms).
57505         (group_number): New function.
57506         (human_readable): Use it.  Use integer options, not enum.
57507         Put the options before the sizes in the arg list.
57508         Support all the new options.
57509         The old human_readable function has been removed;
57510         use inttostr.h instead.
57511         (human_readable, default_block_size, humblock):
57512         Use uintmax_t, not int, for block sizes.
57513         (human_readable_inexact, block_size_types): Remove.
57514         (block_size_opts): New constant.
57515         (human_options): Renamed from human_block_size, with new signature
57516         that allows block sizes up to UINTMAX_MAX.  All callers changed.
57517         * lib/human.h: Add copyright and authorship notice.
57518         Include <limits.h> and <stdbool.h> unconditionally.
57519         (PARAMS): Remove.  All uses removed.
57520         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57521         (enum human_inexact_style): Remove tag; now a nameless enum.
57522         (human_floor, human_ceiling, human_round_to_even): Now have
57523         values 2, 0, 1 rather than -1, 1, 0.
57524         (human_group_digits, human_suppress_point_zero, human_autoscale,
57525         human_base_1024, human_SI, human_B): New constants.
57526         (human_readable_inexact, human_block_size): Remove.
57527         (human_readable): Size args are now uintmax_t, not int.
57528         (human_options): New decl.
57529
57530         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57531         unnecessary now that we assume C89 or better.  This change
57532         imported from coreutils.
57533
57534         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57535         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
57536         in the 2003-05-30 sync from glibc.
57537
57538         .h files should stand alone, but we shouldn't include <sys/types.h>
57539         if we can get away with just <stddef.h>.
57540
57541         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57542         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57543         rather than <sys/types.h>, as we merely need size_t.
57544         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57545         to get size_t.
57546         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57547         Include <stdio.h>, to get FILE.
57548         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57549         memcasecmp.h has included <stddef.h> and all we need is size_t.
57550         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57551         our interface, instead of including <sys/types.h>
57552
57553 2003-06-04  Paul Eggert  <eggert@twinsun.com>
57554
57555         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57556         now, as glibc mktime is buggy on non-glibc systems.
57557
57558 2003-06-03  Karl Berry  <karl@gnu.org>
57559
57560         * config/config.sub: update from prep.
57561
57562 2003-06-02  Paul Eggert  <eggert@twinsun.com>
57563
57564         [from coreutils]
57565         Fix some minor time-related bugs with POSIX time arguments.
57566         Some valid time stamps were being rejected (notably -1, and
57567         time stamps before 1900 on 64-bit hosts).  And some invalid
57568         time stamps were being accepted, e.g. September 31.
57569
57570         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57571         that we can return (time_t) -1 successfully.
57572         * lib/posixtm.c: Likewise.
57573         [HAVE_STDBOOL_H]: Include <stdbool.h>.
57574         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57575         (t): Remove static var.
57576         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57577         of static var.  All uses changed.
57578         (year): Do not reject years before 1900; they can occur with
57579         64-bit time_t.
57580         (posix_time_parse): Do not check for out-of-range components;
57581         that is now the caller's responsibility, since our checks were
57582         only approximations.
57583         (posixtime): Use mktime to check for out-of-range components,
57584         since it knows them exactly.
57585         If mktime returns (time_t) -1, check whether an error actually occurred
57586         by invoking localtime on -1.
57587         (main) [TEST_POSIXTIME]: Check for input data errors, and report
57588         posixtime failures better.
57589         Improve the test data (in comments only).
57590
57591 2003-06-02  Karl Berry  <karl@gnu.org>
57592
57593         * config/mkinstalldirs (version): new variable.
57594         (--version): new option.
57595         (usage): improve message.
57596
57597 2003-05-30  Karl Berry  <karl@gnu.org>
57598
57599         * lib/mktime.c: update from libc.
57600
57601 2003-05-30  Bruno Haible  <bruno@clisp.org>
57602
57603         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57604         * config/config.rpath: Upgrade to gettext-0.12.1.
57605
57606 2003-05-30  Bruno Haible  <bruno@clisp.org>
57607
57608         * m4/gettext.m4: Upgrade to gettext-0.12.1.
57609         * m4/nls.m4: New file, from gettext-0.12.1.
57610         * m4/po.m4: New file, from gettext-0.12.1.
57611         * m4/progtest.m4: Upgrade to gettext-0.12.1.
57612
57613 2003-05-30  Bruno Haible  <bruno@clisp.org>
57614
57615         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57616         * lib/localcharset.h: Likewise.
57617         * lib/localcharset.c: Likewise.
57618
57619 2003-05-29  Karl Berry  <karl@gnu.org>
57620
57621         * config/config.rpath: update from gettext.
57622
57623 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57624
57625         Assume the headers required for C89 freestanding compilers.
57626         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57627         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57628         * m4/human.m4 (gl_HUMAN): Likewise.
57629         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57630         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57631         * m4/userspec.m4 (gl_USERSPEC): Likewise.
57632         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57633         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57634         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57635
57636 2003-05-28  Paul Eggert  <eggert@twinsun.com>
57637
57638         Assume the headers required for C89 freestanding compilers.
57639         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57640         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57641         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57642         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57643         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57644         define, since <limits.h> is guaranteed to do that.
57645         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57646         * lib/exclude.c: Include <stdbool.h> unconditionally.
57647         * lib/tempname.c: Include <stddef.h> unconditionally.
57648         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57649         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57650         <stddef.h> does that.
57651         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57652         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57653         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57654         needed.
57655         * lib/xstrtol.c: Likewise.
57656         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57657         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57658
57659         * lib/addext.c (addext): Use assignment rather than cast, to avoid
57660         warnings on some platforms.
57661
57662         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57663         arbitrarily.
57664
57665 2003-05-26  Jim Meyering  <jim@meyering.net>
57666
57667         Merge in a change from coreutils:
57668         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57669         that is guaranteed to be `no'.  Use `no_such_member' to indicate
57670         that condition, rather than `-1' which is slightly misleading.
57671         Change the name of the cache variable to have the gl_ prefix.
57672         Prompted by a patch from Richard Dawe for DJGPP.
57673
57674 2003-05-24  Karl Berry  <karl@gnu.org>
57675
57676         * config/config.guess: update from prep.
57677
57678 2003-05-22  Karl Berry  <karl@gnu.org>
57679
57680         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57681
57682 2003-05-20  Karl Berry  <karl@gnu.org>
57683
57684         * config/config.guess: update from prep.
57685
57686 2003-05-18  Karl Berry  <karl@gnu.org>
57687
57688         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57689         might actually be set by the user.
57690
57691         * config/depcomp, install-sh, mdate-sh: update from automake.
57692
57693 2003-05-17  Bruno Haible  <bruno@clisp.org>
57694
57695         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57696         invalid expansion for AC_EGREP_CPP.
57697         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57698         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57699         Suggested by Akim Demaille <akim@epita.fr> in
57700         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57701
57702 2003-05-12  Jim Meyering  <jim@meyering.net>
57703
57704         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57705         the space-padded-by-default conversion specifiers, %e, %k, %l.
57706
57707 2003-05-12  Bruno Haible  <bruno@clisp.org>
57708
57709         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57710         the string is longer than 4 KB.
57711
57712 2003-05-11  Karl Berry  <karl@gnu.org>
57713
57714         * config/config.{guess,sub}: update from prep.
57715
57716 2003-05-09  Bruno Haible  <bruno@clisp.org>
57717
57718         * modules/error: Add m4/strerror_r.m4 to file list.
57719
57720 2003-05-03  Bruno Haible  <bruno@clisp.org>
57721
57722         Upgrade to Unicode-4.0.
57723         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57724         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57725         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57726         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57727         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57728         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57729         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57730         Change width of U+E0100..U+E01EF from 1 to 0.
57731
57732 2003-04-25  Jim Meyering  <jim@meyering.net>
57733
57734         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57735         of type size_t, not int.
57736
57737 2003-04-25  Bruno Haible  <bruno@clisp.org>
57738
57739         * lib/copy-file.c: Include <stddef.h>, for size_t.
57740
57741 2003-04-21  Paul Eggert  <eggert@twinsun.com>
57742
57743         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57744         code which expansion is under static control.  Patch imported from
57745         Akim Demaille's patch to Bison; see
57746         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57747
57748 2003-04-14  Bruno Haible  <bruno@clisp.org>
57749
57750         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57751
57752 2003-04-11  Jim Meyering  <jim@meyering.net>
57753
57754         Merge changes from Coreutils.
57755
57756         2003-03-22  Jim Meyering  <jim@meyering.net>
57757
57758         * lib/strftime.c (widen): Cast alloca return value to proper type.
57759
57760         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
57761
57762         From GNU libc.
57763         * lib/strftime.c (my_strftime): Handle very large width
57764         specifications for numeric values correctly.  Improve checks for
57765         overflow.
57766
57767         2003-01-19  Jim Meyering  <jim@meyering.net>
57768
57769         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57770         definitions.
57771         (nl_get_alt_digit) [! defined my_strftime]: Define.
57772         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57773         _nl_get_alt_digit and _nl_get_walt_digit.
57774
57775         * lib/strftime.c (my_strftime): Merge in locale-related changes from
57776         libc. These changes have no effect outside of _LIBC.
57777
57778 2003-04-10  Bruno Haible  <bruno@clisp.org>
57779
57780         * modules/findprog: New file.
57781         * MODULES.html.sh (func_all_modules): Add it.
57782
57783 2003-04-10  Bruno Haible  <bruno@clisp.org>
57784
57785         * m4/findprog.m4: New file.
57786         * m4/eaccess.m4: New file.
57787
57788 2003-04-10  Bruno Haible  <bruno@clisp.org>
57789
57790         * lib/findprog.h: New file, from GNU gettext.
57791         * lib/findprog.c: New file, from GNU gettext.
57792
57793 2003-04-05  Jim Meyering  <jim@meyering.net>
57794
57795         Merge changes from Coreutils.
57796
57797         * lib/exclude.h (PARAMS): Remove definition and uses.
57798         * lib/exclude.c: Remove uses of `PARAMS'.
57799
57800         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57801         Add test-cases for DOS filenames. Declare program_name.
57802         (main): Set up program_name.  Patch by Rich Dawe.
57803
57804         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57805         error from mntctl.
57806         Use mntctl's return value to drive the entry-processing loop, since
57807         we can't rely on the value of the vmt_length member in the last
57808         entry.  On some systems doing so could result in exhausting
57809         virtual memory.  Based in part on a patch from Mike Jetzer.
57810
57811 2003-04-04  Bruno Haible  <bruno@clisp.org>
57812
57813         * modules/linebreak: New file.
57814         * MODULES.html.sh (func_all_modules): Add it.
57815
57816 2003-04-04  Bruno Haible  <bruno@clisp.org>
57817
57818         * m4/linebreak.m4: New file.
57819
57820 2003-04-04  Bruno Haible  <bruno@clisp.org>
57821
57822         * lib/linebreak.h: New file, from GNU gettext.
57823         * lib/linebreak.c: New file, from GNU gettext with slight
57824         modifications.
57825         * lib/lbrkprop.h: New file, from GNU gettext.
57826
57827 2003-04-03  Bruno Haible  <bruno@clisp.org>
57828
57829         * modules/utf8-ucs4: New file.
57830         * modules/utf16-ucs4: New file.
57831         * modules/ucs4-utf8: New file.
57832         * modules/ucs4-utf16: New file.
57833         * MODULES.html.sh (func_all_modules): Add them.
57834
57835 2003-04-03  Bruno Haible  <bruno@clisp.org>
57836
57837         * m4/utf-ucs4.m4: New file.
57838         * m4/ucs4-utf.m4: New file.
57839
57840 2003-04-03  Bruno Haible  <bruno@clisp.org>
57841
57842         * lib/utf8-ucs4.h: New file, from GNU gettext.
57843         * lib/utf16-ucs4.h: New file, from GNU gettext.
57844         * lib/ucs4-utf8.h: New file, from GNU gettext.
57845         * lib/ucs4-utf16.h: New file, from GNU gettext.
57846
57847 2003-04-02  Bruno Haible  <bruno@clisp.org>
57848
57849         * modules/binary-io: New file.
57850         * MODULES.html.sh (func_all_modules): Add it.
57851
57852 2003-04-02  Bruno Haible  <bruno@clisp.org>
57853
57854         * lib/binary-io.h: New file, from GNU gettext.
57855
57856 2003-04-01  Bruno Haible  <bruno@clisp.org>
57857
57858         * modules/pathname: New file.
57859         * MODULES.html.sh (func_all_modules): Add it.
57860
57861 2003-04-01  Bruno Haible  <bruno@clisp.org>
57862
57863         * lib/pathname.h: New file, from GNU gettext.
57864         * lib/concatpath.c: New file, from GNU gettext.
57865
57866 2003-03-30  Bruno Haible  <bruno@clisp.org>
57867
57868         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57869
57870 2003-03-30  Bruno Haible  <bruno@clisp.org>
57871
57872         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57873         function chown() doesn't exist.
57874
57875 2003-03-28  Bruno Haible  <bruno@clisp.org>
57876
57877         * modules/copy-file: New file.
57878         * MODULES.html.sh (func_all_modules): Add it.
57879
57880 2003-03-28  Bruno Haible  <bruno@clisp.org>
57881
57882         * m4/copy-file.m4: New file.
57883
57884 2003-03-28  Bruno Haible  <bruno@clisp.org>
57885
57886         * lib/copy-file.h: New file, from GNU gettext.
57887         * lib/copy-file.c: New file, from GNU gettext.
57888
57889 2003-03-18  Jim Meyering  <jim@meyering.net>
57890
57891         * lib/quote.c (quote_n): Fix typo in comment.
57892
57893 2003-03-18  Bruno Haible  <bruno@clisp.org>
57894
57895         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57896         checking.
57897         * m4/onceonly_2_57.m4: Likewise.
57898
57899 2003-03-17  Bruno Haible  <bruno@clisp.org>
57900
57901         * m4/onceonly.m4: Require autoconf 2.54 or newer.
57902         (m4_quote): Remove macro.
57903         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57904
57905 2003-03-14  Jim Meyering  <jim@meyering.net>
57906
57907         Merge changes from Coreutils.
57908         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57909         to be const, in order to avoid warnings.
57910         (obstack_room): Likewise.
57911         (obstack_empty_p): Likewise.
57912
57913 2003-03-14  Bruno Haible  <bruno@clisp.org>
57914
57915         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57916         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57917
57918 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57919
57920         Merge changes from Bison.
57921         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57922         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57923         when compiling Bison 1.875's `bitset bset = obstack_alloc
57924         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
57925         * lib/hash.c: Include <stdbool.h> unconditionally.
57926
57927 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57928
57929         * m4/onceonly.m4 (m4_quote): New macro.
57930         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57931         Quote AC_FOREACH variable-expansions properly.
57932
57933 2003-03-13  Paul Eggert  <eggert@twinsun.com>
57934
57935         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57936
57937 2003-03-09  Paul Eggert  <eggert@twinsun.com>
57938
57939         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57940         Reported by Bruce Becker; see:
57941         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57942
57943 2003-03-03  Paul Eggert  <eggert@twinsun.com>
57944             Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57947         Reported by John Hughes, see
57948         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57949
57950 2003-02-20  Bruno Haible  <bruno@clisp.org>
57951
57952         * MODULES.html.sh (func_all_modules): Add poll.
57953
57954 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57955
57956         * modules/poll: New file.
57957
57958 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57959
57960         * lib/poll_.h: New file.
57961         * lib/poll.c: New file.
57962
57963 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
57964
57965         * m4/poll.m4: New file.
57966
57967 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57968
57969         * modules/mathl: New file.
57970
57971 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57972
57973         * lib/mathl.h: New file.
57974         * lib/acosl.c: New file.
57975         * lib/asinl.c: New file.
57976         * lib/atanl.c: New file.
57977         * lib/ceill.c: New file.
57978         * lib/cosl.c: New file.
57979         * lib/expl.c: New file.
57980         * lib/floorl.c: New file.
57981         * lib/frexpl.c: New file.
57982         * lib/ldexpl.c: New file.
57983         * lib/logl.c: New file.
57984         * lib/sincosl.c: New file.
57985         * lib/sinl.c: New file.
57986         * lib/sqrtl.c: New file.
57987         * lib/tanl.c: New file.
57988         * lib/trigl.c: New file.
57989         * lib/trigl.h: New file.
57990
57991 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
57992
57993         * m4/mathl.m4: New file.
57994
57995 2003-02-18  Bruno Haible  <bruno@clisp.org>
57996
57997         * MODULES.html.sh (func_all_modules): Add mathl.
57998
57999 2003-02-17  Bruno Haible  <bruno@clisp.org>
58000
58001         * modules/mkdtemp: New module.
58002         * MODULES.html.sh (func_all_modules): Add it.
58003
58004 2003-02-17  Bruno Haible  <bruno@clisp.org>
58005
58006         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
58007
58008 2003-02-17  Bruno Haible  <bruno@clisp.org>
58009
58010         * lib/mkdtemp.h: New file, from GNU gettext.
58011         * lib/mkdtemp.c: New file, from GNU gettext.
58012
58013 2003-02-02  Jim Meyering  <jim@meyering.net>
58014
58015         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
58016         e.g. glibc-2.2.93.
58017
58018 2003-01-31  Bruno Haible  <bruno@clisp.org>
58019
58020         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
58021         'rpl_rename'.
58022         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
58023         'rpl_strnlen'.
58024         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
58025         'rpl_strtod'.
58026         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
58027         'rpl_utime'.
58028
58029 2003-01-31  Bruno Haible  <bruno@clisp.org>
58030
58031         * lib/rename.c: #undef rename before defining rpl_rename.
58032         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
58033
58034 2003-01-30  Bruno Haible  <bruno@clisp.org>
58035
58036         * modules/vasnprintf, modules/vasprintf: New modules.
58037         * MODULES.html.sh (func_all_modules): Add them.
58038
58039 2003-01-30  Bruno Haible  <bruno@clisp.org>
58040
58041         * m4/signed.m4: New file, from GNU gettext.
58042         * m4/longdouble.m4: New file, from GNU gettext.
58043         * m4/wchar_t.m4: New file, from GNU gettext.
58044         * m4/wint_t.m4: New file, from GNU gettext.
58045         * m4/vasnprintf.m4: New file.
58046         * m4/vasprintf.m4: New file.
58047
58048 2003-01-30  Bruno Haible  <bruno@clisp.org>
58049
58050         * lib/printf-args.h: New file, from GNU gettext.
58051         * lib/printf-args.c: New file, from GNU gettext.
58052         * lib/printf-parse.h: New file, from GNU gettext.
58053         * lib/printf-parse.c: New file, from GNU gettext.
58054         * lib/vasnprintf.h: New file, from GNU gettext.
58055         * lib/vasnprintf.c: New file, from GNU gettext.
58056         * lib/asnprintf.c: New file, from GNU gettext.
58057         * lib/vasprintf.h: New file, from GNU gettext with modifications.
58058         * lib/vasprintf.c: New file, from GNU gettext.
58059         * lib/asprintf.c: New file, from GNU gettext.
58060
58061 2003-01-29  Bruno Haible  <bruno@clisp.org>
58062
58063         * modules/stpncpy: New module.
58064         * MODULES.html.sh (func_all_modules): Add it.
58065
58066 2003-01-29  Bruno Haible  <bruno@clisp.org>
58067
58068         * m4/stpncpy.m4: New file.
58069
58070 2003-01-29  Bruno Haible  <bruno@clisp.org>
58071
58072         * lib/stpncpy.h: New file, from GNU gettext with modifications.
58073         * lib/stpncpy.c: New file, from GNU gettext with modifications.
58074
58075 2003-01-28  Bruno Haible  <bruno@clisp.org>
58076
58077         * modules/c-ctype: New module.
58078         * MODULES.html.sh (func_all_modules): Add it.
58079
58080 2003-01-28  Bruno Haible  <bruno@clisp.org>
58081
58082         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
58083         Paul Eggert.
58084         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
58085         Paul Eggert.
58086
58087 2003-01-27  Bruno Haible  <bruno@clisp.org>
58088
58089         * modules/xsetenv: New module.
58090         * MODULES.html.sh (func_all_modules): Add it.
58091
58092 2003-01-27  Bruno Haible  <bruno@clisp.org>
58093
58094         * lib/xsetenv.h: New file, from GNU gettext.
58095         * lib/xsetenv.c: New file, from GNU gettext.
58096
58097 2003-01-23  Jim Meyering  <jim@meyering.net>
58098
58099         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
58100         from working on systems without dirfd (at least Irix and OSF1/Tru64).
58101
58102 2003-01-23  Bruno Haible  <bruno@clisp.org>
58103
58104         * modules/minmax: New module.
58105         * MODULES.html.sh (func_all_modules): Add it.
58106
58107 2003-01-23  Bruno Haible  <bruno@clisp.org>
58108
58109         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
58110         Eggert.
58111
58112 2003-01-22  Bruno Haible  <bruno@clisp.org>
58113
58114         * modules/exit: New module.
58115         * MODULES.html.sh (func_all_modules): Add it.
58116
58117 2003-01-22  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/exit.h: New file, from GNU gettext.
58120
58121 2003-01-19  Bruno Haible  <bruno@clisp.org>
58122
58123         * gnulib-tool: Recognize option --extract-maintainer.
58124         (func_get_maintainer): New function.
58125         * modules/*: Add Maintainer entry.
58126
58127 2003-01-16  Jim Meyering  <jim@meyering.net>
58128
58129         * m4/regex.m4: The `regex' struct is both input and output.
58130         Initialize it before each use.  Patch by Tim Waugh.
58131
58132 2003-01-16  Bruno Haible  <bruno@clisp.org>
58133
58134         * MODULES.html.sh: Add a table of contents. Add the module name as
58135         leftmost column. Add hyperlinks.
58136
58137 2003-01-15  Bruno Haible  <bruno@clisp.org>
58138
58139         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
58140
58141 2003-01-15  Bruno Haible  <bruno@clisp.org>
58142
58143         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
58144         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
58145         suffix.
58146
58147 2003-01-15  Bruno Haible  <bruno@clisp.org>
58148
58149         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
58150
58151 2003-01-15  Bruno Haible  <bruno@clisp.org>
58152
58153         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
58154         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
58155
58156 2003-01-14  Jim Meyering  <jim@meyering.net>
58157
58158         * lib/same.c (same_name): Tweak a comment.
58159
58160 2003-01-14  Bruno Haible  <bruno@clisp.org>
58161
58162         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
58163         when a string comparison is sufficient.
58164
58165 2003-01-14  Bruno Haible  <bruno@clisp.org>
58166
58167         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
58168         'unsigned int'.
58169
58170 2003-01-14  Bruno Haible  <bruno@clisp.org>
58171
58172         * lib/hash-pjw.c: Add comment about low quality of this function.
58173
58174 2003-01-13  Bruno Haible  <bruno@clisp.org>
58175
58176         * modules/stpcpy: Distribute lib/stpcpy.h.
58177         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
58178
58179 2003-01-13  Bruno Haible  <bruno@clisp.org>
58180
58181         * modules/*: Add a description.
58182         * modules/strpbrk: Fix Makefile.am snippet.
58183         * modules/strtoimax: Fix dependencies.
58184         * modules/strtoumax: Likewise.
58185
58186 2003-01-13  Bruno Haible  <bruno@clisp.org>
58187
58188         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
58189         * modules/alloca (Makefile.am): All object files depend on alloca.h.
58190         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
58191
58192 2003-01-13  Bruno Haible  <bruno@clisp.org>
58193
58194         * gnulib-tool (func_create_testdir): Store config/* files in the main
58195         directory.
58196         * config.rpath: Move to ...
58197         * config/config.rpath: ... here.
58198         * modules/gettext: Contains config/config.rpath, not config.rpath.
58199         * modules/iconv: Likewise.
58200
58201 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58202
58203         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58204         to avoid collisions with libcurses and libreadline.
58205
58206         * m4/getstr.m4: Remove.
58207         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
58208
58209 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58210
58211         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58212         to avoid collisions with libcurses and libreadline.
58213
58214         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
58215         * lib/getstr.h, getstr.c: Remove.
58216         * lib/getline.c: Include "getline.h", to check interface.
58217         Move body of old getstr.c here: this defines MIN_CHUNK and
58218         declares getdelim2, which is renamed from getstr.
58219         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
58220
58221         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
58222         All uses changed.
58223         * lib/linebuffer.h: Likewise.
58224         (readline): Remove backward-compatibility macro.
58225
58226 2003-01-12  Paul Eggert  <eggert@twinsun.com>
58227
58228         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
58229         to avoid collisions with libcurses and libreadline.
58230         * getstr: Remove.
58231         * MODULES.html.sh: Remove getstr.
58232         * modules/getline: Depend on unlocked-io, not getstr.
58233
58234 2003-01-12  Jim Meyering  <jim@meyering.net>
58235
58236         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
58237
58238 2003-01-10  Bruno Haible  <bruno@clisp.org>
58239
58240         * modules/alloca: Change Makefile.am requirements. Simplify Include
58241         requirements. Add lib/alloca_.h to file list.
58242
58243 2003-01-10  Bruno Haible  <bruno@clisp.org>
58244
58245         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
58246
58247 2003-01-10  Bruno Haible  <bruno@clisp.org>
58248
58249         * lib/alloca_.h: New file.
58250         * lib/getdate.y: Unconditionally include alloca.h.
58251         * lib/makepath.c: Likewise.
58252         * lib/setenv.c: Likewise.
58253         * lib/userspec.c: Likewise.
58254
58255 2003-01-09  Karl Berry  <karl@gnu.org>
58256
58257         * MODULES.html.sh: include `dirname $0` in PATH, to find
58258         gnulib-tool.
58259
58260 2003-01-09  Bruno Haible  <bruno@clisp.org>
58261
58262         * modules/stdbool: Change configure.ac, Makefile.am requirements.
58263         Simplify Include requirements. Add lib/stdbool.h.in to file list.
58264
58265 2003-01-09  Bruno Haible  <bruno@clisp.org>
58266
58267         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
58268
58269 2003-01-09  Bruno Haible  <bruno@clisp.org>
58270
58271         * lib/stdbool.h.in: New file.
58272
58273 2003-01-09  Bruno Haible  <bruno@clisp.org>
58274
58275         * gnulib-tool (func_all_modules): Ignore files ending in ~.
58276         * MODULES.html.sh: Likewise.
58277
58278 2003-01-08  Jim Meyering  <jim@meyering.net>
58279
58280         * lib/full-write.c: Undefine and define-away `const' after inclusion
58281         of errno.h, not before.  Suggestion from Bruno Haible.
58282
58283 2003-01-08  Bruno Haible  <bruno@clisp.org>
58284
58285         * modules/full-read: Depend on full-write.
58286
58287 2003-01-08  Bruno Haible  <bruno@clisp.org>
58288
58289         * lib/safe-read.c: Include specification header first, to ensure its
58290         selfcontainedness.
58291         * lib/full-write.c: Likewise.
58292
58293 2003-01-07  Jim Meyering  <jim@meyering.net>
58294
58295         * lib/full-write.c: Rework so that it may serve to define full_read,
58296         too.
58297         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
58298
58299 2003-01-07  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/strtoimax.c: Include <stdint.h> as an alternative to
58302         <inttypes.h>.
58303         * lib/xstrtol.h: Likewise.
58304         * lib/xstrtoimax.c: Likewise.
58305         * lib/xstrtoumax.c: Likewise.
58306         * lib/human.h: Likewise.
58307
58308         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
58309         on systems that have <inttypes.h> but not <stdint.h>.
58310
58311 2003-01-07  Bruno Haible  <bruno@clisp.org>
58312
58313         * MODULES.html.sh: Add copyright notice.
58314         (missed_files): Omit CVS directory entries.
58315         (func_module): Make it work with sed-3.02.
58316         * MODULES.txt: Remove file.
58317
58318 2003-01-06  Jim Meyering  <jim@meyering.net>
58319
58320         * lib/version-etc.c: Update year in translatable copyright string.
58321
58322 2003-01-03  Karl Berry  <karl@gnu.org>
58323
58324         * config/config.{guess,sub}: update from prep.
58325
58326 2003-01-02  Karl Berry  <karl@gnu.org>
58327
58328         * doc/COPYING.DOC: belatedly updated to 1.2.
58329
58330 2003-01-01  Karl Berry  <karl@gnu.org>
58331
58332         * gnulib-tool (func_verify_module): report module name $module in
58333         error message, not $1.
58334         * gnulib-tool (create-testdir): don't complain if destdir couldn't
58335         be created, only if it doesn't exist.
58336         * gnulib-tool (last_checkin_date): don't expand the $Date here.
58337
58338 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58339
58340         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
58341
58342 2002-12-31  Paul Eggert  <eggert@twinsun.com>
58343
58344         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
58345         memcmp if strcoll doesn't work.
58346
58347 2002-12-31  Bruno Haible  <bruno@clisp.org>
58348
58349         * lib/utime.c (utime_null): No need to call ftruncate if the file was
58350         nonempty.
58351
58352 2002-12-31  Bruno Haible  <bruno@clisp.org>
58353
58354         * lib/memcoll.c (STRCOLL): New macro.
58355         (memcoll): Use it.
58356
58357 2002-12-31  Bruno Haible  <bruno@clisp.org>
58358
58359         * lib/localcharset.h: New file.
58360         * lib/localcharset.c: Include it.
58361         * lib/unicodeio.c: Likewise.
58362
58363 2002-12-31  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
58366         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
58367
58368 2002-12-31  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/getline.h: Include <stddef.h>, for size_t.
58371
58372         * lib/unicodeio.h: Include <stddef.h>, for size_t.
58373         * lib/unicodeio.c: Don't include <stddef.h>.
58374
58375 2002-12-31  Bruno Haible  <bruno@clisp.org>
58376
58377         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
58378         HAVE_TM_ZONE.
58379
58380 2002-12-24  Karl Berry  <karl@gnu.org>
58381
58382         * config/config.guess: update from prep.
58383
58384 2002-12-24  Bruno Haible  <bruno@clisp.org>
58385
58386         General infrasructure.
58387         * m4/README: Rewritten.
58388         * m4/onceonly.m4: New file.
58389         * m4/onceonly_2_57.m4: New file.
58390
58391         Module atexit.
58392         * m4/atexit.m4: New file.
58393
58394         Module strtod.
58395         * m4/strtod.m4: New file.
58396
58397         Module strtol.
58398         * m4/strtol.m4: New file.
58399
58400         Module strtoul.
58401         * m4/strtoul.m4: New file.
58402
58403         Module memchr.
58404         * m4/memchr.m4: New file.
58405
58406         Module memcmp.
58407         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
58408         (jm_FUNC_MEMCMP): Invoke it.
58409
58410         Module memcpy.
58411         * m4/memcpy.m4: New file.
58412
58413         Module memmove.
58414         * m4/memmove.m4: New file.
58415
58416         Module memset.
58417         * m4/memset.m4: New file.
58418
58419         Module strcspn.
58420         * m4/strcspn.m4: New file.
58421
58422         Module strpbrk.
58423         * m4/strpbrk.m4: New file.
58424
58425         Module strstr.
58426         * m4/strstr.m4: New file.
58427
58428         Module strerror.
58429         * m4/strerror.m4: New file.
58430
58431         Module mktime.
58432         * m4/mktime.m4: Renamed from jm-mktime.m4.
58433         (gl_PREREQ_MKTIME): New macro.
58434         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
58435
58436         Module malloc.
58437         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
58438         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
58439         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
58440
58441         Module realloc.
58442         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
58443         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
58444         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
58445
58446         Module strftime.
58447         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58448         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58449         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58450         gl_TM_GMTOFF.
58451         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58452
58453         Module xalloc.
58454         * m4/xalloc.m4: New file.
58455
58456         Module alloca.
58457         * m4/alloca.m4: New file.
58458
58459         Module putenv.
58460         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58461         (jm_FUNC_PUTENV): Invoke it.
58462
58463         Module setenv.
58464         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58465         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58466         when invoked twice.
58467         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58468         gt_FUNC_SETENV.
58469
58470         Module memrchr.
58471         * m4/memrchr.m4: New file.
58472
58473         Module stpcpy.
58474         * m4/stpcpy.m4: New file.
58475
58476         Module strcase.
58477         * m4/strcase.m4: New file.
58478
58479         Module strdup.
58480         * m4/strdup.m4: New file.
58481
58482         Module strnlen.
58483         * m4/strnlen.m4: New file.
58484
58485         Module strndup.
58486         * m4/strndup.m4: New file.
58487
58488         Module xstrtod.
58489         * m4/xstrtod.m4: New file.
58490
58491         Module xstrtol.
58492         * m4/xstrtol.m4: New file.
58493
58494         Module getdate.
58495         * m4/getdate.m4: New file.
58496
58497         Module unlocked-io.
58498         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58499         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58500         * m4/jm-glibc-io.m4n: Remove file.
58501
58502         Module long-options.
58503         * m4/long-options.m4: New file.
58504
58505         Module md5.
58506         * m4/md5.m4: New file.
58507
58508         Module sha.
58509         * m4/sha.m4: New file.
58510
58511         Module getstr.
58512         * m4/getstr.m4: New file.
58513
58514         Module getline.
58515         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58516         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58517         <sys/types.h>, for size_t. Use the function name gnu_getline, not
58518         simply getline. Infoke gl_PREREQ_GETLINE.
58519
58520         Module obstack.
58521         * m4/obstack.m4: New file.
58522
58523         Module hash.
58524         * m4/hash.m4: New file.
58525
58526         Module readtokens.
58527         * m4/readtokens.m4: New file.
58528
58529         Module strverscmp.
58530         * m4/strverscmp.m4: New file.
58531
58532         Module stdbool.
58533         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58534         OSF/1.
58535
58536         Module strtoll.
58537         * m4/strtoll.m4: New file.
58538
58539         Module strtoull.
58540         * m4/strtoull.m4: New file.
58541
58542         Module strtoimax.
58543         * m4/strtoimax.m4: New file.
58544
58545         Module strtoumax.
58546         * m4/strtoumax.m4: New file.
58547
58548         Module xstrtoimax.
58549         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58550         jm_AC_PREREQ_XSTRTOIMAX.
58551         Moved the strtol prerequisites to strtol.m4.
58552         Moved the strtoll prerequisites to strtoll.m4.
58553         Moved the strtoimax prerequisites to strtoimax.m4.
58554
58555         Module xstrtoumax.
58556         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58557         jm_AC_PREREQ_XSTRTOUMAX.
58558         Moved the strtoul prerequisites to strtoul.m4.
58559         Moved the strtoull prerequisites to strtoull.m4.
58560         Moved the strtoumax prerequisites to strtoumax.m4.
58561
58562         Module chown.
58563         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58564         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58565
58566         Module dup2.
58567         * m4/dup2.m4: New file.
58568
58569         Module ftruncate.
58570         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58571         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58572
58573         Module getgroups.
58574         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58575         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58576
58577         Module gettimeofday.
58578         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58579         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58580         gl_PREREQ_GETTIMEOFDAY.
58581
58582         Module mkdir.
58583         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58584         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58585
58586         Module mkstemp.
58587         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58588         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58589         jm_AC_TYPE_UINTMAX_T.
58590         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58591
58592         Module stat.
58593         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58594         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58595
58596         Module lstat.
58597         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58598         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58599
58600         Module timespec.
58601         * m4/timespec.m4 (gl_TIMESPEC): New macro.
58602         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58603         * m4/st_mtim.m4: Indentation.
58604
58605         Module nanosleep.
58606         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58607         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58608         gl_PREREQ_NANOSLEEP.
58609
58610         Module regex.
58611         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58612         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58613         (gl_REGEX): New macro.
58614
58615         Module rename.
58616         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58617         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58618
58619         Module rmdir.
58620         * m4/rmdir.m4: New file.
58621
58622         Module utime.
58623         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58624         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58625         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58626
58627         Module dirname.
58628         * m4/dirname.m4: New file.
58629
58630         Module getopt.
58631         * m4/getopt.m4: New file.
58632
58633         Module unistd-safer.
58634         * m4/unistd-safer.m4: New file.
58635
58636         Module fnmatch.
58637         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58638         declaration.
58639         (gl_PREREQ_FNMATCH_EXTRA): New macro.
58640         (gl_FUNC_FNMATCH_POSIX): New macro.
58641         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58642         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58643         simply fnmatch.
58644
58645         Module exclude.
58646         * m4/exclude.m4: New file.
58647
58648         Module human.
58649         * m4/human.m4: New file.
58650
58651         Module acl.
58652         * m4/acl.m4: Nop.
58653
58654         Module backupfile.
58655         * m4/backupfile.m4: New file.
58656         * m4/d-ino.m4: Indentation.
58657
58658         Module fsusage.
58659         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58660         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58661         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58662
58663         Module dirfd.
58664         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58665         requirements.
58666
58667         Module euidaccess.
58668         * m4/euidaccess.m4: New file.
58669
58670         Module file-type.
58671         * m4/file-type.m4: New file.
58672
58673         Module fileblocks.
58674         * m4/fileblocks.m4: New file.
58675
58676         Module filemode.
58677         * m4/filemode.m4: New file.
58678
58679         Module isdir.
58680         * m4/isdir.m4: New file.
58681
58682         Module lchown.
58683         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58684         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58685
58686         Module makepath.
58687         * m4/makepath.m4: New file.
58688
58689         Module modechange.
58690         * m4/modechange.m4: New file.
58691
58692         Module mountlist.
58693         * m4/mountlist.m4: New file.
58694         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58695         Indentation.
58696
58697         Module path-concat.
58698         * m4/path-concat.m4: New file.
58699
58700         Module pathmax.
58701         * m4/pathmax.m4: New file.
58702
58703         Module same.
58704         * m4/same.m4: New file.
58705
58706         Module save-cwd.
58707         * m4/save-cwd.m4: New file.
58708
58709         Module savedir.
58710         * m4/savedir.m4: New file.
58711
58712         Module xgetcwd.
58713         * m4/xgetcwd.m4: New file.
58714         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58715
58716         Module xreadlink.
58717         * m4/xreadlink.m4: New file.
58718
58719         Module safe-read.
58720         * m4/safe-read.m4: New file.
58721
58722         Module safe-write.
58723         * m4/safe-write.m4: New file.
58724
58725         Module closeout.
58726         * m4/closeout.m4: New file.
58727
58728         Module stdio-safer.
58729         * m4/stdio-safer.m4: New file.
58730
58731         Module getpass.
58732         * m4/getpass.m4: New file.
58733
58734         Module getugroups.
58735         * m4/getugroups.m4: New file.
58736
58737         Module group-member.
58738         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58739         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58740
58741         Module idcache.
58742         * m4/idcache.m4: New file.
58743
58744         Module userspec.
58745         * m4/userspec.m4: New file.
58746
58747         Module gettime.
58748         * m4/clock_time.m4: New file.
58749         * m4/gettime.m4: New file.
58750
58751         Module settime.
58752         * m4/settime.m4: New file.
58753
58754         Module posixtm.
58755         * m4/posixtm.m4: New file.
58756
58757         Module gethostname.
58758         * m4/gethostname.m4: New file.
58759
58760         Module canon-host.
58761         * m4/canon-host.m4: New file.
58762
58763         Module gettext.
58764         * m4/codeset.m4: New file, from gettext-0.11.5.
58765         * m4/gettext.m4: New file, from gettext-0.11.5.
58766         * m4/glibc21.m4: New file, from gettext-0.11.5.
58767         * m4/iconv.m4: New file, from gettext-0.11.5.
58768         * m4/intdiv0.m4: New file, from gettext-0.11.5.
58769         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58770         * m4/inttypes.m4: New file, from gettext-0.11.5.
58771         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58772         * m4/isc-posix.m4: New file, from gettext-0.11.5.
58773         * m4/lcmessage.m4: New file, from gettext-0.11.5.
58774         * m4/lib-ld.m4: New file, from gettext-0.11.5.
58775         * m4/lib-link.m4: New file, from gettext-0.11.5.
58776         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58777         * m4/progtest.m4: New file, from gettext-0.11.5.
58778         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58779         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58780         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58781
58782         Module localcharset.
58783         * m4/localcharset.m4: New file.
58784
58785         Module hard-locale.
58786         * m4/hard-locale.m4: New file.
58787
58788         Module mbswidth.
58789         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58790         onceonly macros.
58791         * m4/mbrtowc.m4: Add comment.
58792
58793         Module memcasecmp.
58794         * m4/memcasecmp.m4: New file.
58795
58796         Module memcoll.
58797         * m4/memcoll.m4: New file.
58798
58799         Module unicodeio.
58800         * m4/unicodeio.m4: New file.
58801
58802         Module rpmatch.
58803         * m4/rpmatch.m4: New file.
58804
58805         Module yesno.
58806         * m4/yesno.m4: New file.
58807
58808         Module exitfail.
58809         * m4/exitfail.m4: New file.
58810
58811         Module c-stack.
58812         * m4/c-stack.m4 (gl_C_STACK): New macro.
58813         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58814
58815         Module error.
58816         * m4/error.m4 (gl_ERROR): New macro.
58817         (jm_PREREQ_ERROR): Use onceonly macros.
58818
58819         Module fatal.
58820         * m4/fatal.m4: New file.
58821
58822         Module getloadavg.
58823         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58824         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58825
58826         Module getpagesize.
58827         * m4/getpagesize.m4: New file.
58828
58829         Module getusershell.
58830         * m4/getusershell.m4: New file.
58831
58832         Module physmem.
58833         * m4/physmem.m4: New file.
58834
58835         Module posixver.
58836         * m4/posixver.m4: New file.
58837
58838         Module quotearg.
58839         * m4/quotearg.m4: New file.
58840
58841         Module quote.
58842         * m4/quote.m4: New file.
58843
58844         Module readutmp.
58845         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58846
58847         Module sig2str.
58848         * m4/sig2str.m4: New file.
58849
58850         Other.
58851         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58852         ulonglong.m4.
58853         * m4/intmax_t.m4: New file.
58854         * m4/d-type.m4: Indentation.
58855         * m4/jm-macros.m4: Update.
58856         * m4/prereq.m4 (jm_PREREQ): Update.
58857         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58858         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58859         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58860         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58861         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58862         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58863         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58864         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58865         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58866         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58867         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58868         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58869         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58870         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58871         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58872         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58873         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58874         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58875         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58876
58877 2002-12-24  Bruno Haible  <bruno@clisp.org>
58878
58879         * MODULES.txt: Update according to m4/ changes.
58880
58881         Module gettext.
58882         * config.rpath: New file, from gettext-0.11.5.
58883
58884         * modules/*: New module descriptions.
58885         * gnulib-tool: New file.
58886         * MODULES.html.sh: New file.
58887
58888 2002-12-21  Karl Berry  <karl@gnu.org>
58889
58890         * doc/fdl.texi: update to version 1.2.
58891
58892 2002-12-19  Karl Berry  <karl@gnu.org>
58893
58894         * config/config.guess: update from prep.
58895
58896 2002-12-18  Bruno Haible  <bruno@clisp.org>
58897
58898         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58899         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58900
58901 2002-12-17  Bruno Haible  <bruno@clisp.org>
58902
58903         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58904         stdlib.h, string.h.
58905
58906 2002-12-17  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/canon-host.c (strdup): Remove unused declaration.
58909
58910         * lib/fsusage.c: Include full_read.h.
58911         (get_fs_usage): Use full_read instead of safe_read.
58912
58913         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58914
58915 2002-12-12  Karl Berry  <karl@gnu.org>
58916
58917         * config/config.guess: update from prep.
58918
58919 2002-12-11  Bruno Haible  <bruno@clisp.org>
58920
58921         * m4/setenv.m4: New file, from gettext-0.11.5.
58922
58923 2002-12-11  Bruno Haible  <bruno@clisp.org>
58924
58925         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58926         not unsetenv().
58927         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58928         modifications:
58929
58930         2002-12-11  Bruno Haible  <bruno@clisp.org>
58931
58932                 * setenv.c (alloca): Fall back to malloc.
58933                 (freea): New macro.
58934                 (setenv): Use freea() to free memory allocated with alloca().
58935
58936         2002-11-13  Bruno Haible  <bruno@clisp.org>
58937
58938                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58939                 function declarations.
58940                 * unsetenv.c (unsetenv): Likewise.
58941
58942         2002-03-04  Bruno Haible  <bruno@clisp.org>
58943
58944                 Portability to AIX 4.3.3.
58945                 * unsetenv.c: New file, extracted from setenv.c.
58946                 * setenv.c: Move the unsetenv() function to unsetenv.c.
58947
58948         2001-12-20  Bruno Haible  <bruno@clisp.org>
58949
58950                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58951                 use malloc instead. For SunOS 4.
58952
58953         2001-12-11  Bruno Haible  <bruno@clisp.org>
58954
58955                 * setenv.c: Declare alloca.
58956                 (compar_fn_t): New typedef.
58957                 (KNOWN_VALUE, STORE_VALUE): Use it.
58958
58959         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58960         setenv.h.
58961
58962 2002-12-10  Paul Eggert  <eggert@twinsun.com>
58963
58964         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58965         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58966         Choose values that are less likely to collide with system fnmatch
58967         options.
58968         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58969         defined (e.g., a pure POSIX system).
58970         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58971         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58972
58973 2002-12-06  Paul Eggert  <eggert@twinsun.com>
58974
58975         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58976         a pain in practice to deal with generated m4 files.  This change
58977         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58978
58979         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58980         and jm-glibc-io.m4, as they are no longer a special case.
58981         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58982         kludge and the auto-generation stuff.  Check only whether the
58983         functions are declared, not whether they exist, since older hosts
58984         that don't declare the functions can't use the optimization anyway.
58985
58986 2002-12-06  Jim Meyering  <jim@meyering.net>
58987
58988         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58989
58990         Merge in changes from libc's misc/error.c, in preparation
58991         for the merge of gnulib's changes back into libc.
58992
58993         * lib/error.c (_): Define only if not already defined.
58994         Move definition to follow all #include directives.
58995         Include unlocked-io.h only if !_LIBC.
58996         [_LIBC]: Include <libio/libioP.h>.
58997         [USE_IN_LIBIO]: Include <libio/iolibio.h>
58998         (fflush): Tweak definition to use INTUSE.
58999         (putc): Define.
59000
59001 2002-12-05  Paul Eggert  <eggert@twinsun.com>
59002
59003         * lib/alloca.c [defined emacs]: Include "lisp.h".
59004         (xalloc_die) [defined emacs]: New macro.
59005         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
59006         [! defined emacs]: Include <xalloc.h>.
59007         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
59008         (pointer): Typedef to POINTER_TYPE *.
59009         (malloc): Remove decl; we now always use xmalloc.
59010         (alloca): Use old-style definition, since Emacs needs this.
59011         Check for arithmetic overflow when computing combined size.
59012
59013 2002-12-04  Paul Eggert  <eggert@twinsun.com>
59014
59015         Do not generate unlocked-io.h automatically, since it's easier to
59016         maintain it by hand.
59017
59018         * lib/unlocked-io.h: New file, from GNU diffutils,
59019         but with proper copyright notice and attribution.
59020         * lib/gen-uio: Remove.
59021         * lib/Makefile.am: Add copyright notice.
59022         (libfetish_a_SOURCES): Add unlocked-io.h.
59023         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
59024         (DISTCLEANFILES, io_functions): Remove macros.
59025         (EXTRA_DIST): Remove gen_uio.
59026         (unlocked-io.h): Remove rule.
59027
59028 2002-12-04  Jim Meyering  <jim@meyering.net>
59029
59030         Reflect the fact that stat.c and lstat.c are no longer generated.
59031         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
59032         (DISTCLEANFILES): Likewise.
59033         (EXTRA_DIST): Likewise.
59034         (all_local): Don't depend on stat.c or lstat.c.
59035         (stat.c, lstat.c): Remove rules.
59036         (EXTRA_DIST): Remove xstat.in.
59037
59038         * lib/xstat.in: Remove file.  Contents moved into stat.c.
59039         * lib/stat.c: New file.  Contents mostly from xstat.in.
59040         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
59041         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
59042
59043         * lib/safe-read.c: Rework so that it may serve to define safe_write,
59044         too.
59045         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
59046
59047 2002-12-03  Jim Meyering  <jim@meyering.net>
59048
59049         * lib/safe-read.c, safe-write.c: Change variable names and comments,
59050         but not semantics, to minimize the differences between these two files.
59051         (safe_read): Change comment to mention SAFE_READ_ERROR.
59052
59053         * lib/safe-read.c (IS_EINTR): Define.
59054         (safe_read): Use IS_EINTR in place of in-function cpp directives.
59055
59056 2002-12-02  Jim Meyering  <jim@meyering.net>
59057
59058         * lib/safe-read.c (EINTR): Define.
59059         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59060         (INT_MAX): Provide fallback.
59061         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
59062
59063         * lib/safe-read.h (SAFE_READ_ERROR): Define.
59064
59065 2002-12-02  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
59068         Define, taken from safe-read.c.
59069         (INT_MAX): Provide fallback.
59070         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
59071         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
59072
59073         * lib/safe-read.c (EINTR): Remove definition.
59074         (safe_read): Don't use EINTR if it is absent.
59075
59076 2002-12-01  Jim Meyering  <jim@meyering.net>
59077
59078         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
59079         zero.
59080         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
59081
59082 2002-11-27  Paul Eggert  <eggert@twinsun.com>
59083
59084         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
59085         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
59086         with `if (! (value < limit)) abort ();', for readability.
59087
59088 2002-11-26  Karl Berry  <karl@gnu.org>
59089
59090         * lib/strdup.c: copy from libc again, with jim's ok.
59091         * lib/.cppi-disable: re-add strdup.c
59092
59093 2002-11-25  Karl Berry  <karl@gnu.org>
59094
59095         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
59096         instead of "strtol.c".
59097
59098 2002-11-25  Karl Berry  <karl@gnu.org>
59099
59100         * config/install-sh: update from automake for variable quoting, $0 in
59101         error msgs, etc.
59102
59103         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
59104         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
59105         entry.
59106
59107 2002-11-25  Jim Meyering  <jim@meyering.net>
59108
59109         * lib/mktime.c: Sync from libc, now that it has the latest fix.
59110
59111 2002-11-24  Karl Berry  <karl@gnu.org>
59112
59113         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
59114         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
59115
59116 2002-11-24  Jim Meyering  <jim@meyering.net>
59117
59118         Update from coreutils:
59119
59120         * lib/mktime.c: Merge in changes from libc.
59121
59122         Avoid a link-time failure on some Linux systems.
59123         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
59124         (otherwise).
59125         (__mon_yday): Declare with the STATIC attribute.
59126         (__mktime_internal): Likewise.
59127         Based on a report from Greg Schafer.
59128
59129 2002-11-23  Jim Meyering  <jim@meyering.net>
59130
59131         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
59132         Use `unsigned', not `int', as type of index.
59133
59134         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
59135
59136         * lib/fsusage.c: Remove unneeded parentheses around operands of
59137         `defined'.
59138
59139 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59140
59141         * lib/quotearg.h: Allow multiple inclusion by surrounding with
59142         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
59143         so that we can be included first.
59144         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
59145         * lib/quotearg.c: Include quotearg.h immediately after config.h.
59146         No need to include stddef.h or sys/types.h any more.
59147         Surround local include files with "", not "<>".
59148         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
59149         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
59150         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
59151         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
59152         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
59153         (ISPRINT): Remove; no longer needed now that we assume C89.
59154
59155         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
59156         Preserve errno.
59157
59158         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
59159         quotearg_char): Use SIZE_MAX rather than
59160         (size_t) -1 when we are talking about "infinity".
59161
59162         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
59163
59164 2002-11-22  Paul Eggert  <eggert@twinsun.com>
59165
59166         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
59167         hint that one should use `if (! x) abort ();' rather than `assert
59168         (x);', and anyway it's one less thing to worry about configuring.
59169         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
59170         hash_rehash, hash_insert): Use abort rather than assert.
59171
59172 2002-11-22  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/safe-read.h: Assume C89. Add comments.
59175         (safe_read): Change return type to size_t.
59176         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
59177         byte counts > SSIZE_MAX correctly.
59178         * lib/safe-write.h: New file.
59179         * lib/safe-write.c: New file.
59180         * lib/full-read.h: New file.
59181         * lib/full-read.c: New file.
59182         * lib/full-write.h: Assume C89. Add comments.
59183         * lib/full-write.c: Include safe-write.h.
59184         (full_write): Rewritten to use safe_write.
59185         Suggested by Jim Meyering and Paul Eggert.
59186
59187 2002-11-21  Jim Meyering  <jim@meyering.net>
59188
59189         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
59190
59191         Merge in changes from the coreutils.
59192
59193         2002-09-25  Paul Eggert  <eggert@twinsun.com>
59194         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
59195         <stdint.h>.
59196         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
59197         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
59198         int.  Work more efficiently if X is the same width as uintmax_t.
59199         Do not compare X to -1, to avoid bogus compiler warning.
59200         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
59201         Don't assume that f_frsize and f_bsize are the same type.
59202
59203         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
59204         warning on FreeBSD.
59205
59206         * lib/makepath.c (make_path): Restore umask *before* creating the final
59207         component.
59208         (make_path): Minor reformatting.
59209
59210         * lib/xmalloc.c: Adjust to work with new autoconf macros,
59211         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
59212         HAVE_MALLOC/HAVE_REALLOC.
59213
59214         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
59215         dummy ones.  At least on GNU/Linux systems, `auto' means something
59216         else.
59217         From Michael Stone.
59218
59219 2002-11-21  Bruno Haible  <bruno@clisp.org>
59220
59221         Remove case insensitive option matching.
59222         * lib/argmatch.h (argcasematch): Remove declaration.
59223         (ARGCASEMATCH): Remove macro.
59224         (__xargmatch_internal): Remove case_sensitive argument.
59225         (XARGMATCH): Update.
59226         (XARGCASEMATCH): Remove macro.
59227         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
59228         case_sensitive argument.
59229         (argcasematch): Remove function.
59230         (__xargmatch_internal): Remove case_sensitive argument.
59231         (main): Use XARGMATCH instead of XARGCASEMATCH.
59232
59233         * lib/xmalloc.c: Change compile-time error message. Add comment about
59234         required autoconf version.
59235
59236 2002-11-20  Paul Eggert  <eggert@twinsun.com>
59237
59238         Merge argmatch cleanups from Bison.  Assume C89.
59239
59240         * lib/argmatch.c: Include config.h here, not in argmatch.h.
59241         Include stdlib.h, for EXIT_FAILURE.
59242         Always include <string.h>, since we assume C89.
59243         (EXIT_FAILURE): Remove pre-C89 bug workaround.
59244         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
59245         Include <stddef.h> instead, since it's all we need for size_t.
59246         (PARAMS): Remove.  All uses removed.
59247         (ARRAY_CARDINALITY): Do not bother to #undef.
59248         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
59249         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59250         Remove unnecessary parentheses.
59251         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
59252         Insert necessary parentheses.
59253         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
59254         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
59255
59256 2002-11-19  Bruno Haible  <bruno@clisp.org>
59257
59258         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
59259         * lib/mbswidth.h: Include <stddef.h>, for size_t.
59260
59261         * lib/mbswidth.h (PARAMS): Remove macro.
59262         (mbswidth, mbsnwidth): Use ANSI C function declarations.
59263         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
59264
59265         * lib/gcd.h (PARAMS): Remove macro.
59266         (gcd): Use ANSI C function declarations.
59267         * lib/gcd.c (gcd): Likewise.
59268
59269 2002-11-15  Bruno Haible  <bruno@clisp.org>
59270
59271         * lib/strcspn.c: Include <stddef.h>.
59272         (strcspn): Use ANSI C function declaration. Change return type to
59273         size_t. Use NULL.
59274         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
59275         (strpbrk): Use NULL.
59276         * lib/strpbrk.h (PARAMS): Remove macro.
59277         (strpbrk): Use ANSI C function declaration.
59278         * lib/strstr.c: Don't include <sys/types.h>.
59279         * lib/strstr.h (PARAMS): Remove macro.
59280         (strstr): Use ANSI C function declarations.
59281
59282 2002-11-14  Karl Berry  <karl@gnu.org>
59283
59284         * config/mkinstalldirs: `do' on separate line, instead of
59285         `for var; do'.
59286
59287 2002-11-06  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
59290         * lib/gcd.c (gcd): Likewise.
59291
59292 2002-11-05  Bruno Haible  <bruno@clisp.org>
59293
59294         * lib/gcd.h: New file, from gettext-0.11.5.
59295         * lib/gcd.c: New file, from gettext-0.11.5.
59296
59297 2002-11-05  Bruno Haible  <bruno@clisp.org>
59298
59299         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59300         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59301         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59302         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
59303
59304         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
59305         <libintl.h>.
59306         * lib/makepath.c: Include gettext.h instead of <locale.h> and
59307         <libintl.h>.
59308
59309         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
59310         * lib/human.c: Include gettext.h instead of <libintl.h>.
59311         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
59312         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
59313         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
59314         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
59315         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
59316         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
59317         (textdomain): Remove definition.
59318         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
59319
59320         * lib/long-options.c: Remove include of <libintl.h> and definition of
59321         _.
59322         * lib/same.c: Remove include of <libintl.h> and definition of _.
59323
59324 2002-11-04  Owen Taylor  <otaylor@redhat.com>
59325
59326         * lib/config.charset: A few additions for Solaris.
59327
59328 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59329
59330         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
59331         * lib/localcharset.c (locale_charset): Declare as extern "C".
59332
59333 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
59334
59335         * lib/config.charset: msdos in uk_UA uses CP1125.
59336
59337 2002-11-04  Bruno Haible  <bruno@clisp.org>
59338
59339         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
59340         * lib/strcase.h: New file, from GNU gettext-0.11.5.
59341         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
59342         * lib/strstr.h: New file, from GNU gettext-0.11.5.
59343         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
59344
59345 2002-11-04  Bruno Haible  <bruno@clisp.org>
59346
59347         * lib/localcharset.c (locale_charset): Don't return an empty string.
59348
59349 2002-11-04  Bruno Haible  <bruno@clisp.org>
59350
59351         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
59352         aliases.
59353
59354 2002-11-04  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/config.charset: Update for newest glibc. Add canonical names
59357         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
59358
59359 2002-11-04  Bruno Haible  <bruno@clisp.org>
59360
59361         * lib/config.charset: Add support for NetBSD.
59362
59363 2002-11-04  Bruno Haible  <bruno@clisp.org>
59364
59365         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
59366
59367 2002-11-01  Bruno Haible  <bruno@clisp.org>
59368
59369         * configure.in: Add AC_CONFIG_AUX_DIR call.
59370         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
59371         test/Makefile.
59372         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
59373
59374 2002-09-28  Karl Berry  <karl@gnu.org>
59375
59376         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
59377         installed automake until the next release, since changes have been
59378         made.
59379
59380 2002-09-25  Karl Berry  <karl@gnu.org>
59381
59382         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
59383         * lib/getopt*: copy from libc/posix.
59384         * lib/gettext.h: copy from gettext.
59385         * lib/.cppi-disable: add strdup.c, gettext.h.
59386
59387 2002-09-25  Karl Berry  <karl@gnu.org>
59388
59389         * config/srclist.txt: enable gettext.h check.
59390         * config/config.{guess,sub}: update from prep.
59391         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
59392                 from automake 1.6.3.
59393         See srclist*.
59394
59395 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
59396
59397         * regex.c (PATFETCH): Remove the translating fetch.
59398         (PATFETCH_RAW): Rename to PATFETCH.
59399         (set_image_of_range): New fun.
59400         (SET_RANGE_TABLE_WORK_AREA): Use it.
59401         (regex_compile): Don't translate the pattern chars so eagerly.
59402         Only do it when inserting an `exactn' bytecode or when handling
59403         a char-range.
59404         (mutually_exclusive_p): Avoid empty statement.
59405
59406 2002-07-06  Jim Meyering  <meyering@lucent.com>
59407
59408         * m4/README: Don't mention Makefile.am.in.
59409         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
59410
59411 2002-07-01  Jim Meyering  <meyering@lucent.com>
59412
59413         * lib/c-stack.c: Include sys/time.h.
59414         From Volker Borchert.
59415
59416 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59417
59418         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
59419
59420 2002-06-26  Paul Eggert  <eggert@twinsun.com>
59421
59422         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
59423         New macro.  Use it uniformly instead of
59424         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
59425         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
59426         reported by Vin Shelton.
59427
59428 2002-06-22  Paul Eggert  <eggert@twinsun.com>
59429
59430         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
59431         Do not assume SA_SIGINFO behavior.
59432         Bug reported by Jim Meyering on NetBSD 1.5.2.
59433
59434 2002-06-22  Jim Meyering  <meyering@lucent.com>
59435
59436         * m4/c-stack.m4: New file, from diffutils-2.8.2.
59437         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
59438
59439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
59440         now that configure.ac uses AC_GNU_SOURCE.
59441         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
59442         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
59443
59444         Update to latest tools.  Suggestions from Paul Eggert.
59445         * m4/stdbool.m4: New file, from diffutils-2.8.2.
59446         * m4/gnu-source.m4: Update from diffutils-2.8.2.
59447         * m4/fnmatch.m4: Likewise.
59448         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59449         to AC_HEADER_STDBOOL
59450
59451 2002-06-22  Jim Meyering  <meyering@lucent.com>
59452
59453         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59454         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59455
59456 2002-06-22  Jim Meyering  <meyering@lucent.com>
59457
59458         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59459
59460         * lib/exitfail.c, exitfail.h: Likewise.
59461         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59462
59463         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59464         of fnmatch.h.
59465         (EXTRA_DIST): Add fnmatch_loop.c.
59466         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59467
59468         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59469         * lib/fnmatch.c: Update from diffutils-2.8.2.
59470         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
59471         * lib/fnmatch.h: Remove file.
59472
59473 2002-06-21  Jim Meyering  <meyering@lucent.com>
59474
59475         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59476         * m4/mbrtowc.m4: Likewise.
59477
59478         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59479         * m4/mbswidth.m4: Reflect name change:
59480         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59481         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59482
59483         * m4/lib-link.m4: Update from gettext-0.11.2.
59484         * m4/gettext.m4: Likewise.
59485
59486         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59487         From Alfred M. Szmidt.
59488
59489 2002-06-18  Paul Eggert  <eggert@twinsun.com>
59490
59491         * lib/file-type.h: Report an error if neither S_ISREG nor
59492         S_IFREG is defined, instead of using a test specific to glibc
59493         2.2.  This should be safe, since POSIX requires S_ISREG and
59494         Unix Version 7 had S_IFREG.  We don't need to check for
59495         <sys/types.h> since we don't use any symbols that it defines.
59496
59497 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
59498
59499         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59500         $@-t, so that each temporary file name is unique and valid in the first
59501         8 characters, for operation under DOS.
59502
59503 2002-06-15  Paul Eggert  <eggert@twinsun.com>
59504
59505         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59506
59507 2002-06-15  Jim Meyering  <meyering@lucent.com>
59508
59509         Work even with DJGPP 2.03, which lacks support for symlinks.
59510         From Richard Dawe.
59511         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59512         is defined.
59513         * lib/lchown.c (S_ISLNK): Likewise.
59514
59515 2002-06-15  Jim Meyering  <meyering@lucent.com>
59516
59517         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59518         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59519         have been included before this file.
59520
59521 2002-06-14  Jim Meyering  <meyering@lucent.com>
59522
59523         * lib/file-type.h: Use the version from diffutils-2.8.2.
59524         * lib/file-type.c: Likewise.
59525
59526 2002-06-07  Jim Meyering  <meyering@lucent.com>
59527
59528         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59529         They're needed at least for NetBSD 1.5.2.
59530         ($statxfs_includes): Include those same headers.
59531         ($statxfs_includes): Include sys/vfs.h if available.
59532         ($statxfs_includes): Likewise for sys/statvfs.h.
59533         Check for the following members in both structs statfs and statvfs:
59534         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59535
59536 2002-06-01  Jim Meyering  <meyering@lucent.com>
59537
59538         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59539         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59540
59541 2002-05-28  Jim Meyering  <meyering@lucent.com>
59542
59543         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59544         Reported by Volker Borchert.
59545
59546 2002-05-27  Jim Meyering  <meyering@lucent.com>
59547
59548         Fix a problem seen only on nonconforming systems whereby ls.c's
59549         use of localtime, and then of gettimeofday would cause trouble:
59550         the localtime call used to initialize rpl_gettimeofday's save
59551         mechanism would clobber ls's current local time information so
59552         that in any long listing the first file would always be listed
59553         with date 1970-01-01.  Analysis by Volker Borchert.
59554
59555         * lib/gettimeofday.c (localtime): Undefine.
59556         (rpl_localtime): New function.
59557
59558 2002-05-27  Jim Meyering  <meyering@lucent.com>
59559
59560         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59561         localtime.
59562
59563         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59564         use the replacement function; it wouldn't resolve at link time.
59565         Reported by Volker Borchert.
59566
59567 2002-05-22  Jim Meyering  <meyering@lucent.com>
59568
59569         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59570         file-type.h.
59571         * lib/file-type.h: New file.
59572         * lib/file-type.c (file_type): New file/function.  Extracted from
59573         diffutils.
59574
59575 2002-04-30  Jim Meyering  <meyering@lucent.com>
59576
59577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59578
59579 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59580
59581         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59582
59583 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59584
59585         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59586         Do not check for alloca.h (no longer used) or stdbool.h (was never
59587         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
59588
59589 2002-04-29  Paul Eggert  <eggert@twinsun.com>
59590
59591         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59592
59593 2002-04-29  Jim Meyering  <meyering@lucent.com>
59594
59595         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59596         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59597         Use AC_FUNC_STRNLEN here instead.
59598
59599         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59600         With autoconf-2.53a, it's part of AC_PROG_CC.
59601
59602 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59603
59604         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59605         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59606
59607 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59608
59609         * lib/sig2str.h, lib/sig2str.c: New files.
59610         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59611
59612 2002-04-28  Paul Eggert  <eggert@twinsun.com>
59613
59614         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59615         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
59616         of 127, since 64 is the largest conceivable number for ancient
59617         nonstandard hosts.
59618         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59619
59620 2002-04-28  Jim Meyering  <meyering@lucent.com>
59621
59622         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59623
59624 2002-04-24  Jim Meyering  <meyering@lucent.com>
59625
59626         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59627         (jm_PREREQ): Use it.
59628
59629         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59630         mach/mach.h fcntl.h.
59631         Check for this function: setlocale.
59632
59633 2002-04-24  Jim Meyering  <meyering@lucent.com>
59634
59635         * lib/gettext.h: New file, from Gettext.
59636         * lib/Makefile.am (INCLUDES): Remove -I../intl.
59637         (libfetish_a_SOURCES): Add gettext.h.
59638
59639 2002-04-16  Jim Meyering  <meyering@lucent.com>
59640
59641         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59642         ut_pid, ut_id, ut_exit.
59643
59644 2002-04-16  Jim Meyering  <meyering@lucent.com>
59645
59646         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59647         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59648         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59649
59650 2002-04-12  Jim Meyering  <meyering@lucent.com>
59651
59652         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59653         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
59654         existence of the getmntinfo function.  Needed for Darwin 5.3.
59655
59656         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59657         This is necessary at least on Darwin 5.3.
59658
59659         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59660         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
59661         strnlen.o in the library, and that makes some versions of ranlib
59662         object.
59663
59664 2002-04-12  Jim Meyering  <meyering@lucent.com>
59665
59666         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59667
59668 2002-04-09  Jim Meyering  <meyering@lucent.com>
59669
59670         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59671         to be more precise.  Rather than saying we're checking whether the
59672         function `works', say what we're testing.
59673         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59674         Reported by Bruno Haible.
59675
59676 2002-03-10  Jim Meyering  <meyering@lucent.com>
59677
59678         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59679         Suggestion from Santiago Vila.
59680
59681 2002-03-08  Jim Meyering  <meyering@lucent.com>
59682
59683         * lib/rename.c: Mention that this wrapper is needed also on
59684         mips-dec-ultrix4.4 systems.
59685
59686 2002-03-02  Jim Meyering  <meyering@lucent.com>
59687
59688         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59689         not HAVE_CLOCK_SETTIME.
59690
59691 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59692
59693         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59694         Check for clock_settime.
59695
59696 2002-02-27  Paul Eggert  <eggert@twinsun.com>
59697
59698         * lib/nanosleep.h: Rename to....
59699         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
59700
59701         * lib/gettime.c: New file.
59702         * lib/settime.c: New file.
59703         * lib/stime.c: Remove.
59704
59705         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59706         timespec.h.  Remove nanosleep.h.
59707
59708 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59709
59710         * m4/acl.m4: New file.
59711         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59712         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59713
59714 2002-02-25  Paul Eggert  <eggert@twinsun.com>
59715
59716         * lib/acl.c, lib/acl.h: New files.
59717         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59718
59719 2002-02-24  Jim Meyering  <meyering@lucent.com>
59720
59721         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59722         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59723         cause trouble.  Reported by Nelson Beebe.
59724
59725 2002-02-23  Paul Eggert  <eggert@twinsun.com>
59726
59727         * lib/path-concat.c (xpath_concat): Reorder code to pacify
59728         compilers that don't know that xalloc_die never returns.
59729
59730 2002-02-20  Jim Meyering  <meyering@lucent.com>
59731
59732         * lib/getdate.c: Regenerate using bison-1.33.
59733
59734 2002-02-17  Jim Meyering  <meyering@lucent.com>
59735
59736         * config/config.guess (main): Don't use `head -1'; it's no longer
59737         portable. Use `sed 1q' instead.
59738
59739 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
59740
59741         * m4/codeset.m4: Upgrade to gettext-0.11.
59742         * m4/gettext.m4: Upgrade to gettext-0.11.
59743         * m4/glibc21.m4: Upgrade to gettext-0.11.
59744         * m4/iconv.m4: Upgrade to gettext-0.11.
59745         * m4/isc-posix.m4: Upgrade to gettext-0.11.
59746         * m4/lcmessage.m4: Upgrade to gettext-0.11.
59747         * m4/lib-ld.m4: New file, from gettext-0.11.
59748         * m4/lib-link.m4: New file, from gettext-0.11.
59749         * m4/lib-prefix.m4: New file, from gettext-0.11.
59750         * m4/progtest.m4: Upgrade to gettext-0.11.
59751
59752 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59753
59754         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59755         (jm_PREREQ): Use it.
59756
59757 2002-02-15  Paul Eggert  <eggert@twinsun.com>
59758
59759         * lib/posixver.c, lib/posixver.h: New files.
59760         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59761
59762 2002-02-02  Paul Eggert  <eggert@twinsun.com>
59763             Bruno Haible  <bruno@clisp.org>
59764
59765         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59766         (fwrite_success_callback): New declaration.
59767         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59768         print_unicode_char. Call failure callback instead of error.
59769         (fwrite_success_callback): New function.
59770         (exit_failure_callback): New function.
59771         (fallback_failure_callback): New function.
59772         (print_unicode_char): Call unicode_to_mb.
59773
59774 2002-01-26  Jim Meyering  <meyering@lucent.com>
59775
59776         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59777         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59778
59779 2002-01-26  Jim Meyering  <meyering@lucent.com>
59780
59781         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59782
59783 2002-01-22  Paul Eggert  <eggert@twinsun.com>
59784
59785         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59786
59787 2002-01-22  Jim Meyering  <meyering@lucent.com>
59788
59789         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59790         Otherwise, some versions of automake would omit the rule that makes
59791         Makefile from Makefile.in.
59792
59793 2002-01-21  Paul Eggert  <eggert@twinsun.com>
59794
59795         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59796         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59797         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59798         (memcoll): Set errno to zero if there is no error.
59799
59800         * lib/quotearg.c (quotearg_buffer_restyled):
59801         Fix bug with quoting buffers containing NUL when backslashing escapes.
59802         This bug was exposed by the other changes in this patch.
59803         (quotearg_n_options): New arg ARGSIZE.
59804         All callers changed.
59805         (quoting_options_from_style): New function.
59806         (quotearg_n_style): Use it.
59807         (quotearg_n_style_mem): New function.
59808
59809         * lib/quotearg.h (quotearg_n_style_mem): New function.
59810
59811 2002-01-19  Jim Meyering  <meyering@lucent.com>
59812
59813         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59814         Remove useless quotes: DF_PROG="df".
59815         * m4/strnlen.m4: New file.
59816
59817 2002-01-16  Paul Eggert  <eggert@twinsun.com>
59818
59819         * lib/backupfile.c (ISDIGIT): Comment fix.
59820         * lib/getdate.y (ISDIGIT): Likewise.
59821         * lib/posixtm.c (ISDIGIT, year): Likewise.
59822         * lib/strverscmp.c (ISDIGIT): Likewise.
59823         * lib/userspec.c (ISDIGIT): Likewise.
59824
59825 2002-01-16  Jim Meyering  <meyering@lucent.com>
59826
59827         * lib/getdate.y: Add three semicolons, each just before a closing
59828         brace. Bison (as of version 1.31) no longer papers over that mistake.
59829
59830 2002-01-05  Jim Meyering  <meyering@lucent.com>
59831
59832         * lib/version-etc.c (version_etc_copyright): Update copyright year.
59833
59834 2001-12-19  Paul Eggert  <eggert@twinsun.com>
59835
59836         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59837         not silently exit merely because the output buffer happens to
59838         have nothing pending.
59839
59840 2001-12-18  Paul Eggert  <eggert@twinsun.com>
59841
59842         See the big note in ../ChangeLog.
59843         * lib/human.c (suffixes): Prefer K to k for 1024.
59844         (generate_suffix_backwards): New function.
59845         (human_readable_inexact): Use it.
59846         * lib/xstrtol.c (__xstrtol): If there is no number but there
59847         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
59848         Accept 'K' as well as 'k'.
59849
59850 2001-12-15  Jim Meyering  <meyering@lucent.com>
59851
59852         * lib/regex.h (__restrict_arr): Update from libc.
59853
59854         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59855         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
59856         (STREQ): Define.
59857
59858 2001-12-14  Jim Meyering  <meyering@lucent.com>
59859
59860         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59861         Suggestion from Bruno Haible.
59862
59863 2001-12-10  Jim Meyering  <meyering@lucent.com>
59864
59865         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59866         xrealloc, Instead, include "xalloc.h".
59867         (initbuffer): Don't cast xmalloc return value to char*.
59868         (readline): Reword comment.
59869         Don't cast xrealloc return value to char*
59870         Return NULL, not 0.
59871
59872 2001-12-09  Jim Meyering  <meyering@lucent.com>
59873
59874         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59875         about `signed and unsigned type in conditional expression'.
59876         * lib/posixtm.c (posix_time_parse): Likewise.
59877
59878         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59879
59880         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59881         to avoid a pedantic warning.
59882
59883         * lib/getstr.c: Don't include assert.h.
59884         (getstr): Remove warning-evoking assertions.
59885         Return -1 if offset parameter is out of bounds.
59886         Change the type of a local from int to size_t.
59887
59888         * lib/strftime.c (my_strftime_localtime_r): Include this function
59889         definition in the `#if ! HAVE_TM_GMTOFF' block.
59890
59891         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59892         Include xalloc.h instead.
59893
59894 2001-12-02  Jim Meyering  <meyering@lucent.com>
59895
59896         * lib/tempname.c: Don't declare getenv, thus reverting the change of
59897         2001-11-18.  It's no longer necessary, now that stdlib.h is always
59898         included.
59899
59900         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59901         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
59902
59903 2001-11-30  Akim Demaille  <akim@epita.fr>
59904
59905         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59906         before being defined.
59907
59908 2001-11-27  Paul Eggert  <eggert@twinsun.com>
59909
59910         * lib/quotearg.h (quotearg_n, quotearg_n_style):
59911         First arg is int, not unsigned.
59912         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59913         (SIZE_MAX, UINT_MAX): New macros.
59914         (quotearg_n_options): Abort if N is negative.
59915         Avoid overflow check on hosts where size_t is 64 bits and int
59916         is 32 bits, as overflow is impossible there.
59917         Fix off-by-one typo that caused unnecessary reallocation.
59918
59919 2001-11-27  Jim Meyering  <meyering@lucent.com>
59920
59921         * lib/tempname.c: Merge with version from libc.
59922         * lib/regex.c: Likewise.
59923
59924         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
59925         systems for which STDC_HEADERS is 0, it was not included, resulting in
59926         a warning about an integer-to-pointer conversion problem with getenv.
59927         Reported by Volker Borchert.
59928
59929 2001-11-26  Jim Meyering  <meyering@lucent.com>
59930
59931         * lib/gtod.h: Remove file.
59932         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59933         * lib/gettimeofday.c: Don't include gtod.h.
59934         (GTOD_init): Remove function.
59935         (rpl_gettimeofday): Do its job here instead, rather than aborting.
59936         Suggestion from Volker Borchert.
59937
59938 2001-11-23  Jim Meyering  <meyering@lucent.com>
59939
59940         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
59941         it.
59942         * lib/hash.c (struct hash_table): Define it here instead.
59943
59944 2001-11-22  Jim Meyering  <meyering@lucent.com>
59945
59946         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59947
59948 2001-11-20  Jim Meyering  <meyering@lucent.com>
59949
59950         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59951         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59952
59953 2001-11-19  Jim Meyering  <meyering@lucent.com>
59954
59955         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59956         directory.  Use "conftestXXXXXX" as the template.
59957         Suggestion from Paul Eggert.
59958
59959         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59960         immediately, so the test doesn't mistakenly hit the max-open-files
59961         limit.
59962
59963 2001-11-18  Paul Eggert  <eggert@twinsun.com>
59964
59965         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59966         (TEMPORARIES): New macro.
59967         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
59968         removes an artificial limitation (e.g. HP-UX 10.20, where
59969         TMP_MAX is 17576).
59970
59971 2001-11-18  Jim Meyering  <meyering@lucent.com>
59972
59973         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59974
59975 2001-11-18  Jim Meyering  <meyering@lucent.com>
59976
59977         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59978         on SunOS 4.
59979
59980         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59981         files will be created before anything else.
59982
59983 2001-11-17  Paul Eggert  <eggert@twinsun.com>
59984
59985         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59986         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59987
59988 2001-11-17  Jim Meyering  <meyering@lucent.com>
59989
59990         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59991         Prompted by a report from Bob Proulx.
59992
59993         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59994         Instead, require UTILS_FUNC_MKSTEMP.
59995
59996 2001-11-17  Jim Meyering  <meyering@lucent.com>
59997
59998         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59999         Now, that's done as part of AC_FUNC_STRTOD.
60000
60001 2001-11-17  Jim Meyering  <meyering@lucent.com>
60002
60003         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
60004         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
60005         rather than group writable.  Patch by Juan F. Codagnone.
60006
60007         * lib/readtokens.c: Remove explicit declarations of xmalloc and
60008         xrealloc, Instead, include "xalloc.h".
60009
60010         * lib/mountlist.c: Include unlocked-io.h after all system headers.
60011         Remove explicit declarations of xmalloc, xrealloc,
60012         and xstrdup.  Instead, include "xalloc.h".
60013
60014         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
60015         unlocked-io.h.
60016         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
60017         Likewise.
60018         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
60019
60020         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
60021         Reported by Padraig Brady.
60022
60023         * lib/mkstemp.c: #undef mkstemp.
60024         Include config.h.
60025         (rpl_mkstemp): Rename from mkstemp.
60026         Protoize.
60027
60028 2001-11-16  Jim Meyering  <meyering@lucent.com>
60029
60030         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
60031         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
60032         determine the amount of total physical memory, use pstat_getstatic.
60033         HPUX-11 doesn't define _SC_PHYS_PAGES.
60034         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
60035         If sysconf couldn't be used to determine the amount of available
60036         physical memory, use both pstat_getstatic and pstat_getdynamic.
60037         Based on a patch from Bob Proulx.
60038
60039 2001-11-10  Jim Meyering  <meyering@lucent.com>
60040
60041         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
60042         (jm_PREREQ): Use it.
60043
60044 2001-11-09  Jim Meyering  <meyering@lucent.com>
60045
60046         * m4/jm-macros.m4: Require autoconf-2.52f.
60047         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
60048         Use these AC_-prefixed names, not the AM_-prefixed ones.
60049
60050         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
60051
60052 2001-11-05  Jim Meyering  <meyering@lucent.com>
60053
60054         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
60055
60056 2001-11-04  Jim Meyering  <meyering@lucent.com>
60057
60058         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
60059         $DEFS.
60060
60061 2001-11-03  Jim Meyering  <meyering@lucent.com>
60062
60063         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
60064         of AC_DEFUN.
60065
60066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
60067         know the name of the variable in the macro definition.
60068
60069 2001-11-03  Jim Meyering  <meyering@lucent.com>
60070
60071         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
60072         in argmatch_to_argument call.
60073
60074         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
60075         argument.
60076
60077         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
60078         e.g., a fault due to an attempt to free a NULL pointer.
60079
60080 2001-11-01  Jim Meyering  <meyering@lucent.com>
60081
60082         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
60083         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
60084
60085 2001-11-01  Jim Meyering  <meyering@lucent.com>
60086
60087         * lib/dirfd.c, lib/dirfd.h: New files.
60088         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
60089
60090         * lib/hash.c (hash_print) [TESTING]: Clean up.
60091
60092 2001-10-22  Paul Eggert  <eggert@twinsun.com>
60093
60094         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
60095         to avoid a warning if -Wall.
60096
60097 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
60098
60099         * README: New file
60100         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
60101         (per RMS's instructions, this is now the canonical source)
60102         * lgpl/, gpl/: New directories.
60103
60104 2001-10-21  Paul Eggert  <eggert@twinsun.com>
60105
60106         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
60107
60108 2001-10-21  Jim Meyering  <meyering@lucent.com>
60109
60110         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
60111         this code would end up calling gettext even in packages built
60112         with --disable-nls.
60113         * lib/getopt.c (_): Likewise.
60114         * lib/regex.c (_): Likewise.
60115
60116 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60117
60118         * m4/error.m4 (jm_PREREQ_ERROR):
60119         Do not invoke AC_CHECK_FUNCS with strerror_r, as
60120         AC_FUNC_STRERROR_R does that.
60121         Check for strerror declaration.
60122
60123         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
60124         are supposed to have them these days.
60125         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
60126         Merge changes from latest Autoconf CVS.
60127         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
60128         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
60129         POSIX decided to standardize on the int flavor of strerror_r.
60130
60131 2001-10-20  Paul Eggert  <eggert@twinsun.com>
60132
60133         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
60134         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
60135         Use strerror_r that is only a macro, even if it is not a function.
60136         (strerror): Check for HAVE_DECL_STRERROR before declaring.
60137         (private_strerror): Use prototypes, not old-style function definition.
60138         (print_errno_message): New function.
60139         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
60140         char*-flavored one.
60141         (error_tail, error, error_at_line): Use it.
60142
60143 2001-10-11  Jim Meyering  <meyering@lucent.com>
60144
60145         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
60146         and quote_n (1, ... to avoid clobbering a buffer.
60147
60148 2001-10-05  Jim Meyering  <meyering@lucent.com>
60149
60150         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
60151         hash-pjw.h.
60152         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
60153         * lib/hash-pjw.h: New file.
60154
60155 2001-09-30  Jim Meyering  <meyering@lucent.com>
60156
60157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
60158         `struct fsstat' has the `f_fstypename' member.
60159         Use that to define FS_TYPE, which is now used to make
60160         the getfsstat link test tighter.
60161
60162 2001-09-30  Jim Meyering  <meyering@lucent.com>
60163
60164         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
60165         Include <sys/ucred.h>, for Apple Darwin.
60166         Include sys/mount.h and sys/fs_types.h only if available.
60167         (FS_TYPE): Define.
60168         (read_filesystem_list): Use FS_TYPE.
60169
60170 2001-09-29  Paul Eggert  <eggert@twinsun.com>
60171
60172         * lib/exclude.c (excluded_filename): 0 -> false, since it's
60173         a boolean context.
60174
60175 2001-09-29  Jim Meyering  <meyering@lucent.com>
60176
60177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60178         [one-argument getmntent function]): Include stdio.h before mntent.h.
60179         SunOS 4.1.x needs it for the declaration of `FILE'.
60180         Patch by Volker Borchert.
60181
60182         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
60183         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
60184         sys/fs_types.h, and make the link-test for getfsstat guard #include
60185         directives with appropriate #if HAVE_*_H tests so that we can
60186         detect getfsstat on Apple Darwin1.3.7 systems.
60187         Reported by Nelson Beebe.
60188         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
60189
60190 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60191
60192         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60193         #defines strtoimax.  Also treat the other strto* functions
60194         like strtoimax.
60195
60196         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60197         Check for strtoul and strtoumax,
60198         as those declarations are made even in the signed case.
60199         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
60200         Likewise, for strtol and strtoimax.
60201
60202 2001-09-28  Paul Eggert  <eggert@twinsun.com>
60203
60204         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
60205         #defines strtoimax.  Also treat the other strto* functions
60206         like strtoimax.
60207
60208         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
60209         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
60210         (strtoimax, strtoumax): Do not declare if already defined as a macro.
60211
60212 2001-09-26  Jim Meyering  <meyering@lucent.com>
60213
60214         Most macros in unlocked-io.h had the wrong number of arguments.
60215         * lib/gen-uio: New script.
60216         (USE_UNLOCKED_IO): Define to 1 if not already defined.
60217         * lib/unlocked-io.hin: Remove file.
60218         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
60219         rather than trying to embed it here.
60220         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
60221         Reported by Padraig Brady.
60222
60223 2001-09-25  Volker Borchert  <bt@teknon.de>
60224
60225         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
60226         `result'.
60227
60228 2001-09-24  Jim Meyering  <meyering@lucent.com>
60229
60230         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
60231
60232 2001-09-23  Jim Meyering  <meyering@lucent.com>
60233
60234         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
60235         instead of the mere test for existence of mntent.h.  The latter
60236         would get a false-positive on AIX 3.4 systems.
60237         In the outer getmntent if-block, don't die if neither of the getmntent
60238         tests succeeds.  Instead, just fall through and continue with the
60239         remaining tests.
60240
60241 2001-09-23  Jim Meyering  <meyering@lucent.com>
60242
60243         * lib/mountlist.c: Remove useless parentheses in #if directives.
60244         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
60245         the deprecated MOUNTED symbol is no longer defined in mntent.h.
60246
60247 2001-09-22  Jim Meyering  <meyering@lucent.com>
60248
60249         * m4/gettext.m4: New file.  From gettext.
60250         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
60251         * m4/progtest.m4: Likewise
60252         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
60253         * m4/glibc21.m4: Likewise.
60254
60255         * m4/libintl.m4: Remove.  No longer used.
60256
60257 2001-09-22  Jim Meyering  <meyering@lucent.com>
60258
60259         * lib/localcharset.c: Update from latest gettext.
60260         * lib/config.charset: Likewise.
60261
60262 2001-09-20  Jim Meyering  <meyering@lucent.com>
60263
60264         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
60265         strtoimax.
60266         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
60267         strtoumax.
60268
60269 2001-09-20  Jim Meyering  <meyering@lucent.com>
60270
60271         * lib/xstrtol.c (strtoimax): Guard declaration with
60272         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
60273         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
60274         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
60275         (strtoumax): Likewise, for completeness (it wasn't necessary).
60276
60277 2001-09-17  Paul Eggert  <eggert@twinsun.com>
60278
60279         * lib/strtoimax.c (HAVE_LONG_LONG):
60280         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
60281         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
60282         to work around bug in IBM C compiler.
60283
60284 2001-09-17  Jim Meyering  <meyering@lucent.com>
60285
60286         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
60287         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
60288         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
60289         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
60290         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
60291         whenever the right hand side need not be expanded by the shell.
60292
60293 2001-09-16  Paul Eggert  <eggert@twinsun.com>
60294
60295         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
60296         library.  It's not correct, as some older glibcs are buggy.
60297         fnmatch wasn't fixed until glibc 2.2.
60298
60299         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
60300         special shell magic here.
60301
60302 2001-09-16  Jim Meyering  <meyering@lucent.com>
60303
60304         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
60305         * m4/jm-macros.m4: Require it.
60306
60307 2001-09-16  Jim Meyering  <meyering@lucent.com>
60308
60309         * lib/mkdir.c: New file.
60310
60311 2001-09-15  Jim Meyering  <meyering@lucent.com>
60312
60313         * m4/jm-macros.m4: Check for help2man.
60314
60315 2001-09-11  Jim Meyering  <meyering@lucent.com>
60316
60317         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
60318         The body, by Paul Eggert, was moved here from configure.in.
60319         * m4/jm-macros.m4: Require UTILS_HOST_OS.
60320
60321 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60322
60323         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
60324         (jm_PREREQ): Use it.
60325
60326 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60327
60328         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
60329         Use ssize_t, not int, to store result of readlink.
60330         Check for ssize_t overflow as well as size_t overflow,
60331         as POSIX says the result of readlink is implementation-defined
60332         when ssize_t overflows.
60333         Remove unnecessary cast to char*.
60334         Use free+malloc instead of realloc, as the storage doesn't need
60335         to be preserved and it's clearer and can be more efficient that way.
60336         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
60337         * lib/xreadlink.h (xreadlink): Update prototype.
60338
60339 2001-09-04  Paul Eggert  <eggert@twinsun.com>
60340
60341         * lib/xgetcwd.c: Revert some of the previous change; intead,
60342         fix the HAVE_GETCWD_NULL code to behave more like the
60343         !HAVE_GETCWD_NULL code used to.
60344
60345         Include "xalloc.h".
60346         (xgetcwd): Do not return NULL when memory is exhausted; instead,
60347         invoke xalloc_die.
60348
60349 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60350
60351         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
60352         sys/param.h, as pathmax.h includes them.
60353
60354 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60355
60356         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
60357         (jm_PREREQ_XGETCWD): New macro.
60358
60359         * m4/getcwd.m4: New file.
60360
60361 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60362
60363         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
60364         like the HAVE_GETCWD_NULL code.
60365         Include pathmax.h if not HAVE_GETCWD.
60366         Do not include xalloc.h.
60367         (INITIAL_BUFFER_SIZE): New symbol.
60368         Do not use xmalloc / xrealloc, since the caller is responsible for
60369         handling errors.  Preserve errno around `free' during failure.
60370         Do not overrun buffer when using getwd.
60371
60372 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60373
60374         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
60375         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
60376         getcwd (NULL, 0).
60377
60378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
60379
60380         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
60381         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
60382         spotted by Jim Meyering.
60383
60384 2001-09-03  Jim Meyering  <meyering@lucent.com>
60385
60386         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
60387         failure.
60388
60389 2001-09-02  Jim Meyering  <meyering@lucent.com>
60390
60391         * lib/error.c: Update from GNU libc.
60392
60393 2001-09-01  Jim Meyering  <meyering@lucent.com>
60394
60395         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
60396         Used by df.
60397
60398 2001-09-01  Jim Meyering  <meyering@lucent.com>
60399
60400         * lib/xreadlink.c: New file.
60401         * lib/xreadlink.h: New file.
60402         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
60403         xreadlink.h.
60404
60405         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
60406         doesn't conflict with sparc Solaris 7's definition in
60407         /usr/include/sys/int_types.h.
60408
60409         * lib/exclude.c: Use `""', not `<>' to #include non-system header
60410         files.
60411         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
60412         and strncasecmp as r-values.  Unixware didn't have declarations.
60413
60414 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60415
60416         * lib/xstrtol.h: Add copyright notice.
60417         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
60418         LONGINT_INVALID_SUFFIX_CHAR.
60419
60420 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60421
60422         * lib/xstrtol.c (strtoimax): New decl.
60423
60424 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60425
60426         * lib/xgetcwd.c: Don't include pathmax.h.
60427         Include stdlib.h and unistd.h if available.
60428         Include xalloc.h.
60429         (xmalloc, xstrdup, free): Remove decls.
60430         (xgetcwd): Don't assume sizes fit in unsigned.
60431         Check for overflow when computing sizes.
60432         Simplify reallocation code.
60433
60434 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60435
60436         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
60437         a directory's st_size can have an arbitrary value, so the old
60438         usage could waste an arbitrary amount of memory.  All uses
60439         changed.
60440         * lib/savedir.h: Update prototype.
60441
60442 2001-08-31  Paul Eggert  <eggert@twinsun.com>
60443
60444         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
60445
60446         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60447         old strtoimax.c.
60448
60449         Also, make the following further changes to make this file's
60450         configuration more similar to that of strtol.c:
60451         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
60452         (strtoumax, uintmax_t, strtoull, strtol): Remove.
60453         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60454         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
60455         changed to signed values.
60456
60457         And make the following changes as well:
60458         Fix copyright notice, as 1999 was missing.
60459         (verify): New macro.
60460         (strtoimax): Check sizes at compile-time, not run-time.
60461         Prefer strtol to strtoll if both work.
60462         (main): Remove; it was not that useful and was a pain to maintain.
60463
60464         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60465
60466 2001-08-31  Jim Meyering  <meyering@lucent.com>
60467
60468         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60469         Use an initial, malloc'd, buffer of length 128 rather than
60470         a statically allocated one of length 1024.
60471
60472 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60473
60474         Simplify code, partly by assuming autoconf 2.52 semantics.
60475
60476         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60477
60478         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60479         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60480         All uses removed.
60481         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60482         Move AC_REQUIRE to next-to-top level, to avoid confusion.
60483         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60484         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60485         jm_AC_HEADER_INTTYPES_H.
60486         * m4/jm-macros.m4 (jm_MACROS): Likewise.
60487
60488         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60489
60490         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60491         Quote first arg of AC_DEFUN.
60492         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60493         since they are needed to parse the include file even if we need
60494         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
60495         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60496         but with opposite signedness.
60497
60498 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60499
60500         Merge 'exclude' changes from tar 1.13.22.
60501         This fixes one or two unlikely storage allocation overflow bugs,
60502         but doesn't change user-visible behavior otherwise.
60503
60504 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60505
60506         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60507         (jm_PREREQ_EXCLUDE): New macro.
60508
60509 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60510
60511         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60512         tm to be declared.
60513
60514 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60515
60516         * lib/hash.c: Remove '2001' from copyright notice.
60517
60518 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60519
60520         * lib/full-write.h: New file.
60521         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60522         * lib/full-write.c: Correct credits, as cccp.c no longer
60523         exists and anyway it was so heavily changed from the old cccp
60524         code as to be unrecognizable.  Include full-write.h.
60525         (full_write) Return size_t, with short writes meaning failure.
60526         All callers changed.  This fixes a bug with large buffers
60527         on 64-bit hosts.
60528         * lib/utime.c: Include full-write.h.
60529
60530 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60531
60532         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60533         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60534         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60535         Include if available.
60536         (<xalloc.h>): Include
60537         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60538         (verify): New macro.  Use it to verify that EXCLUDE macros do not
60539         collide with FNM macros.
60540         (struct patopts): New struct.
60541         (struct exclude): Use it, as exclude patterns now come with options.
60542         (new_exclude): Support above changes.
60543         (new_exclude, add_exclude_file):
60544         Initial size must now be a power of two to simplify overflow checking.
60545         (free_exclude, fnmatch_no_wildcards): New function.
60546         (excluded_filename): No longer requires options arg, as the options
60547         are determined by add_exclude.  Now returns bool, not int.
60548         (excluded_filename, add_exclude):
60549         Add support for the fancy new exclusion options.
60550         (add_exclude, add_exclude_file): Now takes int options arg.
60551         Check for arithmetic overflow when computing sizes.
60552         (add_exclude_file): xrealloc might modify errno, so don't
60553         realloc until after errno might be used.
60554
60555         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60556         New macros.
60557         (free_exclude): New decl.
60558         (add_exclude, add_exclude_file): Now takes int options arg.
60559         (excluded_filename): No longer requires options arg, as the options
60560         are determined by add_exclude.  Now returns bool, not int.
60561
60562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
60563
60564         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60565
60566 2001-08-27  Jim Meyering  <meyering@lucent.com>
60567
60568         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60569
60570         * lib/version-etc.c (N_): Remove definition.
60571         Revert most of last change.
60572         Instead, simply don't mark the `Copyright...' string for translation.
60573         Based on advice from Paul Eggert.
60574
60575         * lib/strtoxmax.c: Tweak comment.
60576
60577 2001-08-26  Jim Meyering  <meyering@lucent.com>
60578
60579         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60580
60581         * m4/xstrtoimax.m4: New file.
60582         * m4/xstrtoumax.m4: Add comments explaining why we
60583         AC_REPLACE_FUNCS(strtol).
60584
60585 2001-08-26  Jim Meyering  <meyering@lucent.com>
60586
60587         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60588         of copyright with `%s' so translators don't get an untranslated
60589         message in 2002.
60590         (COPYRIGHT_YEAR): Define.
60591         (version_etc): Use fprintf rather than fputs.
60592         Suggestion from Ulrich Drepper.
60593
60594         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60595
60596         * lib/strtoll.c: New file, from GNU libc.
60597         * lib/xstrtoimax.c: New file.
60598
60599         * lib/xstrtol.h: Add xstrtoimax.
60600         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
60601         * lib/strtoimax.c: New file.  Likewise, but first define
60602         STRTOUXMAX_SIGNED.
60603
60604         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60605         ...
60606         * lib/strtoxmax.c: ... then renamed to this.
60607
60608 2001-08-18  Paul Eggert  <eggert@twinsun.com>
60609
60610         * m4/inttypes.m4: Add AC_PREREQ(2.13).
60611         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60612         (jm_AC_TYPE_INTMAX_T): New macro.
60613         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60614
60615         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60616
60617         * m4/longlong.m4: Renamed from ulonglong.m4.
60618         * m4/inttypes.m4: Renamed from inttypes_h.m4.
60619         * m4/uintmax_t.m4: Removed.
60620
60621 2001-08-13  Paul Eggert  <eggert@twinsun.com>
60622
60623         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60624         Port to Solaris 8, where 'sed' requires a space after the 'r'
60625         command, and where sh dislikes "$/".  Clean up the spacing a bit.
60626         Redirect output to $tmp just once.
60627
60628 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
60629
60630         * lib/addext.c (<errno.h>): Include.
60631         (errno): Declare if not defined.
60632         (addext): Work correctly when pathconf returns -1 and leaves
60633         errno alone because there is no limit.  Also, work even if
60634         pathconf returns a value greater than SIZE_MAX.
60635
60636 2001-08-12  Jim Meyering  <meyering@lucent.com>
60637
60638         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60639         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60640         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60641         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60642         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60643         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60644         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60645         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60646         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60647         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60648         utime.m4, utimes.m4, xstrtoumax.m4:
60649         Quote the first argument in each use of AC_DEFUN.
60650
60651 2001-08-12  Jim Meyering  <meyering@lucent.com>
60652
60653         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60654         Simply `return getcwd (NULL, 0);'.
60655         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60656         Use 1300 as initial value for length, not PATH_MAX.
60657
60658         * lib/pathmax.h: Clean up cpp syntax.
60659
60660 2001-08-12  Jim Meyering  <meyering@lucent.com>
60661
60662         * lib/gettimeofday.c: New file.
60663         * lib/gtod.h: New file.
60664         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60665
60666 2001-08-05  Jim Meyering  <meyering@lucent.com>
60667
60668         * m4/jm-macros.m4: Require autoconf-2.52.
60669
60670 2001-08-04  Jim Meyering  <meyering@lucent.com>
60671
60672         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60673         stmt, to get in sync with glibc.
60674
60675 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60676
60677         The following changes are from gettext 0.10.39 as maintained by
60678         Bruno Haible.
60679
60680         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60681         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60682         with inverted sense.  All uses changed.
60683
60684         * lib/mbswidth.c: Don't include <limits.h>.
60685         Include <stdlib.h> and <string.h> unconditionally.
60686         (iswcntrl, mbsinit, ISCNTRL): New macros.
60687         (mbsnwidth): Use K&R style function declarations.
60688         Don't bother checking for MB_LEN_MAX == 1, since the compiler
60689         can optimize it when MB_CUR_MAX == 1.
60690         The width of control characters is zero, not 1.
60691
60692 2001-08-03  Paul Eggert  <eggert@twinsun.com>
60693
60694         The following changes are from gettext 0.10.39 as maintained by
60695         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60696
60697         * m4/codeset.m4: Upgrade to serial AM1.
60698         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60699         all uses changed.  Quote first arg of AC_DEFUN.
60700         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60701
60702         * m4/iconv.m4: Upgrade to serial AM2.
60703         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60704         Add --with-libconv-prefix.
60705         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
60706         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60707         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60708         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60709         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60710
60711         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60712         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60713         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60714         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60715         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60716         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60717         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60718         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60719         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60720
60721         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60722         string.h any more.
60723
60724         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60725         not the default value.
60726
60727         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
60728         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60729         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
60730         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60731         Also check for iswcntrl, used for wcwidth fallback.
60732         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60733         to Autoconf 2.13.
60734
60735 2001-08-03  Jim Meyering  <meyering@lucent.com>
60736
60737         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60738         as it was in the original.  Reported by Paul Eggert.
60739
60740 2001-07-16  Jim Meyering  <meyering@lucent.com>
60741
60742         * m4/gettimeofday.m4: New file.
60743         Prompted by a report from Bernhard Baehr.
60744
60745 2001-07-15  Jim Meyering  <meyering@lucent.com>
60746
60747         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60748         stuff. Now it's in ../Makefile.cfg.
60749
60750 2001-07-15  Jim Meyering  <meyering@lucent.com>
60751
60752         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60753         (BUILT_SOURCES): Add unlocked-io.h.
60754         (io_functions): Define.
60755         (unlocked-io.h): New rule.
60756         (DISTCLEANFILES): Add unlocked-io.h.
60757         (all-local): Depend on unlocked-io.h, to ensure it is created.
60758
60759         * lib/unlocked-io.hin: New file
60760
60761         * lib/regex.c: Update from glibc.
60762
60763 2001-07-05  Jim Meyering  <meyering@lucent.com>
60764
60765         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60766         recommendation.
60767         (libfetish_a_SOURCES): Put all .h files here instead.
60768         Remove a thus-exposed (better checks in automake) duplicate and
60769         two unnecessary .h files.
60770
60771 2001-07-04  Jim Meyering  <meyering@lucent.com>
60772
60773         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
60774         that generates jm-glibc-io.m4 so that it doesn't trigger any make
60775         distcheck failure.
60776
60777 2001-07-02  Jim Meyering  <meyering@lucent.com>
60778
60779         The following changes were prompted by suggestions from Bruno Haible.
60780
60781         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60782         is now generated.
60783         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60784         definition of EXTRA_DIST.
60785         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60786         ensure that the generated file is created/updated whenever the list
60787         of $(unlocked_functions) is changed.
60788         (jm-glibc-io.m4): New rule.
60789         (unlocked-io.h): New rule -- currently unused.
60790
60791 2001-06-24  Jim Meyering  <meyering@lucent.com>
60792
60793         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60794         unmatched right bracket, rather than kludging it with an extra,
60795         falsely-matching quote in a comment.  Patch by Akim Demaille.
60796
60797 2001-06-11  Jim Meyering  <meyering@lucent.com>
60798
60799         * lib/regex.c: Update from GNU libc.
60800
60801 2001-05-27  Jim Meyering  <meyering@lucent.com>
60802
60803         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60804         Check for ut_type in struct utmp.
60805
60806 2001-05-27  Jim Meyering  <meyering@lucent.com>
60807
60808         * lib/readutmp.h (UT_TYPE): Define.
60809
60810 2001-05-24  Jim Meyering  <meyering@lucent.com>
60811
60812         * lib/argmatch.c: Include "quote.h".
60813         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
60814         quote function.  Reported by Göran Uddeborg.
60815
60816 2001-05-22  Jim Meyering  <meyering@lucent.com>
60817
60818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60819         now that we use the package-supplied version unconditionally.
60820         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60821
60822 2001-05-21  Jim Meyering  <meyering@lucent.com>
60823
60824         * m4/regex.m4: Change a couple backticks to single quotes to avoid
60825         shell syntax errors.
60826
60827 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60828
60829         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60830
60831 2001-05-20  Paul Eggert  <eggert@twinsun.com>
60832
60833         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60834         Don't bother to check library strftime, since
60835         we'll be using our own my_strftime function anyway.
60836         Define my_strftime instead of strftime.
60837
60838 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
60839
60840         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60841         which is not yet declared.
60842
60843 2001-05-15  Jim Meyering  <meyering@lucent.com>
60844
60845         * m4/regex.m4: Use proper quoting so brackets appear in the test
60846         program.
60847         Reported by, and with help from, Bruno Haible.
60848
60849 2001-05-13  Jim Meyering  <meyering@lucent.com>
60850
60851         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60852         undefined.
60853
60854 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60855
60856         dirname code cleanup.  base_name now behaves more compatibly
60857         with POSIX basename when given file names that have trailing
60858         slashes, and similarly for dir_name.  Add new primitives
60859         base_len and dir_len.  Put the directory-name-related decls
60860         into dirname.h.
60861
60862         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60863         * lib/backupfile.c (base_name): Likewise.
60864         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60865         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60866         * lib/makepath.c (strip_trailing_slashes): Likewise.
60867         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60868         ISSLASH): Likewise.
60869         * lib/rename.c (strip_trailing_slashes): Likewise.
60870         * lib/same.c (base_name): Likewise.
60871         * lib/stripslash.c (ISSLASH): Likewise.
60872
60873         * lib/addext.c: Include <dirname.h> after size_t is defined.
60874         * lib/backupfile.c: Likewise.
60875
60876         * lib/addext.c (addext): Use base_len to trim redundant
60877         trailing slashes instead of doing it ourselves.
60878         But do not trim the last slash if it is not redundant.
60879
60880         * lib/backupfile.c (find_backup_file_name,
60881         max_backup_version): Use base_len instead of rolling it ourselves.
60882         Handle the case of "" and (on DOS) "C:" correctly.
60883
60884         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60885         needed. Include <string.h>, <dirname.h>.
60886         (base_name): Allow file names ending in slashes, other than names
60887         that are all slashes.  In this case, return the basename followed
60888         by the slashes.  This is more general, and can be used in places
60889         where the original base_name purposely had an assertion failure.
60890         (base_len): New function.
60891
60892         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60893         Do not include <assert.h>; no longer needed.
60894         Include xalloc.h.
60895         (memrchr): Remove decl.
60896         (dir_name_r): Remove.
60897         (dir_len): Renamed from dirlen.  All callers changed.
60898         Rewrite in terms of base_name, for simplicity and consistency.
60899         (dir_name): Never return NULL.  All callers changed.
60900         Do not include <stdlib.h> in test program; no longer needed.
60901         return 0; is fine for test program.
60902
60903         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60904         New macros.
60905         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60906
60907         * lib/path-concat.c (path_concat): Use base_len to compute
60908         base length, not strlen; this means we cannot rely on memcpy
60909         to null-terminate.
60910
60911         * lib/same.c (STREQ): Remove.
60912         (same_name): Handle the case where the basename ends in trailing '/'.
60913
60914         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60915         a slash was stripped.  Do not strip the last slash after a
60916         file system prefix.
60917
60918 2001-05-11  Paul Eggert  <eggert@twinsun.com>
60919
60920         * lib/Makefile.am (libfetish_a_SOURCES):
60921         Add strftime.c, since we now compile it on all hosts.
60922
60923         * lib/strftime.c (my_strftime):
60924         Define to nstrftime if emacs, but only if my_strftime is not defined.
60925         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60926         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60927         Add one more extra argument: a nanoseconds value.
60928         All uses changed.
60929         (ns): New macro.
60930         (my_strftime function): Add %N format.
60931         (emacs_strftimeu): Renamed from emacs_strftime,
60932         with extra ut argument.
60933
60934 2001-05-09  Paul Eggert  <eggert@twinsun.com>
60935
60936         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60937
60938 2001-04-21  Jim Meyering  <meyering@lucent.com>
60939
60940         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60941         doesn't interfere.
60942
60943 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
60944
60945         * m4/ftruncate.m4: Check for chsize.
60946         Link with ftruncate.o unconditionally if ftruncate is missing.
60947         This was required when cross-compiling to i586-mingw32msvc.
60948
60949 2001-04-08  Jim Meyering  <meyering@lucent.com>
60950
60951         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60952         recomputed; that's necessary when the offset spans a DST transition.
60953         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
60954
60955 2001-04-02  Jim Meyering  <meyering@lucent.com>
60956
60957         * lib/regex.h, regex.c: Update from GNU libc.
60958
60959 2001-03-24  Jim Meyering  <meyering@lucent.com>
60960
60961         * m4/jm-macros.m4: Require autoconf-2.49d.
60962
60963 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
60964
60965         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60966
60967 2001-03-19  Paul Eggert  <eggert@twinsun.com>
60968
60969         * lib/version-etc.c (version_etc_copyright): Update to 2001.
60970
60971 2001-03-17  Jim Meyering  <meyering@lucent.com>
60972
60973         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60974         now that the version in autoconf is equivalent.
60975         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60976
60977         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60978         Suggestion from Akim Demaille.
60979
60980         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60981         (jm_PREREQ_TEMPNAME): New function.
60982
60983 2001-03-16  Paul Eggert  <eggert@twinsun.com>
60984
60985         * lib/tempname.c (uint64_t): Define to uintmax_t if
60986         not defined, and if UINT64_MAX is not defined.
60987         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60988         Reported by John David Anglin.
60989
60990 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
60991
60992         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60993         resolve alias if codeset is empty.
60994         * lib/config.charset (BeOS): Use wildcard syntax.
60995
60996 2001-03-13  Jim Meyering  <meyering@lucent.com>
60997
60998         * lib/path-concat.c (path_concat)
60999         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
61000         concatenating e.g., `C:' and `foo'.
61001         From Bruno Haible.
61002
61003 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61004
61005         * lib/localcharset.c (locale_charset): Don't use
61006         setlocale(LC_CTYPE,NULL). Don't return NULL.
61007         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
61008
61009 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
61010
61011         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
61012         support for DOS/DJGPP.
61013
61014 2001-03-01  Paul Eggert  <eggert@twinsun.com>
61015
61016         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
61017         lacks mkstemp.  Compile our own tempname.c if we compile our own
61018         mkstemp.c, as mkstemp relies on tempname.
61019
61020 2001-03-01  Jim Meyering  <meyering@lucent.com>
61021
61022         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
61023         AH_VERBATIM really does output its argument verbatim.
61024
61025 2001-02-28  Paul Eggert  <eggert@twinsun.com>
61026
61027         * lib/Makefile.am (libfetish_a_SOURCES):
61028         Add dup-safer.c, fopen-safer.c.
61029         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
61030
61031         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
61032         * lib/unistd-safer.h: New files.
61033
61034 2001-02-25  Paul Eggert  <eggert@twinsun.com>
61035
61036         The mkstemp replacement is taken from glibc 2.2.2, with some
61037         portability fixes for use outside glibc, as follows:
61038
61039         * lib/tempname.c (struct_stat64): New macro.
61040         (direxists, __gen_tempname): Use it.
61041         This avoids a portability problem with Solaris 8.
61042
61043         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
61044         (<stddef.h>, <stdint.h>, <string.h>):
61045         Include only if STDC_HEADERS || _LIBC.
61046         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
61047         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
61048         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
61049         (__set_errno): Define this macro if <errno.h> doesn't.
61050         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
61051         Define these macros if <stdio.h> doesn't.
61052         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
61053         Define these macros if <sys/stat.h>
61054         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
61055         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
61056         __xstat64): Define if not _LIBC.
61057         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
61058         (__gen_tempname): Invoke gettimeofday only if
61059         HAVE_GETTIMEOFDAY || _LIBC;
61060         otherwise, fall back on plain "time".
61061         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
61062
61063         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
61064
61065         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
61066
61067 2001-02-18  Paul Eggert  <eggert@twinsun.com>
61068
61069         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
61070
61071 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61072
61073         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
61074         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
61075         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
61076         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
61077
61078 2001-02-17  Paul Eggert  <eggert@twinsun.com>
61079
61080         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
61081         Remove workaround macros for hosts that have mbrtowc but not
61082         mbstate_t, as we now insist on proper declarations for both
61083         before using mbrtowc.
61084
61085 2001-02-17  Jim Meyering  <meyering@lucent.com>
61086
61087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
61088         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
61089         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
61090         UnixWare 7.1.1.
61091
61092         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
61093         rather than AC_CACHE_VAL.
61094
61095 2001-02-17  Jim Meyering  <meyering@lucent.com>
61096
61097         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
61098         around included file name.
61099
61100         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
61101
61102         * lib/strftime.c: Update from GNU libc (the only changes were to
61103         comments).
61104
61105 2001-02-17  Jim Meyering  <meyering@lucent.com>
61106
61107         * lib/regex.c: Update from libc.
61108
61109 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
61110
61111         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
61112         clash.
61113
61114 2001-02-16  Paul Eggert  <eggert@twinsun.com>
61115
61116         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
61117         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
61118         Reported by Mark Hounschell via Paul Eggert.
61119
61120 2001-02-07  Jim Meyering  <meyering@lucent.com>
61121
61122         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
61123
61124 2001-02-05  Jim Meyering  <meyering@lucent.com>
61125
61126         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
61127         it includes the patch required for `large file' support with at least
61128         HP-UX's 10.20 /bin/cc.
61129
61130 2001-02-03  Jim Meyering  <meyering@lucent.com>
61131
61132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
61133         AS_IF, now that it works once again (mysteriously).
61134         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61135
61136 2001-01-30  Jim Meyering  <meyering@lucent.com>
61137
61138         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
61139         * m4/chown.m4: Rename conftestchown to conftest.chown.
61140         * m4/rename.m4: s/conftestdir/conftest.d1/ and
61141         s/conftestdir2/conftest.d2/.
61142         * m4/utimes.m4: s/conftestdata/conftest.data/
61143         Inspired by Pavel Roskin's change in autoconf.
61144
61145 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
61146
61147         * lib/config.charset: Update for FreeBSD 4.2.
61148
61149 2001-01-27  Jim Meyering  <meyering@lucent.com>
61150
61151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
61152         a use of AS_IF.
61153         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
61154
61155 2001-01-26  Jim Meyering  <meyering@lucent.com>
61156
61157         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
61158         quotearg.c includes it.
61159
61160 2001-01-26  Jim Meyering  <meyering@lucent.com>
61161
61162         * lib/quotearg.c: Include stddef.h.
61163         * lib/quote.c: Include stddef.h.
61164         Reported by Axel Kittenberger.
61165
61166         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
61167         line in double quotes so that it evokes a better diagnostic.
61168         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
61169         Reported by Axel Kittenberger.
61170
61171 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
61172
61173         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
61174         as if it was a `charset'.
61175
61176 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61177
61178         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
61179         has const.
61180
61181 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
61182
61183         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
61184         to avoid a warning.  Add back 'const' to inptr.
61185
61186 2001-01-20  Jim Meyering  <meyering@lucent.com>
61187
61188         Be sure that headers are checked before used in code compiled
61189         for the type checks.
61190         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
61191         In place of that, invoke jm_CHECK_ALL_TYPES.
61192         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
61193         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
61194         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
61195         The check for ssize_t was mistakenly run before the test for unistd.h.
61196
61197         The configure-time check for stdbool.h was missing.
61198         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
61199         (jm_PREREQ_HASH): New function.
61200
61201 2001-01-17  Jim Meyering  <meyering@lucent.com>
61202
61203         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
61204         for autoconf-2.49c.
61205         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
61206
61207 2001-01-16  Jim Meyering  <meyering@lucent.com>
61208
61209         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
61210         From Bruno Haible.
61211
61212 2001-01-14  Jim Meyering  <meyering@lucent.com>
61213
61214         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
61215         foo and bar.  Create conftestdir/ in the script, not in the C code.
61216         Remove directories in the script, not in the C code.
61217         Remove conftestdir{,2} before trying to create the directory.
61218         Make the entire configure script fail if the mkdir fails.
61219
61220 2001-01-14  Jim Meyering  <meyering@lucent.com>
61221
61222         * lib/rename.c: New file.  From Volker Borchert.
61223         Include stdlib.h, string.h or strings.h, and xalloc.h.
61224         Use strip_trailing_slashes rather than open-coding it.
61225
61226 2001-01-03  Paul Eggert  <eggert@twinsun.com>
61227
61228         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
61229
61230 2001-01-03  Jim Meyering  <meyering@lucent.com>
61231
61232         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
61233         of local `inptr' to avoid warning with some system declarations of
61234         iconv.
61235
61236 2001-01-02  Volker Borchert  <bt@teknon.de>
61237
61238         * m4/rename.m4: New file.
61239         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
61240
61241 2001-01-01  Jim Meyering  <meyering@lucent.com>
61242
61243         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
61244         even on systems with utmpx.h.  It's necessary for the declaration of
61245         utmp's ut_user member.  Reported by Andreas Jaeger.
61246
61247         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
61248         available. They are required for the declarations of getgrgid and
61249         getpwuid resp.
61250         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
61251         Reported by Andreas Jaeger.
61252
61253 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
61254
61255         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
61256         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
61257         so `make install' also works in VPATH builds.
61258
61259 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
61260
61261         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
61262         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
61263         can be used in subdirectories.
61264
61265 2000-12-29  Paul Eggert  <eggert@twinsun.com>
61266
61267         * lib/modechange.c: Do not assume that mode_t uses the
61268         traditional octal encoding.  E.g. "chmod 1 FOO" should set
61269         the other-execute bit of FOO even if S_IXOTH != 1.
61270
61271         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
61272         WOTH, XOTH, ALLM): New macros.
61273         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
61274          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
61275         Use them.
61276         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
61277         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
61278         (mode_compile):
61279         No need to use uintmax_t; unsigned long is long enough.
61280         Don't bother to get suffix since we don't use it.
61281
61282 2000-12-26  Jim Meyering  <meyering@lucent.com>
61283
61284         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
61285         better with autoheader.
61286
61287 2000-12-24  Jim Meyering  <meyering@lucent.com>
61288
61289         * lib/hash.c (is_prime): Return explicit boolean values.
61290         (hash_get_first): Return NULL to appease Irix5.6's 89.
61291         Reported by Nelson Beebe.
61292
61293 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
61294
61295         * lib/localcharset.c (locale_charset): Add support for Win32.
61296
61297 2000-12-18  Paul Eggert  <eggert@twinsun.com>
61298
61299         * lib/physmem.h, lib/physmem.c: New files.
61300
61301         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
61302         (noinst_HEADERS): Add physmem.h.
61303
61304         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
61305         't' for compatibility with Solaris 8 sort.
61306
61307 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
61308
61309         * lib/config.charset: Add support for BeOS.
61310
61311 2000-12-17  Jim Meyering  <meyering@lucent.com>
61312
61313         * m4/dos.m4 (jm_AC_DOS): New file and macro.
61314         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
61315
61316 2000-12-16  Jim Meyering  <meyering@lucent.com>
61317
61318         This bug had a serious impact on chown: `chown N:M FILE' (for integer
61319         N and M) would have treated it like `chown N:N FILE'.
61320
61321         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
61322
61323 2000-12-16  Jim Meyering  <meyering@lucent.com>
61324
61325         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
61326         SHELLS_FILE to a file name that's useful on djgpp systems.
61327         Include stdlib.h.
61328         (ADDITIONAL_DEFAULT_SHELLS): Define.
61329         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
61330         Based mostly on a patch from Prashant TR.
61331
61332 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
61333
61334         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
61335         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
61336         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
61337
61338 2000-12-08  Andreas Schwab  <schwab@suse.de>
61339
61340         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
61341         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
61342
61343 2000-12-07  Jim Meyering  <meyering@lucent.com>
61344
61345         * lib/stripslash.c (ISSLASH): Define.
61346         (strip_trailing_slashes): Use ISSLASH rather than comparing against
61347         `/'.
61348         From Prashant TR.
61349
61350         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
61351         (dir_name_r): Declare this function as static.
61352         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
61353         manifest itself on a name containing a mix of slashes and
61354         backslashes.
61355         Make this function work with names starting with a DOS-style
61356         drive letter and colon prefix.
61357         (dir_name): Append `.' if necessary.
61358         Based mostly on patches from Prashant TR and Eli Zaretskii.
61359
61360         * lib/dirname.h (dir_name_r): Remove prototype.
61361
61362 2000-12-06  Paul Eggert  <eggert@twinsun.com>
61363
61364         * m4/off_t-format.m4: Remove this file.
61365         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
61366
61367 2000-12-06  Jim Meyering  <meyering@lucent.com>
61368
61369         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
61370         replacement strtoull, we may well need the replacement strtoul, too.
61371         Check for declarations of strtoul and strtoull.
61372         Check for strtol.  Mainly as a cue to cause automake to include
61373         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
61374         Check for limits.h -- strtol.c needs it.
61375
61376 2000-12-05  Jim Meyering  <meyering@lucent.com>
61377
61378         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
61379
61380 2000-12-04  Jim Meyering  <meyering@lucent.com>
61381
61382         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
61383         Also include memory.h, stdlib.h, unistd.h if appropriate.
61384         Reported by Andreas Jaeger (conflicting declaration of malloc).
61385
61386 2000-12-02  Jim Meyering  <meyering@lucent.com>
61387
61388         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
61389         * m4/jm-macros.m4 (jm_MACROS): require it.
61390
61391 2000-12-02  Jim Meyering  <meyering@lucent.com>
61392
61393         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
61394
61395 2000-12-01  Paul Eggert  <eggert@twinsun.com>
61396
61397         * lib/memrchr.c: Include <config.h> before any system include file.
61398
61399 2000-11-30  Jim Meyering  <meyering@lucent.com>
61400
61401         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
61402
61403 2000-11-30  Jim Meyering  <meyering@lucent.com>
61404
61405         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
61406
61407 2000-11-29  Paul Eggert  <eggert@twinsun.com>
61408
61409         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
61410
61411 2000-11-26  Jim Meyering  <meyering@lucent.com>
61412
61413         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
61414
61415 2000-11-22  Paul Eggert  <eggert@twinsun.com>
61416
61417         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
61418         size of (size_t) -1; it's not portable.
61419
61420 2000-11-17  Jim Meyering  <meyering@lucent.com>
61421
61422         * lib/strstr.c: Update from GNU libc.
61423
61424 2000-11-17  Akim Demaille  <akim@epita.fr>
61425
61426         * lib/obstack.h: Formatting changes.
61427         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
61428         prevent type checking.
61429         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
61430         cast the value to (void *): assigning a `foo *' to a `void *'
61431         variable is valid.
61432         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
61433
61434 2000-11-16  Jim Meyering  <meyering@lucent.com>
61435
61436         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
61437
61438 2000-11-11  Jim Meyering  <meyering@lucent.com>
61439
61440         * lib/error.c: Add a couple #includes, merging from GNU libc version.
61441
61442 2000-11-10  Jim Meyering  <meyering@lucent.com>
61443
61444         * lib/obstack.h: Update from GNU libc.
61445         * lib/obstack.c: Likewise.
61446
61447 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
61448
61449         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61450
61451 2000-11-06  Paul Eggert  <eggert@twinsun.com>
61452
61453         * lib/getusershell.c (setusershell): Use rewind rather than
61454         fseek/fseeko, to avoid configuration hassles with fseeko.
61455         Don't bother opening SHELLS_FILE if shellstream is NULL;
61456         it's not necessary.
61457
61458 2000-11-05  Jim Meyering  <meyering@lucent.com>
61459
61460         * lib/makepath.h (make_dir): Declare.
61461         * lib/makepath.c (make_dir): Remove `static' attribute.
61462         Tweak a comment.
61463
61464 2000-11-04  Jim Meyering  <meyering@lucent.com>
61465
61466         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61467
61468 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
61469
61470         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
61471         last one in a bucket, advance to the next bucket.
61472
61473 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
61474
61475         * lib/fnmatch.c: Do not comment out all the code if we are using
61476         the GNU C library, because in some cases we are replacing buggy
61477         code in the GNU C library itself.
61478
61479 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
61480
61481         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61482         (regex_compile): Catch bogus \(\1\).
61483
61484 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61485
61486         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61487         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61488         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61489
61490 2000-10-30  Paul Eggert  <eggert@twinsun.com>
61491
61492         * lib/error.h, getline.h, modechange.h:
61493         Remove "2000" from Copyright line, as the file hasn't been
61494         changed this year other than in the copyright notice.
61495
61496         * lib/xalloc.h: Add "2000" to Copyright line, as this file
61497         was changed this year.
61498
61499 2000-10-29  Jim Meyering  <meyering@lucent.com>
61500
61501         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61502         renaming.
61503         * m4/ls-mntd-fs.m4: Likewise
61504
61505 2000-10-29  Jim Meyering  <meyering@lucent.com>
61506
61507         * lib/xstat.in: Fix grammar in comment.
61508
61509 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
61510
61511         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61512         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61513         doesn't define __restrict_arr.
61514
61515 2000-10-28  Jim Meyering  <meyering@lucent.com>
61516
61517         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61518         (jm_PREREQ_MEMCHR): New function.
61519
61520 2000-10-28  Jim Meyering  <meyering@lucent.com>
61521
61522         * lib/memchr.c: Update from libc.
61523         Adjust for portability:
61524         [HAVE_STDLIB_H]: Include stdlib.h.
61525         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61526         Undef __memchr, too.
61527         [!weak_alias]: Define __memchr to memchr.
61528
61529         * lib/regex.c: Update from libc.
61530         * lib/regex.h: Likewise.
61531         * lib/getopt1.c: Likewise.
61532         * lib/memcmp.c: Likewise.
61533
61534         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61535         Avoid using fseek, when possible -- it's broken by design.
61536         Patch by Ulrich Drepper.
61537
61538 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
61539
61540         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61541         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61542         Giving in to popular pressure to shut up the compiler with casts.
61543
61544 2000-10-26  Jim Meyering  <meyering@lucent.com>
61545
61546         * lib/strftime.c: Update from libc.
61547
61548 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
61549
61550         * regex.c: More `unsigned char' -> `re_char' changes.
61551         Also change several `int' into `re_wchar_t'.
61552         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61553         (PUSH_FAILURE_POINTER): Don't cast any more.
61554         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61555         We want GCC to complain, since this piece of code makes
61556         re_match non-reentrant, which *should* be fixed.
61557         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61558         (EXTEND_BUFFER): Use RETALLOC.
61559         (SET_LIST_BIT): Don't cast.
61560         (re_wchar_t): New type.
61561         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61562         that those two functions will always properly return.
61563         (IMMEDIATE_QUIT_CHECK): Cast to void.
61564         (analyse_first): Use recursion rather than an explicit stack.
61565         (re_compile_fastmap): Can't fail anymore.
61566         (re_search_2): Don't check re_compile_fastmap for failure.
61567         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61568         Now also sets the new value (passed in a new argument).
61569         (re_match_2_internal): Use it.
61570         Also, use a new var `reg' of type size_t when looping through regs
61571         rather than reuse the inappropriate `mcnt'.
61572
61573 2000-10-25  Jim Meyering  <meyering@lucent.com>
61574
61575         * lib/obstack.c: Update from libc.
61576
61577 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
61578
61579         * regex.c (regex_compile): Change the way of handling a range from
61580         a char less than 256 to a char not less than 256.
61581
61582 2000-10-24  Andrew Innes  <andrewi@gnu.org>
61583
61584         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61585         NT-Emacs only.
61586         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61587         so that re_search functions only quit when callers expect them to.
61588
61589 2000-10-23  Jim Meyering  <meyering@lucent.com>
61590
61591         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61592         wrong.  That set_locale call must not have any side effects.
61593         From Paul Eggert.
61594
61595 2000-10-22  Jim Meyering  <meyering@lucent.com>
61596
61597         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61598         [CYCLIC]: Remove now-unused definition.
61599
61600         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61601         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61602         Suggestion from Ulrich Drepper.
61603
61604 2000-10-21  Jim Meyering  <meyering@lucent.com>
61605
61606         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61607         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61608         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61609
61610 2000-10-21  Jim Meyering  <meyering@lucent.com>
61611
61612         * lib/dirname.c (memrchr): Declare if necessary.
61613         (dir_name): Remove the restriction that there be no
61614         trailing slashes.  Now, this code skips past them, effectively
61615         ignoring them.
61616         [TEST_DIRNAME] (main): New unit tests.
61617
61618         * lib/memrchr.c: New file from GNU libc.
61619         Undef __memrchr, too.
61620         [!weak_alias]: Define __memrchr to memrchr.
61621         Guard weak_alias use with `#ifdef weak_alias'.
61622
61623 2000-10-21  Jim Meyering  <meyering@lucent.com>
61624
61625         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61626         (dir_name): Use dir_name_r.
61627         * lib/dirname.h (dir_name_r): Declare it.
61628
61629 2000-10-17  Jim Meyering  <meyering@lucent.com>
61630
61631         * lib/quote.h (PARAMS): Define and use.
61632         Reported by Akim Demaille.
61633
61634         * lib/getopt.c: Update from libc.
61635
61636 2000-10-16  Jim Meyering  <meyering@lucent.com>
61637
61638         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61639         setlocale.
61640         From Jan Fedak.
61641
61642 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
61643
61644         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61645
61646 2000-09-25  Jim Meyering  <meyering@lucent.com>
61647
61648         * lib/md5.h (rol): Define (from GnuPG).
61649
61650         * lib/sha.c: Give credit (GnuPG) where due.
61651         (M): Use rol rather than open-coding it.
61652         Add a FIXME comment.
61653
61654 2000-09-21  Jim Meyering  <meyering@lucent.com>
61655
61656         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61657         Reported by Michael Stone.
61658
61659 2000-09-20  Jim Meyering  <meyering@lucent.com>
61660
61661         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61662         (noinst_HEADERS): Add sha.h.
61663         Based on code from Scott G. Miller and from GnuPG.
61664
61665 2000-09-18  Jim Meyering  <meyering@lucent.com>
61666
61667         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61668         LIBS. Otherwise, everyone ends up linking with -lelf for some
61669         configurations.
61670         Reported by Mike Stone.
61671
61672 2000-09-15  Jim Meyering  <meyering@lucent.com>
61673
61674         * lib/regex.c: Update from libc.
61675
61676 2000-09-10  Jim Meyering  <meyering@lucent.com>
61677
61678         * lib/getopt.c (_getopt_internal): Update from glibc.
61679
61680 2000-09-09  Jim Meyering  <meyering@lucent.com>
61681
61682         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61683         think it should be used as a general replacement for isascii.
61684         * lib/fnmatch.c: Likewise.
61685         * lib/mbswidth.c: Likewise
61686         * lib/regex.c: Likewise.
61687
61688         Don't use atoi.
61689         * lib/userspec.c: Include sys/param.h and limits.h.
61690         Include xstrtol.h.
61691         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61692         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61693         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61694         UID, GID.  Check range.
61695
61696 2000-09-06  Jim Meyering  <meyering@lucent.com>
61697
61698         * lib/getopt.c (_getopt_internal): Update from glibc.
61699
61700 2000-08-30  Jim Meyering  <meyering@lucent.com>
61701
61702         * lib/strftime.c: Merge in changes from GNU libc.
61703
61704 2000-08-26  Jim Meyering  <meyering@lucent.com>
61705
61706         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61707         * m4/fpending.m4: New file.
61708
61709 2000-08-26  Jim Meyering  <meyering@lucent.com>
61710
61711         * lib/closeout.c: Include "__fpending.h".
61712         (close_stdout_status): Return right away if there's nothing to flush.
61713
61714         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61715         * lib/__fpending.c: New file.
61716         * lib/__fpending.h: New file.
61717
61718 2000-08-20  Jim Meyering  <meyering@lucent.com>
61719
61720         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61721         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
61722         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
61723
61724 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
61725
61726         Improve fileutils installation on systems where running
61727         programs (like install) can't be unlinked.
61728         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61729         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61730
61731 2000-08-07  Paul Eggert  <eggert@twinsun.com>
61732
61733         Standardize on "memory exhausted" instead of "Memory exhausted"
61734         or "virtual memory exhausted".
61735         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61736         "virtual memory exhausted".
61737         * lib/same.c (same_name): Invoke xalloc_die instead of printing
61738         our own message.
61739         * lib/userspec.c (parse_user_spec): Likewise.
61740         * lib/bumpalloc.h: comment fix
61741         * lib/same.c, userspec.c: Include xalloc.h.
61742
61743         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61744         not char *const and pointing to a constant array.
61745         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61746         (xrealloc): Comment fix.
61747
61748         * lib/userspec.c (parse_user_spec):
61749         Don't translate a message until just before returning,
61750         to avoid unnecessary translation.
61751
61752 2000-08-07  Jim Meyering  <meyering@lucent.com>
61753
61754         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61755         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61756         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61757         getgroups.c, gethostname.c, getopt.h, group-member.c,
61758         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61759         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61760         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61761         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61762         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61763         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61764         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61765         yesno.c: Back out Copyright date changes for each file with no change
61766         this year.  This eases coordination with other programs using the same
61767         source code modules.  From Paul Eggert.
61768
61769 2000-08-06  Paul Eggert  <eggert@twinsun.com>
61770
61771         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61772         not char, for compatibility with glibc 2.1.3 strftime.c.
61773
61774 2000-08-03  Greg McGary  <greg@mcgary.org>
61775
61776         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61777         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61778         (EXTEND_BUFFER): Use them.
61779
61780 2000-08-01  Jim Meyering  <meyering@lucent.com>
61781
61782         * lib/dirname.c (ISSLASH): Define.
61783         (BACKSLASH_IS_PATH_SEPARATOR): Define.
61784         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61785         both `\' and `/' may be use as path separators.
61786         Based on a patch from Prashant TR.
61787
61788 2000-07-31  Paul Eggert  <eggert@twinsun.com>
61789
61790         * lib/quotearg.c (quotearg_n_options): Don't make the initial
61791         slot vector a constant, since it might get modified.
61792
61793 2000-07-31  Jim Meyering  <meyering@lucent.com>
61794
61795         * lib/xmalloc.c: Use `virtual memory exhausted', not
61796         `Memory exhausted'.
61797         * lib/obstack.c (print_and_abort): Likewise.
61798
61799 2000-07-30  Paul Eggert  <eggert@twinsun.com>
61800
61801         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61802         buffer, so that the caller can always quote one small
61803         component of a "memory exhausted" message in slot 0.
61804         From a suggestion by Jim Meyering.
61805
61806 2000-07-30  Jim Meyering  <meyering@lucent.com>
61807
61808         * lib/makepath.c (make_path): Quote the other instance, too.
61809
61810         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61811         (STATIC_BUF_SIZE): Define.
61812         (quotearg_n_options): Use only statically allocated storage when
61813         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61814         than STATIC_BUF_SIZE.
61815
61816 2000-07-29  Jim Meyering  <meyering@lucent.com>
61817
61818         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61819         * lib/dirname.c (dir_name): Likewise.
61820
61821         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61822         `/'.
61823
61824         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61825         (dir_name): Assert that there are no trailing slashes.
61826
61827 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
61828
61829         * lib/mbswidth.h (mbswidth): Add a flags argument.
61830         (mbswidth): New declaration.
61831         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61832         * lib/mbswidth.c (mbswidth): Add a flags argument.
61833         (mbsnwidth): New function.
61834
61835 2000-07-24  Jim Meyering  <meyering@lucent.com>
61836
61837         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
61838
61839 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61840
61841         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61842
61843 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61844
61845         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61846         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61847         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61848         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61849         invoke multibyte primitives.
61850
61851 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61852
61853         * lib/quotearg.c:
61854         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61855         so that mbstate_t is always defined.
61856
61857         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61858         be 1 in at least one GCC installation, and this configuration
61859         error is likely to be common.  Ignoring MB_LEN_MAX hurts
61860         performance on hosts that have mbrtowc but have only unibyte
61861         locales, but I assume these hosts are rare.
61862
61863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
61864
61865         * lib/mbswidth.c (_XOPEN_SOURCE):
61866         Don't define; this causes problems on Solaris 7.
61867         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61868
61869 2000-07-23  Jim Meyering  <meyering@lucent.com>
61870
61871         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61872         too: getgrgid, getpwuid, getuid.
61873
61874 2000-07-23  Jim Meyering  <meyering@lucent.com>
61875
61876         * lib/basename.c (base_name): Add an assertion.
61877
61878 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
61879
61880         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61881         shadow its mbsinit function.
61882
61883 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61884
61885         * lib/mbswidth.h: New file.
61886         * lib/mbswidth.c: New file.
61887         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61888         (noinst_HEADERS): Add mbswidth.h.
61889
61890 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
61891
61892         * lib/config.charset: Add support for FreeBSD. Improve support for
61893         HP-UX and IRIX 6.
61894
61895 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
61896
61897         * m4/mbswidth.m4: New file.
61898         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61899
61900 2000-07-15  Jim Meyering  <meyering@lucent.com>
61901
61902         * lib/makepath.c: Include quote.h.
61903         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61904         corresponding argument in a `quote (...)' call.
61905         Give better diagnostics.
61906
61907         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61908         (noinst_HEADERS): Add quote.h.
61909
61910         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
61911         from tar's src/misc.c.
61912         * lib/quote.h: New file.  Prototypes for same.
61913
61914 2000-07-14  Paul Eggert  <eggert@twinsun.com>
61915
61916         From a suggestion by Bruno Haible.
61917         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61918         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61919         to decide whether to define the BeOS workaround macro;
61920         this adjusts to the change to AC_MBSTATE_T.
61921
61922 2000-07-14  Jim Meyering  <meyering@lucent.com>
61923
61924         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61925         jm_AC_TYPE_UINTMAX_T.
61926
61927 2000-07-13  Paul Eggert  <eggert@twinsun.com>
61928
61929         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61930
61931         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61932         quotearg_buffer_restyled): Add support for
61933         clocale_quoting_style.  Undo previous change to
61934         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61935         and "{RIGHT QUOTATION MARK}" msgids.
61936
61937 2000-07-10  Paul Eggert  <eggert@twinsun.com>
61938
61939         From a suggestion by Bruno Haible.
61940         * m4/mbstate_t.m4 (AC_MBSTATE_T):
61941         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
61942         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61943         and mbstate_t, to a single-part test that simply defines mbstate_t.
61944         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61945         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61946
61947 2000-07-10  Jim Meyering  <meyering@lucent.com>
61948
61949         * m4/strerror_r.m4: Mirror the correction made in autoconf.
61950
61951         * m4/gnu-source.m4: Output to confdefs.h directly.
61952         Suggestion from Akim Demaille.
61953
61954 2000-07-09  Paul Eggert  <eggert@twinsun.com>
61955
61956         The old behavior of quoting `like this' doesn't look good with
61957         newer, ISO-style fonts.  See:
61958         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61959
61960         Instead, quote "like this" by default.  Let the translator
61961         tailor the locale-specific quoting behavior by providing
61962         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61963
61964         * lib/quotearg.c (N_): New macro.
61965         (gettext_default): New function.
61966         (quotearg_buffer_restyled): Use
61967         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61968         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61969
61970 2000-07-09  Jim Meyering  <meyering@lucent.com>
61971
61972         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61973         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
61974
61975         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61976         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61977
61978 2000-07-09  Jim Meyering  <meyering@lucent.com>
61979
61980         * lib/Most files: Update copyright dates to include 2000.
61981
61982 2000-07-08  Jim Meyering  <meyering@lucent.com>
61983
61984         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61985         if not defined.
61986         (xgethostname): Remove now-unnecessary #ifdef.
61987         Move declaration of `err' into loop where it's used.
61988
61989 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61990         and Bruno Haible  <haible@clisp.cons.org>
61991
61992         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61993         only if the test for an object-type mbstate_t fails.  This
61994         prevents us from mistakenly reporting that mbstate_t is a
61995         system object type after we "#define mbstate_t int" to work
61996         around its lack.
61997
61998 2000-07-05  Paul Eggert  <eggert@twinsun.com>
61999         and Bruno Haible  <haible@clisp.cons.org>
62000
62001         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
62002
62003 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62004
62005         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
62006         to strerror_r.
62007         Include <ctype.h> for use of isalpha.
62008
62009 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62010
62011         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
62012         by allocating a larger buffer. Test the gethostname return value for
62013         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
62014         returns an error and ENAMETOOLONG isn't defined.
62015
62016 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
62017
62018         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
62019         dimension.
62020
62021 2000-07-04  Jim Meyering  <meyering@lucent.com>
62022
62023         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
62024         of the deprecated AC_CHECKING.
62025
62026 2000-07-04  Jim Meyering  <meyering@lucent.com>
62027
62028         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
62029         Reported by Bruno Haible.
62030
62031 2000-07-04  Jim Meyering  <meyering@lucent.com>
62032
62033         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
62034         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
62035         lacks mbrtowc.
62036
62037 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62038
62039         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
62040         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
62041
62042 2000-07-03  Paul Eggert  <eggert@twinsun.com>
62043         and Bruno Haible  <haible@clisp.cons.org>
62044
62045         * lib/quotearg.c (mbrtowc):
62046         Assign to *pwc, and return 1 only if result is nonzero.
62047         (iswprint): Use ISPRINT when substituting our own mbrtowc.
62048
62049 2000-07-03  Jim Meyering  <meyering@lucent.com>
62050
62051         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
62052
62053 2000-07-03  Jim Meyering  <meyering@lucent.com>
62054
62055         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
62056         This is necessary to get a definition of e.g., UTMP_FILE on
62057         HP-UX 10.20.
62058         From Bob Proulx.
62059
62060 2000-07-02  Jim Meyering  <meyering@lucent.com>
62061
62062         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
62063
62064         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
62065         AC_LIBOBJ(function_name).
62066         * m4/chown.m4: Likewise.
62067         * m4/fnmatch.m4: Likewise.
62068         * m4/ftruncate.m4: Likewise.
62069         * m4/getgroups.m4: Likewise.
62070         * m4/getline.m4: Likewise.
62071         * m4/group-member.m4: Likewise.
62072         * m4/jm-macros.m4: Likewise.
62073         * m4/lstat.m4: Likewise.
62074         * m4/malloc.m4: Likewise.
62075         * m4/memcmp.m4: Likewise.
62076         * m4/nanosleep.m4: Likewise.
62077         * m4/putenv.m4: Likewise.
62078         * m4/realloc.m4: Likewise.
62079         * m4/regex.m4: Likewise.
62080         * m4/stat.m4: Likewise.
62081         * m4/strftime.m4: Likewise.
62082
62083 2000-07-02  Jim Meyering  <meyering@lucent.com>
62084
62085         * lib/quotearg.c (mbstate_t): Don't define here.
62086
62087 2000-07-02  Jim Meyering  <meyering@lucent.com>
62088
62089         * lib/nanosleep.c (SIGCONT): Define if not already defined.
62090
62091 2000-07-01  Jim Meyering  <meyering@lucent.com>
62092
62093         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
62094
62095 2000-07-01  Jim Meyering  <meyering@lucent.com>
62096
62097         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
62098         problem.
62099
62100 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62101
62102         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
62103         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
62104
62105 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
62106
62107         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
62108         per change in ../m4/ls-mntd-fs.m4.
62109         (read_filesystem_list): Ignore symbolic links.
62110
62111 2000-06-29  Jim Meyering  <meyering@lucent.com>
62112
62113         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
62114         for declaration of strcmp.
62115
62116         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
62117
62118         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
62119         Avoid warning by casting result to `char *' to remove `const'.
62120
62121 2000-06-28  Jim Meyering  <meyering@lucent.com>
62122
62123         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
62124         included by quotearg.c, for which we perform this test.  From
62125         Bruno Haible.
62126
62127 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62128
62129         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
62130         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
62131         <utmpx.h> exists, put readutmp.o into LIBOBJS.
62132
62133 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
62134
62135         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
62136
62137 2000-06-26  Paul Eggert  <eggert@twinsun.com>
62138
62139         savedir now sets errno on failure and invokes xmalloc to get memory.
62140         Fix a couple of other minor bugs while we're at it.
62141
62142         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
62143         (NAMLEN): Remove macro.
62144         (malloc, realloc): Remove decls.
62145         (stpcpy): Likewise.
62146         ("xalloc.h"): Include.
62147         (NAME_SIZE_DEFAULT): New macro.
62148         (savedir): Use xmalloc / xrealloc to allocate memory.
62149         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
62150         Skip "" directory entries.
62151         Use strlen to calculate directory entry length, since the old method
62152         is rarely used these days and isn't worth supporting.
62153         Don't use a pointer after freeing it.
62154         Check for integer overflow when calculating allocation size.
62155         Use memcpy to copy entries, instead of stpcpy.
62156         Set errno properly when returning NULL.
62157         Check for readdir error.
62158
62159 2000-06-26  Jim Meyering  <meyering@lucent.com>
62160
62161         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
62162
62163 2000-06-25  Jim Meyering  <meyering@lucent.com>
62164
62165         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
62166         Linux header bug when _XOPEN_SOURCE is defined to 500.
62167
62168 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62169
62170         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
62171         deficiency.
62172
62173 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
62174
62175         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
62176         Include xalloc.h.
62177         Don't include <stdlib.h>.  Don't declare malloc, realloc.
62178
62179 2000-06-24  Jim Meyering  <meyering@lucent.com>
62180
62181         * m4/strerror_r.m4: Revive this file -- to try out an experimental
62182         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
62183         for which strerror does return char*, but which lacks a conveniently
62184         accessible declaration of the function.  If the compile-test says
62185         strerror_r doesn't work, then resort to a `run'-test that works on
62186         BeOS and segfaults on DEC Unix.
62187
62188 2000-06-24  Jim Meyering  <meyering@lucent.com>
62189
62190         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
62191
62192 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62193
62194         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
62195         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
62196
62197 2000-06-23  Paul Eggert  <eggert@twinsun.com>
62198
62199         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
62200         (mbrtowc, mbstate_t): Define substitutes if
62201         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
62202         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
62203         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
62204
62205 2000-06-23  Jim Meyering  <meyering@lucent.com>
62206
62207         * m4/afs.m4: Add missing AC_MSG_RESULT.
62208         Reported by Bruno Haible.
62209
62210         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
62211         Suggestion from Bruno Haible.
62212
62213 2000-06-23  Jim Meyering  <meyering@lucent.com>
62214
62215         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
62216
62217 2000-06-21  Jim Meyering  <meyering@lucent.com>
62218
62219         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
62220
62221 2000-06-21  Jim Meyering  <meyering@lucent.com>
62222
62223         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
62224         (noinst_HEADERS): Add getstr.h.
62225
62226         * lib/getline.c (getstr): Move into a separate file.
62227         * lib/getstr.c (getstr): New file, extracted from getline.c, with
62228         the following changes: new parameter, delim2; both delim[12]
62229         parameters have type `int', not `char'.  The latter would lose
62230         with 8-bit delimiters.
62231         * lib/getstr.h: New file.
62232
62233 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62234
62235         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
62236         than 1024, return a memory chunk of least possible size, instead
62237         of size PATH_MAX + 2. In the loop, increment the size proportionally.
62238         Use free/xmalloc instead of xrealloc to avoid copying for very long
62239         paths.
62240
62241 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62242
62243         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
62244         the empty string.
62245
62246 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
62247
62248         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
62249         address, not strdup.  Include <stdlib.h> and don't declare free().
62250
62251 2000-06-19  Jim Meyering  <meyering@lucent.com>
62252
62253         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
62254
62255 2000-06-18  Jim Meyering  <meyering@lucent.com>
62256
62257         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
62258
62259         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
62260         `checking whether...' message to be consistent with that of the
62261         lstat test.
62262
62263 2000-06-18  Jim Meyering  <meyering@lucent.com>
62264
62265         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
62266         Besides, these days every porting target provides a mkdir function.
62267
62268         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
62269         needed. (this snippet comes from src/system.h).
62270
62271 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
62272
62273         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
62274
62275 2000-06-15  Paul Eggert  <eggert@twinsun.com>
62276
62277         * lib/human.c (adjust_value): New function.
62278         (human_readable_inexact): Apply rounding style even when
62279         printing approximate values.
62280
62281 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62282
62283         * lib/human.c (human_readable_inexact): Allow an input block
62284         size that is not a multiple of the output block size, and vice versa.
62285         Reported by Piergiorgio Sartor.
62286
62287 2000-06-14  Paul Eggert  <eggert@twinsun.com>
62288
62289         * lib/getdate.y (get_date): Apply relative times after time
62290         zone indicator, not before.  Reported by Todd A. Jacobs.
62291
62292 2000-06-13  Jim Meyering  <meyering@lucent.com>
62293
62294         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
62295
62296         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
62297
62298 2000-06-12  Paul Eggert  <eggert@twinsun.com>
62299
62300         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
62301
62302 2000-06-12  Jim Meyering  <meyering@lucent.com>
62303
62304         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
62305         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
62306         optional argument.
62307         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
62308         the optional argument, `lib'.
62309
62310 2000-06-08  Jim Meyering  <meyering@lucent.com>
62311
62312         * m4/largefile.m4: Remove file (now that it's part of autoconf).
62313
62314 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62315
62316         Rewrite largefile configuration so that we don't need to run
62317         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
62318         AC_CANONICAL_HOST in configure.in -- jmm]
62319
62320         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
62321         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
62322         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
62323         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
62324         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
62325         All uses changed.
62326         Instead of inspecting the output of getconf, try to compile the
62327         test program without and with the macro definition.
62328         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
62329         for getconf.  Instead, check for the needed flags by compiling
62330         test programs.
62331
62332 2000-06-04  Paul Eggert  <eggert@twinsun.com>
62333
62334         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
62335
62336 2000-06-04  Jim Meyering  <meyering@lucent.com>
62337
62338         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
62339         SunOS 4.1.4 for which gid_t is an unsigned type.
62340
62341 2000-06-03  Jim Meyering  <meyering@lucent.com>
62342
62343         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
62344         now that autoconf requires that.
62345
62346         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
62347         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
62348         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
62349
62350 2000-06-03  Jim Meyering  <meyering@lucent.com>
62351
62352         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
62353
62354 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62355
62356         * m4/glibc21.m4: New file.
62357         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
62358
62359 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
62360
62361         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
62362         newer, don't install charset.alias.
62363         * lib/config.charset: Change the Linux/glibc rules so they become empty
62364         on glibc-2.1 or newer.
62365
62366 2000-06-02  Jim Meyering  <meyering@lucent.com>
62367
62368         * lib/mountlist.c: Back out last change.  Instead, do this...
62369         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
62370         me_dummy member using the same `ignore'-testing code.
62371         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
62372         fs_type strings.
62373         From Mark D. Roth.
62374
62375 2000-05-29  Jim Meyering  <meyering@lucent.com>
62376
62377         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
62378         mounts with the `ignore' attribute.  Based on a patch from
62379         Mark D. Roth.
62380
62381 2000-05-28  Jim Meyering  <meyering@lucent.com>
62382
62383         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
62384         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62385         * m4/stat.m4: Likewise.
62386         * m4/lstat.m4: Likewise.
62387         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
62388
62389         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
62390         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
62391
62392 2000-05-26  Jim Meyering  <meyering@lucent.com>
62393
62394         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
62395
62396 2000-05-24  Jim Meyering  <meyering@lucent.com>
62397
62398         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
62399         autoconf requires that.
62400         * m4/lib-check.m4: Likewise.
62401         * m4/jm-macros.m4: Likewise.
62402         * m4/strftime.m4: Likewise.
62403
62404         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
62405         AC_CHECK_DECLS, now that autoconf requires that.
62406
62407 2000-05-22  Jim Meyering  <meyering@lucent.com>
62408
62409         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62410         * m4/lstat.m4: Likewise.
62411
62412 2000-05-22  Jim Meyering  <meyering@lucent.com>
62413
62414         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
62415
62416 2000-05-20  Jim Meyering  <meyering@lucent.com>
62417
62418         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
62419         (jm_PREREQ): Use it.
62420
62421 2000-05-18  Jim Meyering  <meyering@lucent.com>
62422
62423         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
62424         back, too, since it may have been modified by allocate_entry.
62425         (hash_delete): Rewrite to use neither the assignment operator
62426         nor the comma operator in an if-expression.
62427
62428 2000-05-15  Paul Eggert  <eggert@twinsun.com>
62429
62430         * lib/closeout.c:
62431         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
62432         Remove; no longer needed.
62433         "quotearg.h": Add include.
62434         (file_name): Do not bother to explicitly initialize to NULL; it's less
62435         efficient on some hosts.
62436         (close_stdout_status): Remove test as to whether stdout was already
62437         closed; it breaks for the case "echo x | sort >&-".
62438         Quote file name colons.
62439         Do not assume that _("write error") lacks format strings.
62440
62441 2000-05-15  Jim Meyering  <meyering@lucent.com>
62442
62443         * lib/version-etc.c (version_etc_copyright): Update the copyright
62444         string used in all --version output.
62445
62446 2000-05-14  Jim Meyering  <meyering@lucent.com>
62447
62448         * lib/closeout.c (close_stdout_set_file_name): New function.
62449         (close_stdout_status): Use new file-scoped global.
62450         Return right away if fstat says the stdout file descriptor is invalid.
62451         * lib/closeout.h (close_stdout_set_file_name): Declare.
62452
62453 2000-05-10  Jim Meyering  <meyering@lucent.com>
62454
62455         * lib/closeout.c [default_exit_status]: New file-scoped variable.
62456         (close_stdout_set_status): New function.
62457         * lib/closeout.h (close_stdout_set_status): Declare.
62458
62459 2000-05-09  Jim Meyering  <meyering@lucent.com>
62460
62461         * m4/gettext.m4: Rename this...
62462         * m4/libintl.m4: ...to this.
62463
62464 2000-05-08  Jim Meyering  <meyering@lucent.com>
62465
62466         * lib/long-options.c: Don't include closeout.h.
62467         (parse_long_options): Don't call close_stdout for --version.
62468
62469 2000-05-06  Paul Eggert  <eggert@twinsun.com>
62470
62471         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62472         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62473         2.1.3 bug.  This avoids a clash when files like regex.c define
62474         _GNU_SOURCE.
62475
62476 2000-05-06  Jim Meyering  <meyering@lucent.com>
62477
62478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62479         (AC_REPLACE_FUNCS): Add strnlen.
62480
62481         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62482         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62483
62484         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62485         AC_SEARCH_LIBS call for nanosleep.
62486         (LIB_NANOSLEEP): Set and AC_SUBST.
62487
62488 2000-05-06  Jim Meyering  <meyering@lucent.com>
62489
62490         * lib/strnlen.c: Undefine __strnlen and strnlen.
62491         [!weak_alias]: Define __strnlen to strnlen.
62492
62493         * lib/atexit.c: New file, from libiberty.
62494
62495 2000-05-06  Jim Meyering  <meyering@lucent.com>
62496
62497         * lib/closeout.c (close_stdout_status): Also check for errors on the
62498         stderr stream.
62499
62500 2000-05-05  Jim Meyering  <meyering@lucent.com>
62501
62502         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62503         AC_SEARCH_LIBS call for clock_gettime.
62504         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62505
62506         * m4/search-libs.m4: Update from autoconf.
62507
62508         su doesn't work on Solaris 2.6.
62509         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62510         <shadow.h>.  Reported by Dragos Harabor.
62511
62512 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
62513
62514         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62515         memcpy instead of xmalloc, xrealloc, path_concat.
62516         (locale_charset): Treat empty environment variables as absent.
62517         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62518
62519 2000-05-04  Jim Meyering  <meyering@lucent.com>
62520
62521         * lib/getopt.c: Update from glibc.
62522         * lib/obstack.c: Likewise.
62523         * lib/obstack.h: Likewise.
62524         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
62525         file
62526
62527         * lib/regex.h: Likewise.
62528         * lib/strndup.c: Likewise.
62529         * lib/strnlen.c: New file, from glibc.
62530
62531 2000-05-03  Jim Meyering  <meyering@lucent.com>
62532
62533         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62534
62535 2000-05-02  Paul Eggert  <eggert@twinsun.com>
62536
62537         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62538         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
62539         compile-time test, rather than inspecting host and OS, to
62540         decide whether to define _LARGEFILE_SOURCE.
62541
62542 2000-05-01  Jim Meyering  <meyering@lucent.com>
62543
62544         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62545
62546         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62547         Based on a patch from Bruno Haible.
62548
62549 2000-05-01  Jim Meyering  <meyering@lucent.com>
62550
62551         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62552
62553 2000-04-29  Jim Meyering  <meyering@lucent.com>
62554
62555         * lib/path-concat.c: Declare strdup only if it's not defined.
62556         * lib/canon-host.c: Likewise.
62557
62558 2000-04-28  Jim Meyering  <meyering@lucent.com>
62559
62560         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62561         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
62562         is included first, then limits.h is included by locale.h by libintl.h.
62563         From John David Anglin.
62564
62565 2000-04-25  Jim Meyering  <meyering@lucent.com>
62566
62567         * lib/makepath.c (S_IRWXUGO): Define.
62568         (make_path): Always perform explicit chmod if MODE specifies any
62569         of the `special' permission bits.  Prompted by a bug report against
62570         install from Mate Wierdl and Joost van Baal.
62571
62572 2000-04-18  Jim Meyering  <meyering@lucent.com>
62573
62574         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62575         (jm_PREREQ): Use it.
62576
62577 2000-04-18  Jim Meyering  <meyering@lucent.com>
62578
62579         * lib/README: New file.
62580
62581         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62582         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
62583
62584 2000-04-17  Jim Meyering  <meyering@lucent.com>
62585
62586         Get it right :-)
62587         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62588         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
62589         Suggestion from Akim Demaille.
62590
62591 2000-04-17  Jim Meyering  <meyering@lucent.com>
62592
62593         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62594         the definition of it to rpl_strftime also defined-away the system's
62595         declaration.
62596
62597 2000-04-15  Jim Meyering  <meyering@lucent.com>
62598
62599         Use `C' to denote so-called `contiguous' files, the same way
62600         that tar does.
62601         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62602         (ftypelet): Use S_ISCTG.
62603         From Michael Deutschmann.
62604
62605 2000-04-14  Jim Meyering  <meyering@lucent.com>
62606
62607         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62608         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
62609         clobbered.
62610
62611 2000-04-14  Jim Meyering  <meyering@lucent.com>
62612
62613         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62614
62615 2000-04-13  Jim Meyering  <meyering@lucent.com>
62616
62617         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62618         AH_VERBATIM to insert required #ifndef into config.h.in.
62619         Suggestion from Akim Demaille.
62620
62621 2000-04-12  Jim Meyering  <meyering@lucent.com>
62622
62623         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62624         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
62625         Christian Krackowizer.
62626
62627         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62628         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62629         (AC_SYS_LARGEFILE): Require.
62630         (AM_C_PROTOTYPES): Require.
62631
62632 2000-04-08  Jim Meyering  <meyering@lucent.com>
62633
62634         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62635         names don't conflict.  Reported by Eli Zaretskii.
62636
62637 2000-04-07  Jim Meyering  <meyering@lucent.com>
62638
62639         * lib/putenv.c: Move inclusion of errno.h so it follows that of
62640         sys/types.h, to work around system header problems on AIX 3.2.5.
62641         From Bruno Haible.
62642
62643 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
62644
62645         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62646         bug.  Deal with the different error behavior of Irix iconv.
62647
62648 2000-04-05  Paul Eggert  <eggert@twinsun.com>
62649
62650         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62651         IRIX if the installer said otherwise.
62652
62653 2000-04-05  Jim Meyering  <meyering@lucent.com>
62654
62655         Portability tweaks required for ultrix4.3.
62656         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62657         (jm_CHECK_DECLS): Add getutent to the list of functions.
62658         (_jm_DECL_HEADERS): Add utmpx.h.
62659         From John David Anglin.
62660
62661         * m4/strftime.m4: Back out the 2000-04-02 change.
62662         Instead of that change, simply undefine putenv in the test program.
62663
62664 2000-04-05  Jim Meyering  <meyering@lucent.com>
62665
62666         Portability tweaks required for ultrix4.3.
62667         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62668         getutent.
62669         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62670         * lib/canon-host.c: Declare strdup.
62671         * lib/path-concat.c: Likewise.
62672         From John David Anglin.
62673
62674 2000-04-04  Jim Meyering  <meyering@lucent.com>
62675
62676         Be more DOS 8.3-friendly.
62677         * lib/ref-add.sin: Renamed from ref-add.sed.in.
62678         * lib/ref-del.sin: Renamed from ref-del.sed.in.
62679         * lib/Makefile.am: Reflect renaming.
62680         Reported by Eli Zaretskii.
62681
62682         Use a temporary file name that won't clash with `charset.alias'
62683         in the DOS 8.3 name space.
62684         * lib/Makefile.am (charset_tmp): Define.
62685         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62686         (uninstall-local): Likewise.
62687         Reported by Eli Zaretskii.
62688
62689 2000-04-03  Jim Meyering  <meyering@lucent.com>
62690
62691         * m4/gettext.m4: Fix typo in comment.
62692
62693         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62694         textutils/configure.in).  Suggestion from Paul Eggert.
62695         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
62696
62697 2000-04-02  Paul Eggert  <eggert@twinsun.com>
62698
62699         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62700         variable in the shell rather than using putenv, which isn't
62701         portable.  This avoids the configure-time inter-test dependency
62702         on the potentially-renamed putenv function.
62703
62704 2000-03-30  Paul Eggert  <eggert@twinsun.com>
62705
62706         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62707         before checking struct stat.st_blksize, so that
62708         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62709
62710 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62711
62712         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62713         since strftime.c uses HAVE_STRFTIME to decide whether to use
62714         the underlying strftime.
62715
62716 2000-03-29  Paul Eggert  <eggert@twinsun.com>
62717
62718         * lib/time/strftime.c (my_strftime): Make sure we call the system
62719         strftime, not ourselves, when invoking the underlying strftime.
62720
62721 2000-03-24  Jim Meyering  <meyering@lucent.com>
62722
62723         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62724         (charset_alias): Define.
62725         (install-exec-local): Factor out common code.
62726         (uninstall-local): Split lines longer than 80.
62727         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62728         (SUFFIXES): Define.
62729         (.sed.in.sed): New rule.  Don't redirect directly to $@.
62730         (CLEANFILES): Add ref-add.sed and ref-del.sed.
62731
62732 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
62733
62734         * lib/config.charset: Output a line containing "Packages using this
62735         file".
62736         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62737         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62738         ref-del.sed): New rules.
62739
62740 2000-03-17  Jim Meyering  <meyering@lucent.com>
62741
62742         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62743         Otherwise, include <strings.h>
62744
62745 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
62746
62747         * lib/unicodeio.c (utf8_wctomb): New function.
62748         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62749         format instead of in UCS-4 with platform dependent endianness.
62750
62751 2000-03-10  Jim Meyering  <meyering@lucent.com>
62752
62753         * m4/lib-check.m4: Look for getspnam in -lgen, too.
62754         From Marco Franzen.
62755
62756 2000-03-07  Paul Eggert  <eggert@twinsun.com>
62757
62758         * lib/savedir.c (savedir): Work even if directory size is
62759         negative; this can happen with some screwy NFS configurations.
62760
62761 2000-03-06  Jim Meyering  <meyering@lucent.com>
62762
62763         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62764         if it's NULL (because we ran out of memory).  From Bruno Haible.
62765
62766 2000-03-05  Jim Meyering  <meyering@lucent.com>
62767
62768         * lib/localcharset.c ("path-concat.h"): Include.
62769         (get_charset_aliases): Use path_concat instead of ANSI string
62770         concatenation.
62771
62772         * lib/unicodeio.h (PARAMS): Define.
62773         Use it to guard prototype.
62774
62775 2000-03-04  Jim Meyering  <meyering@lucent.com>
62776
62777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62778         for lib/localcharset.c.
62779
62780 2000-03-04  Jim Meyering  <meyering@lucent.com>
62781
62782         * lib/Makefile.am (install-exec-local): Create $(libdir) before
62783         installing into it.
62784         (uninstall-local): Uncomment this rule so `make distcheck' works
62785         once again.
62786
62787         * lib/unicodeio.c (<errno.h>): Include it.
62788         (errno): Declare if not defined.
62789
62790         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62791
62792         * lib/config.charset: New version, incorporating remarks from a linux
62793         i18n mailing list.  From Bruno Haible.
62794
62795 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
62796
62797         * m4/codeset.m4: New file.
62798         * m4/iconv.m4: New file.
62799         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62800
62801 2000-03-03  Jim Meyering  <meyering@lucent.com>
62802
62803         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62804
62805 2000-03-02  Jim Meyering  <meyering@lucent.com>
62806
62807         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62808         the messages come out on separate lines.
62809
62810         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62811         rather than jm_CHECK_DECLARATIONS.
62812         * m4/decl.m4: Remove now-unused file.
62813
62814         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62815         geteuid.
62816
62817 2000-03-02  Jim Meyering  <meyering@lucent.com>
62818
62819         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62820
62821 2000-03-01  Jim Meyering  <meyering@lucent.com>
62822
62823         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62824         * lib/unicodeio.c: Likewise.
62825
62826 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
62827
62828         * lib/config.charset: New file.
62829         * lib/localcharset.c: New file.
62830         * lib/unicodeio.h, lib/unicodeio.c: New files.
62831         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62832         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62833         (noinst_HEADERS): Add unicodeio.h.
62834         (all-local, install-exec-local, charset.alias): New targets.
62835
62836 2000-02-28  Paul Eggert  <eggert@twinsun.com>
62837
62838         * lib/quotearg.c (ALERT_CHAR): New macro.
62839         (quotearg_buffer_restyled): Use it.
62840
62841 2000-02-27  Jim Meyering  <meyering@lucent.com>
62842
62843         * m4/check-decl.m4: Add getenv to the list.
62844
62845 2000-02-27  Jim Meyering  <meyering@lucent.com>
62846
62847         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62848         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62849
62850         * lib/backupfile.c: Guard inclusion of stdlib.h with
62851         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62852         Declare malloc if needed.
62853
62854         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62855         `#ifndef HAVE_DECL..'
62856         now that autoconf always defines the HAVE_DECL_ symbols.
62857         * lib/human.c: Likewise.
62858         * lib/same.c: Likewise.
62859         * lib/strtoumax.c: Likewise.
62860
62861         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62862         declaration check was not run.
62863         * lib/hash.c: Likewise.
62864         * lib/human.c: Likewise.
62865         * lib/same.c: Likewise.
62866         * lib/strtoumax.c: Likewise.
62867
62868         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62869         `.', then first look up the entire `.'-containing string as a login
62870         name.
62871
62872 2000-02-23  Jim Meyering  <meyering@lucent.com>
62873
62874         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62875         in place of my hack.
62876
62877 2000-02-18  Paul Eggert  <eggert@twinsun.com>
62878
62879         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62880         (textint): New typedef.
62881         (parser_control): Member year changed from int to textint.
62882         All uses changed.
62883         (YYSTYPE): Removed; replaced by %union with int and textint members.
62884         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62885         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62886         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62887         (tSNUMBER, tUNUMBER): Now of type <textintval>.
62888         (date, number, to_year): Use width of number in digits, not its value,
62889         to determine whether it's a 2-digit year, or a 2-digit time.
62890         (yylex): Store number of digits of numeric tokens.
62891         Reported by John Kendall.
62892
62893         (parser_control): Changed from struct parser_control to typedef (for
62894         consistency).  All uses changed.
62895
62896         (tID): Removed; not used.
62897         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62898
62899 2000-02-14  Paul Eggert  <eggert@twinsun.com>
62900
62901         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62902         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62903
62904 2000-02-12  Jim Meyering  <meyering@lucent.com>
62905
62906         * lib/userspec.c (ISDIGIT): Define it.
62907         (isdigit): Remove definition.
62908         (is_number): Use ISDIGIT, not isdigit.
62909         <libintl.h>: Include.
62910         (_ and N_): Define.
62911         (parse_user_spec): Mark translatable strings.
62912
62913 2000-02-10  Jim Meyering  <meyering@lucent.com>
62914
62915         With these changes, nanosleep.[ch] are finally enough like the other
62916         lib/* replacement files to compile on a few more losing systems.
62917
62918         * lib/nanosleep.h: Don't include config.h.
62919         Remove prototype from declaration of nanosleep.
62920         (PARAMS): Remove now-unneeded definition.
62921         * lib/nanosleep.c: #undef nanosleep.
62922         (rpl_nanosleep): Rename from nanosleep.
62923
62924 2000-02-10  Jim Meyering  <meyering@lucent.com>
62925
62926         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62927         gnu_nanosleep to rpl_nanosleep.
62928
62929 2000-02-09  Jim Meyering  <meyering@lucent.com>
62930
62931         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62932         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
62933
62934 2000-02-08  Akim Demaille  <akim@epita.fr>
62935
62936         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62937         `[' and `]' and remove uses of `changequote'.
62938         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62939         (AC_SYS_LARGEFILE): Likewise.
62940         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62941         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62942         of changequote.
62943         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62944         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62945         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62946         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62947
62948 2000-02-05  Jim Meyering  <meyering@lucent.com>
62949
62950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62951         Remove explicit use of AC_HEADER_TIME.  It is required by
62952         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
62953         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62954         in autoconf whereby the expansion of the latter ended up preceding
62955         the expansion of its prerequisite, AC_HEADER_TIME.
62956         Reported by Volker Borchert.
62957
62958 2000-02-03  Jim Meyering  <meyering@lucent.com>
62959
62960         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62961
62962 2000-02-03  Jim Meyering  <meyering@lucent.com>
62963
62964         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62965         rather than with `#if HAVE_UTMPNAME'.
62966
62967 2000-02-02  Jim Meyering  <meyering@lucent.com>
62968
62969         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62970         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62971         Reported by Eli Zaretskii.
62972
62973 2000-02-01  Jim Meyering  <meyering@lucent.com>
62974
62975         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
62976
62977 2000-01-31  Jim Meyering  <meyering@lucent.com>
62978
62979         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62980         functions.  Add the time.h and sys/time.h headers along with the
62981         AC_REQUIRE'ment of AC_HEADER_TIME.
62982
62983 2000-01-31  Jim Meyering  <meyering@lucent.com>
62984
62985         * lib/nanosleep.h (nanosleep): Guard declaration with
62986         `#if ! HAVE_DECL_NANOSLEEP'.
62987         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62988         the declaration in that vendor's sys/timers.h.
62989         Reported by Christian Krackowizer.
62990
62991         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62992         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62993         (ISPRINT): Likewise.
62994         Reported by Tom Tromey.
62995
62996 2000-01-30  Jim Meyering  <meyering@lucent.com>
62997
62998         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62999
63000         * m4/prereq.m4 (utmp_includes): Define.
63001         Check for ut_user and ut_name members in both struct utmpx
63002         and struct utmp.
63003
63004 2000-01-30  Jim Meyering  <meyering@lucent.com>
63005
63006         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
63007         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
63008         header files where only utmpx.ut_user is declared.
63009
63010         * lib/readutmp.h (UT_USER): Define.
63011
63012 2000-01-29  Jim Meyering  <meyering@lucent.com>
63013
63014         * m4/lib-check.m4: New file containing library-related checks from
63015         fileutils and sh-utils (textutils had none).
63016
63017 2000-01-28  Jim Meyering  <meyering@lucent.com>
63018
63019         * m4/perl.m4: Change format of warning message to look more like that
63020         from the missing script.  Suggestion from François Pinard.
63021
63022 2000-01-25  Jim Meyering  <meyering@lucent.com>
63023
63024         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
63025         well as time.h in the compile check.
63026         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
63027         Fix typo in cross-compiling case: s/yes/no/.
63028
63029 2000-01-23  Jim Meyering  <meyering@lucent.com>
63030
63031         * m4/jm-macros.m4: Move df-related tests here from
63032         fileutils/configure.in
63033
63034         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
63035         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
63036
63037         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
63038         s/space/ac_fsusage_space/.
63039         (jm_FILE_SYSTEM_USAGE): Take two parameters.
63040
63041         * m4/ftruncate.m4: New file (derived from part of
63042         fileutils/configure.in).
63043         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
63044         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
63045
63046         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
63047         AC_SUBST these here, rather than just in sh-util/configure.in, so
63048         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
63049         all the same.
63050         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
63051         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
63052         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
63053         (AC_SUBST(POW_LIBM)): Likewise.
63054         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
63055
63056 2000-01-23  Jim Meyering  <meyering@lucent.com>
63057
63058         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
63059         obstack.c.
63060
63061 2000-01-22  Jim Meyering  <meyering@lucent.com>
63062
63063         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
63064
63065         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
63066
63067         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
63068         configure.in
63069         (AC_CHECK_HEADERS): Likewise for sh-utils.
63070         (AC_CHECK_HEADERS): Likewise for textutils.
63071         Merge the three lists of headers.
63072
63073         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
63074         from fileutils' configure.in.
63075
63076         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
63077         code. Moved tests into their own function (_jm_DECL_HEADERS) in
63078         check-decl.m4.
63079
63080         * m4/check-decl.m4: Use #if rather than #ifdef.
63081         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
63082         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
63083         (_jm_DECL_HEADERS): Define new function.
63084         (jm_CHECK_DECLARATIONS): Require it.
63085
63086 2000-01-22  Jim Meyering  <meyering@lucent.com>
63087
63088         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
63089         [! HAVE_DECL_STRTOULL]: Declare strtoull.
63090         Required for some AIX systems.  Reported by Christian Krackowizer.
63091         [TESTING] (main): New function.
63092
63093         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
63094         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
63095         letters.
63096
63097         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
63098         iswprint.
63099
63100         * lib/strverscmp.c (ISDIGIT): Define.
63101         (strverscmp): Use ISDIGIT, not isdigit.
63102
63103 2000-01-19  Jim Meyering  <meyering@lucent.com>
63104
63105         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
63106         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
63107         defines `struct timespec' in <sys/time.h>
63108
63109         * m4/c-bs-a.m4: Remove uses of changequote altogether.
63110         Thanks to Akim for explaining.
63111
63112 2000-01-17  Paul Eggert  <eggert@twinsun.com>
63113
63114         * lib/nanosleep.c (nanosleep):
63115         Don't use SA_INTERRUPT to decide whether to call sigaction, as
63116         POSIX.1 doesn't require SA_INTERRUPT and some systems
63117         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
63118         it's been part of POSIX.1 since day 1 (in 1988).
63119
63120 2000-01-17  Jim Meyering  <meyering@lucent.com>
63121
63122         * lib/interlock: Remove unused file.  Reported by François Pinard.
63123
63124 2000-01-16  Paul Eggert  <eggert@twinsun.com>
63125
63126         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
63127         alert, backslash, formfeed, and vertical tab unnecessarily in
63128         shell quoting style.
63129
63130 2000-01-16  Jim Meyering  <meyering@lucent.com>
63131
63132         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
63133         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
63134         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
63135         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
63136
63137 2000-01-16  Jim Meyering  <meyering@lucent.com>
63138
63139         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
63140         because the latter didn't work.
63141
63142 2000-01-15  Jim Meyering  <meyering@lucent.com>
63143
63144         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
63145         (AC_REPLACE_FUNCS): Add memcpy and memset.
63146         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
63147         Add strpbrk.
63148         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
63149
63150 2000-01-12  Jim Meyering  <meyering@lucent.com>
63151
63152         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
63153         (jm_PREREQ): Use it.
63154         (jm_PREREQ_READUTMP): New macro.
63155         (jm_PREREQ): Use it.
63156
63157 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63158
63159         Quote multibyte characters correctly.
63160         * m4/c-bs-a.m4: New file.
63161         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
63162         (jm_PREREQ): Use it.
63163
63164 2000-01-11  Paul Eggert  <eggert@twinsun.com>
63165
63166         * m4/uintmax_t.m4: Port to autoconf 2.13.
63167
63168 2000-01-08  Jim Meyering  <meyering@ascend.com>
63169
63170         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
63171         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
63172
63173 2000-01-04  Jim Meyering  <meyering@ascend.com>
63174
63175         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
63176         jm_STRUCT_DIRENT_D_TYPE.
63177         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
63178         jm_STRUCT_DIRENT_D_INO.
63179         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
63180         jm_STRUCT_UTIMBUF.
63181         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
63182         renamings.
63183         * m4/utime.m4: Likewise.
63184
63185         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
63186         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
63187
63188 2000-01-03  Paul Eggert  <eggert@twinsun.com>
63189
63190         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
63191         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
63192
63193 2000-01-02  Jim Meyering  <meyering@ascend.com>
63194
63195         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
63196         remember if this is necessary.
63197
63198 1999-12-26  Jim Meyering  <meyering@ascend.com>
63199
63200         * m4/jm-macros.m4: Use it here.
63201         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
63202
63203 1999-12-23  Jim Meyering  <meyering@ascend.com>
63204
63205         * m4/jm-macros.m4: Check for clock_gettime (moved from
63206         fileutils/configure.in)
63207         Check for gettimeofday.
63208
63209 1999-12-20  Jim Meyering  <meyering@ascend.com>
63210
63211         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
63212         autoconf-2.14a-1999-12-20.
63213
63214 1999-12-19  Jim Meyering  <meyering@ascend.com>
63215
63216         * m4/lstat-slash.m4: New file.
63217         * m4/jm-macros.m4: Use the new macro:
63218         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
63219
63220 1999-12-07  Jim Meyering  <meyering@ascend.com>
63221
63222         * m4/perl.m4: Require that File::Compare be available, too.
63223         Too many systems seem to lack it.
63224
63225         * m4/strftime.m4: Add checks for most of the cpp macros tested in
63226         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
63227
63228 1999-11-18  Paul Eggert  <eggert@twinsun.com>
63229
63230         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
63231         problem with the QNX 4.25 shell, which doesn't propagate exit
63232         status of failed commands inside shell assignments.
63233
63234 1999-11-17  Jim Meyering  <meyering@ascend.com>
63235
63236         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
63237
63238 1999-11-07  Jim Meyering  <meyering@ascend.com>
63239
63240         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
63241
63242 1999-11-06  Jim Meyering  <meyering@ascend.com>
63243
63244         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
63245         * m4/jm-macros.m4 (jm_MACROS): Use it here.
63246
63247 1999-11-05  Jim Meyering  <meyering@ascend.com>
63248
63249         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
63250         configure.in of textutils, fileutils, and sh-utils into this one
63251         (shared between those packages) file.
63252         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
63253         AC_STRUCT_ST_BLKSIZE.
63254
63255 1999-11-03  Jim Meyering  <meyering@ascend.com>
63256
63257         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
63258         of AC_CHECK_TYPE checks includes unistd.h.
63259         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
63260         Suggestion from Akim Demaille.
63261
63262 1999-10-30  Jim Meyering  <meyering@ascend.com>
63263
63264         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
63265         m4-quoted string.
63266         * m4/ls-mntd-fs.m4: Likewise.
63267         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
63268         * m4/jm-winsz1.m4: Likewise.
63269
63270         * m4/const.m4: Remove file, since the fix made it into the experimental
63271         version of autoconf.
63272         * m4/mktime.m4: Likewise.
63273
63274         * m4/check-type.m4: Remove file, now that the latest version of
63275         AC_CHECK_TYPE takes a third arg to specify additional #includes.
63276
63277         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
63278         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
63279         AC_CHECK_TYPE.
63280
63281 1999-10-04  Jim Meyering  <meyering@ascend.com>
63282
63283         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
63284
63285 1999-09-22  Paul Eggert  <eggert@twinsun.com>
63286
63287         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
63288         2.95.1 bug with HP-UX 10.20.
63289
63290 1999-09-17  Jim Meyering  <meyering@ascend.com>
63291
63292         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
63293         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
63294         due to missing strdup (against sh-utils-2.0).
63295
63296 1999-08-29  Jim Meyering  <meyering@ascend.com>
63297
63298         * m4/jm-macros.m4: Require jm_BISON.
63299         * m4/bison.m4: New file.
63300
63301 1999-08-17  Paul Eggert  <eggert@twinsun.com>
63302
63303         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
63304         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
63305
63306 1999-08-05  Jim Meyering  <meyering@ascend.com>
63307
63308         * m4/getline.m4: Rename test file from conftestdata to conftest.data
63309         to avoid conflicts with `conftest' on 8+3 filesystems.
63310         Suggestion from Eli Zaretskii.
63311
63312 1999-08-04  Jim Meyering  <meyering@ascend.com>
63313
63314         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
63315         fileutils and sh-utils (textutils's getline test was inadequate).
63316         (AM_FUNC_GETLINE): Run this test.
63317         (AC_CHECK_FUNCS): Check for getdelim.
63318         Reported by Bob Proulx.
63319
63320 1999-08-02  Jim Meyering  <meyering@ascend.com>
63321
63322         * m4/jm-macros.m4: Add a comment.
63323
63324 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63325
63326         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
63327         <inttypes.h> defines strtoumax as a macro (and not as a
63328         function).
63329
63330 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63331
63332         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
63333         that we can shift, multiply and divide unsigned long long
63334         values; Ultrix cc can't do it.
63335
63336 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63337
63338         * m4/mktime.m4: New file, which is a preview of what should appear
63339         in the next public autoconf release.
63340
63341 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63342
63343         * m4/lfs.m4: Remove this file.
63344         * m4/largefile.m4: New file.  It contains the old contents of
63345         lfs.m4, except that all names with prefix AC_LFS have been
63346         changed to use the prefix AC_SYS_LARGEFILE instead, to be
63347         compatible with future autoconf versions.  Also, some minor m4
63348         quoting problems have been fixed.
63349
63350 1999-08-01  Paul Eggert  <eggert@twinsun.com>
63351
63352         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
63353         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
63354         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
63355         and simplify the shell code.
63356
63357 1999-08-01  Jim Meyering  <meyering@ascend.com>
63358
63359         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
63360         m4.
63361
63362 1999-07-20  Jim Meyering  <meyering@ascend.com>
63363
63364         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
63365
63366 1999-07-15  Jim Meyering  <meyering@ascend.com>
63367
63368         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
63369
63370 1999-05-22  Jim Meyering  <meyering@ascend.com>
63371
63372         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
63373
63374 1999-05-20  Jim Meyering  <meyering@ascend.com>
63375
63376         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
63377         Add a colon after each `then' in case $4 is empty.
63378
63379 1999-05-16  Jim Meyering  <meyering@ascend.com>
63380
63381         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
63382
63383 1999-05-10  Jim Meyering  <meyering@ascend.com>
63384
63385         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
63386
63387         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
63388         AC_FUNC_MKTIME.
63389
63390 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
63391
63392         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
63393
63394 1999-05-04  Paul Eggert  <eggert@twinsun.com>
63395
63396         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
63397         not CPPFLAGS, so that linking works correctly in IRIX.
63398
63399 1999-04-30  Paul Eggert  <eggert@twinsun.com>
63400
63401         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
63402
63403 1999-04-20  Paul Eggert  <eggert@twinsun.com>
63404
63405         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
63406         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
63407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
63408         jm_AC_TYPE_UNSIGNED_LONG_LONG.
63409         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
63410
63411         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
63412
63413 1999-04-20  Jim Meyering  <meyering@ascend.com>
63414
63415         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
63416         AC_REPLACE xstroull if necessary.  From Paul Eggert.
63417         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
63418
63419 1999-04-18  Jim Meyering  <meyering@ascend.com>
63420
63421         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
63422         * m4/jm-macros.m4: Use it.
63423
63424 1999-04-06  Jim Meyering  <meyering@ascend.com>
63425
63426         * m4/strftime.m4: Remove test for %f.
63427
63428 1999-03-29  Jim Meyering  <meyering@ascend.com>
63429
63430         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
63431         superset of the AC_TYPE_* checks in the textutils, fileutils,
63432         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
63433         AC_TYPE_PID_T.
63434
63435 1999-03-28  Jim Meyering  <meyering@ascend.com>
63436
63437         * m4/jm-macros.m4: Define GNU_PACKAGE here.
63438         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
63439         replaced e.g., in the *.sh files of the sh-utils.
63440
63441 1999-03-20  Jim Meyering  <meyering@ascend.com>
63442
63443         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
63444         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
63445         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
63446
63447 1999-03-19  Jim Meyering  <meyering@ascend.com>
63448
63449         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63450
63451 1999-03-12  Jim Meyering  <meyering@ascend.com>
63452
63453         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63454
63455 1999-03-07  Jim Meyering  <meyering@ascend.com>
63456
63457         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63458         declared.
63459
63460 1999-02-17  Jim Meyering  <meyering@ascend.com>
63461
63462         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63463         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
63464
63465 1999-02-07  Jim Meyering  <meyering@ascend.com>
63466
63467         * m4/group-member.m4: New file -- extracted from sh-utils'
63468         configure.in.
63469
63470         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
63471         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63472
63473 1999-02-06  Jim Meyering  <meyering@ascend.com>
63474
63475         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63476         * m4/fnmatch.m4: Likewise.
63477         * m4/getgroups.m4: Likewise.
63478         * m4/lstat.m4: Likewise.
63479         * m4/malloc.m4: Likewise.
63480         * m4/putenv.m4: Likewise.
63481         * m4/realloc.m4: Likewise.
63482         * m4/regex.m4: Likewise.
63483         * m4/stat.m4: Likewise.
63484         * m4/strftime.m4: Likewise.
63485         Suggestion from Alain Magloire.
63486
63487         * m4/chown.m4: Use `.$ac_objext', not `.o'.
63488         * m4/fnmatch.m4: Likewise.
63489         * m4/getgroups.m4: Likewise.
63490         * m4/getline.m4: Likewise.
63491         * m4/lstat.m4: Likewise.
63492         * m4/malloc.m4: Likewise.
63493         * m4/memcmp.m4: Likewise.
63494         * m4/putenv.m4: Likewise.
63495         * m4/realloc.m4: Likewise.
63496         * m4/regex.m4: Likewise.
63497         * m4/stat.m4: Likewise.
63498         * m4/strftime.m4: Likewise.
63499         Suggestion from Alain Magloire.
63500
63501         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63502         an argument.
63503
63504         * m4/regex.m4: Add a run-time Test for proper operation of
63505         re_compile_pattern.
63506
63507 1999-01-31  Jim Meyering  <meyering@ascend.com>
63508
63509         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63510
63511 1999-01-30  Jim Meyering  <meyering@ascend.com>
63512
63513         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63514
63515         * m4/jm-mktime.m4: Make this a wrapper around the official
63516         AM_FUNC_MKTIME rather than my private copy, now that the official one
63517         is up to date.
63518         * m4/mktime.m4: Remove file.
63519
63520         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63521         * m4/uptime.m4: Likewise.
63522         * m4/uintmax_t.m4: Likewise.
63523
63524 1999-01-28  Jim Meyering  <meyering@ascend.com>
63525
63526         * m4/jm-macros.m4: Use jm_AFS.
63527         * m4/afs.m4: New file (from fileutils' configure.in).
63528
63529         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63530         * m4/chown.m4: Likewise.
63531         * m4/d-ino.m4: Likewise.
63532         * m4/d-type.m4: Likewise.
63533         * m4/fnmatch.m4: Likewise.
63534         * m4/getgroups.m4: Likewise.
63535         * m4/gettext.m4: Likewise.
63536         * m4/jm-mktime.m4: Likewise.
63537         * m4/jm-winsz2.m4: Likewise.
63538         * m4/lcmessage.m4: Likewise.
63539         * m4/ls-mntd-fs.m4: Likewise.
63540         * m4/malloc.m4: Likewise.
63541         * m4/memcmp.m4: Likewise.
63542         * m4/putenv.m4: Likewise.
63543         * m4/realloc.m4: Likewise.
63544         * m4/st_mtim.m4: Likewise.
63545         * m4/strftime.m4: Likewise.
63546
63547 1999-01-16  Jim Meyering  <meyering@ascend.com>
63548
63549         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63550         (ARGMATCH_DIE_DECL): Define.
63551
63552 1999-01-12  Jim Meyering  <meyering@ascend.com>
63553
63554         * m4/Makefile.am.in: Rewrite to avoid using fmt.
63555         Reported by Lars Hecking.
63556
63557 1999-01-10  Jim Meyering  <meyering@ascend.com>
63558
63559         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63560         gross kludge.
63561         * m4/inttypes_h.m4: Likewise.
63562         * m4/lstat.m4: Likewise.
63563         * m4/malloc.m4: Likewise.
63564         * m4/readdir.m4: Likewise.
63565         * m4/realloc.m4: Likewise.
63566         * m4/st_dm_mode.m4: Likewise.
63567         * m4/stat.m4: Likewise.
63568         * m4/utimbuf.m4: Likewise.
63569         * m4/utimes.m4: Likewise.
63570
63571         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63572         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
63573         comments in config.h.in are meaningful.
63574
63575         * m4/jm-macros.m4: Require autoconf-2.13 here.
63576
63577         * m4/regex.m4: By default, don't use the included regex.c on systems
63578         with glibc 2.  Suggestion from Uli Drepper.
63579
63580 1999-01-02  Jim Meyering  <meyering@ascend.com>
63581
63582         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63583
63584 1998-12-18  Jim Meyering  <meyering@ascend.com>
63585
63586         * m4/Makefile.am.in (Makefile.am): Simplify rule.
63587         Based on a suggestion from Lars Hecking.
63588
63589 1998-11-16  Paul Eggert  <eggert@twinsun.com>
63590
63591         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63592
63593 1998-11-16  Jim Meyering  <meyering@ascend.com>
63594
63595         * m4/lfs.m4: Double-quote the `uname...` expression.
63596
63597 1998-11-14  Jim Meyering  <meyering@ascend.com>
63598
63599         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
63600         * m4/stat.m4: Likewise.
63601
63602 1998-11-03  Jim Meyering  <meyering@ascend.com>
63603
63604         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63605         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63606
63607 1998-10-18  Jim Meyering  <meyering@ascend.com>
63608
63609         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63610
63611 1998-10-17  Jim Meyering  <meyering@ascend.com>
63612
63613         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63614         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63615         calls for those previously hard-coded headers.  Instead, take a new
63616         parameter.
63617         (jm_CHECK_DECLARATIONS): Reflect interface change.
63618         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63619         (jm_CHECK_DECL_LOCALTIME_R): New macro.
63620
63621         * m4/mktime.m4: Test for spring-forward gap before long-running test.
63622
63623 1998-10-14  Jim Meyering  <meyering@ascend.com>
63624
63625         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63626         instead of "TZ=America/Vancouver".  From Paul Eggert.
63627
63628 1998-10-11  Jim Meyering  <meyering@ascend.com>
63629
63630         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63631         This adds a test for a recently added compatibility fix for mktime.c.
63632         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63633
63634 1998-09-27  Jim Meyering  <meyering@ascend.com>
63635
63636         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63637
63638         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
63639         ../configure.in, including a change from Gordon Matzigkeit to allow
63640         cross-compiling for the Hurd.
63641
63642         * m4/glibc.m4: New file/macro to test for the GNU C Library
63643         versions 1 and 2.  From Gordon Matzigkeit.
63644         Indent.
63645
63646 1998-09-21  Jim Meyering  <meyering@ascend.com>
63647
63648         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
63649
63650 1998-08-18  Paul Eggert  <eggert@twinsun.com>
63651
63652         Port nanosecond-resolution times to UnixWare 2.1.2 and
63653         pedantic Solaris 2.6.
63654
63655         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63656         AC_STRUCT_ST_MTIM.
63657         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63658         Generate name of ns member, instead of just 1 or undef.
63659         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63660
63661 1998-08-15  Jim Meyering  <meyering@ascend.com>
63662
63663         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63664         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
63665         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63666         instead of jm_TYPE_SSIZE_T.
63667
63668 1998-08-12  Jim Meyering  <meyering@ascend.com>
63669
63670         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
63671
63672 1998-08-02  Jim Meyering  <meyering@ascend.com>
63673
63674         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63675         in acconfig.h manually.
63676
63677 1998-07-31  Paul Eggert  <eggert@twinsun.com>
63678
63679         * m4/st_mtim.m4: New file.
63680
63681 1998-07-28  Jim Meyering  <meyering@ascend.com>
63682
63683         * m4/utimes.m4: Undef stat.
63684
63685 1998-07-25  Jim Meyering  <meyering@ascend.com>
63686
63687         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63688         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63689
63690 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
63691
63692         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63693         uid and gid actually remain unchanged.
63694
63695 1998-07-07  Jim Meyering  <meyering@ascend.com>
63696
63697         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63698
63699 1998-07-04  Jim Meyering  <meyering@ascend.com>
63700
63701         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
63702         to prove that this macro can be used in packages without regex.c.
63703
63704 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
63705
63706         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63707         is to be used.
63708
63709 1998-07-03  Jim Meyering  <meyering@ascend.com>
63710
63711         * m4/gettext.m4: Add -lintl if it's found to be necessary.
63712
63713         * m4/gettext.m4: New file -- from gettext-0.10.35.
63714         * m4/lcmessage.m4: Likewise.
63715         * m4/progtest.m4: Likewise.
63716
63717         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63718         * m4/jm-macros.m4: Require the new macro.
63719
63720 1998-06-29  Jim Meyering  <meyering@ascend.com>
63721
63722         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
63723         for the definition of NGROUPS (used in a system header included
63724         by sys/mount.h).
63725
63726 1998-06-28  Jim Meyering  <meyering@ascend.com>
63727
63728         * m4/ls-mntd-fs.m4: New file.
63729         * m4/fstypename.m4: New file.
63730
63731         * m4/jm-macros.m4: Require the new macro.
63732         * m4/jm-glibc-io.m4: New file.
63733
63734 1998-05-19  Jim Meyering  <meyering@ascend.com>
63735
63736         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63737         * m4/lchown.m4: New file.
63738
63739         * m4/Makefile.am.in: New file.
63740         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63741
63742 1998-05-14  Jim Meyering  <meyering@ascend.com>
63743
63744         * m4/Makefile.am (EXTRA_DIST): Add them.
63745         * m4/jm-macros.m4: New file.
63746         * m4/utimbuf.m4: New file.
63747
63748 1998-05-12  Jim Meyering  <meyering@ascend.com>
63749
63750         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63751
63752 1998-05-11  Jim Meyering  <meyering@ascend.com>
63753
63754         * m4/isc-posix.m4: New file.
63755
63756 1998-05-10  Jim Meyering  <meyering@ascend.com>
63757
63758         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63759
63760 1998-05-09  Jim Meyering  <meyering@ascend.com>
63761
63762         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63763         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63764         with automake.
63765
63766         * m4/ssize_t.m4: New file.
63767         * m4/mktime.m4: Remove file -- the new automake has this now.
63768
63769 1998-04-26  Jim Meyering  <meyering@ascend.com>
63770
63771         * m4/assert.m4: New file.
63772         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63773
63774 1998-04-05  Jim Meyering  <meyering@ascend.com>
63775
63776         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63777         (jm_PREREQ): Use it here.
63778
63779 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
63780
63781         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63782         in acconfig.h.
63783
63784 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
63785
63786         * m4/prereq.m4: New file.
63787         * m4/error.m4: New file.
63788         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63789
63790 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
63791
63792         * m4/getline.m4: Don't set am_cv_func_working_getline before the
63793         cache-check for the same variable -- that defeated the purpose of
63794         the test; the test program was never run.  This was a problem only
63795         on systems with losing getline functions -- HP-UX 10.20 is one.
63796         Reported by Bjorn Helgaas.
63797
63798 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
63799
63800         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63801
63802 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
63803
63804         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63805
63806         * m4/const.m4: New file.  Use an initializer in this declaration
63807         typedef int charset[2]; const charset x;
63808         Reported by Bob Glickstein.
63809
63810 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
63811
63812         * m4/chown.m4: Fix reversed types on -1 args to chown.
63813         From Kaveh Ghazi.
63814
63815 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
63816
63817         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63818         Add lseek and memchr.
63819
63820         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63821         T.E.Dickey <dickey@clark.net> said that some older preprocessors
63822         have a 20-character limit on names.
63823
63824 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
63825
63826         * m4/inttypes_h.m4: New file.
63827         * m4/uintmax_t.m4: New file.
63828         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63829
63830
63831         -----
63832
63833         Local Variables:
63834         coding: utf-8
63835         End:
63836
63837         Copyright (C) 1997-2010 Free Software Foundation, Inc.
63838
63839         Copying and distribution of this file, with or without
63840         modification, are permitted provided the copyright notice
63841         and this notice are preserved.